-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ROSE Server in a Docker Container #309
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
docs/ | ||
examples/ | ||
Makefile | ||
README* |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Use official CentOS Python 2.7 image | ||
# https://developer.fedoraproject.org/tools/docker/docker-images.html | ||
FROM centos/python-27-centos7 AS base | ||
|
||
# Project maintainer | ||
LABEL maintainer="frolland@redhat.com" | ||
|
||
# Required env vars | ||
ENV LD_LIBRARY_PATH="/opt/rh/python27/root/usr/lib64/" \ | ||
ENABLE_PIPENV=true | ||
|
||
# Install pipenv | ||
RUN pip install --upgrade pipenv | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When we used a container, we don't need pipenv. |
||
|
||
# Copy application to default WORKDIR | ||
COPY . ./ | ||
|
||
# Install dependencies from pipfile | ||
RUN pipenv install | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can install the requirements manually, or using a requirements.txt file generated |
||
|
||
# Server port | ||
EXPOSE 8880 | ||
|
||
# Server command | ||
ENTRYPOINT [ "pipenv" ] | ||
CMD [ "run", "python", "rose-server"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And without pipeenv, we can just run rose-server here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need LD_LIBRARY_PATH?