File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# This image provides a Python 3.6 environment you can use to run your Python
22# applications.
3- FROM registry.fedoraproject.org/f27 /s2i-base:latest
3+ FROM registry.fedoraproject.org/f28 /s2i-base:latest
44
55EXPOSE 8080
66
@@ -36,7 +36,6 @@ LABEL summary="$SUMMARY" \
3636 name="$FGC/$NAME" \
3737 version="$VERSION" \
3838 release="$RELEASE.$DISTTAG" \
39- architecture="$ARCH" \
4039 usage="s2i build https://github.com/sclorg/s2i-python-container.git --context-dir=3.6/test/setup-test-app/ $FGC/$NAME python-sample-app" \
4140 maintainer="SoftwareCollections.org <sclorg@redhat.com>"
4241
@@ -63,6 +62,12 @@ RUN virtualenv-$PYTHON_VERSION ${APP_ROOT} && \
6362 chown -R 1001:0 ${APP_ROOT} && \
6463 fix-permissions ${APP_ROOT} -P
6564
65+ # For Fedora scl_enable isn't sourced automatically in s2i-core
66+ # so virtualenv needs to be activated this way
67+ ENV BASH_ENV="${APP_ROOT}/bin/activate" \
68+ ENV="${APP_ROOT}/bin/activate" \
69+ PROMPT_COMMAND=". ${APP_ROOT}/bin/activate"
70+
6671USER 1001
6772
6873# Set the default CMD to print the usage of the language image.
You can’t perform that action at this time.
0 commit comments