ROSE Server in a Docker Container - #309
Open
ecliptik wants to merge 1 commit into
Open
Conversation
Fixes RedHat-Israel#173 Uses official CentOS Python 2.7 image.
nirs
reviewed
May 31, 2019
| ENABLE_PIPENV=true | ||
|
|
||
| # Install pipenv | ||
| RUN pip install --upgrade pipenv |
Member
There was a problem hiding this comment.
When we used a container, we don't need pipenv.
|
|
||
| # Required env vars | ||
| ENV LD_LIBRARY_PATH="/opt/rh/python27/root/usr/lib64/" \ | ||
| ENABLE_PIPENV=true |
| COPY . ./ | ||
|
|
||
| # Install dependencies from pipfile | ||
| RUN pipenv install |
Member
There was a problem hiding this comment.
We can install the requirements manually, or using a requirements.txt file generated
by pipenv.
|
|
||
| # Server command | ||
| ENTRYPOINT [ "pipenv" ] | ||
| CMD [ "run", "python", "rose-server"] |
Member
There was a problem hiding this comment.
And without pipeenv, we can just run rose-server here.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #173
Uses official CentOS Python 2.7 image.
Verified building and running locally and can access ROSE Server on http://locahlost:8880