Skip to content

Commit 3ca976f

Browse files
authored
Merge pull request #75 from Helene/python_env_dockerfile
set PYTHONUNBUFFERED
2 parents e58849d + a458880 commit 3ca976f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ LABEL com.ibm.description="This tool translates the IBM Spectrum Scale performan
99
to the query requests acceptable by the Grafana integrated openTSDB plugin"
1010
LABEL com.ibm.summary="It allows the IBM Spectrum Scale users to perform performance monitoring for IBM Spectrum Scale devices using Grafana"
1111

12+
ENV PYTHONDONTWRITEBYTECODE 1
13+
ENV PYTHONUNBUFFERED 1
14+
1215
COPY ./requirements/requirements_ubi8.txt /root/requirements_ubi8.txt
1316

1417
RUN yum install -y python36 python36-devel
@@ -122,8 +125,6 @@ RUN chown -R $UID:$GID $LOGPATH
122125
# Switch user
123126
USER $GID
124127

125-
# Do not write byte code inside ephemeral container storage.
126-
ENV PYTHONDONTWRITEBYTECODE 1
127128

128129
CMD ["sh", "-c", "python3 zimonGrafanaIntf.py -c 10 -s $SERVER -r $PROTOCOL -p $PORT -P $SERVERPORT -t $TLSKEYPATH -l $LOGPATH --tlsKeyFile $TLSKEYFILE --tlsCertFile $TLSCERTFILE --apiKeyName $APIKEYNAME --apiKeyValue $APIKEYVALUE"]
129130

0 commit comments

Comments
 (0)