Skip to content

Commit 138ee12

Browse files
author
SCLorg Jenkins
committed
auto-sync: master commit 00fba32
1 parent df1392c commit 138ee12

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

3.6/Dockerfile.fedora

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

55
EXPOSE 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+
6671
USER 1001
6772

6873
# Set the default CMD to print the usage of the language image.

0 commit comments

Comments
 (0)