Skip to content

Commit

Permalink
Merge pull request #261 from Helene/docker_loglevel
Browse files Browse the repository at this point in the history
Allow to change loglevel of bridge running in a container by setting EnvironmentVariable
  • Loading branch information
Helene authored Dec 17, 2024
2 parents dd25f1f + 3d1190e commit 01b3378
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ ARG DEFAULTLOGPATH='/var/log/ibm_bridge_for_grafana'
ENV LOGPATH=$DEFAULTLOGPATH
RUN echo "the log will use $LOGPATH"

ARG DEFAULTLOGLEVEL=15
ENV LOGLEVEL=$DEFAULTLOGLEVEL

COPY ./requirements/requirements_ubi9.txt /root/requirements_ubi9.txt
# COPY ./requirements/requirements_ubi.in /root/requirements_ubi.in

Expand Down Expand Up @@ -139,7 +142,7 @@ RUN chown -R $UID:$GID /opt/IBM/bridge && \
# Switch user
USER $GID

CMD ["sh", "-c", "python3 zimonGrafanaIntf.py -c 10 -s $SERVER -r $PROTOCOL -b $BASICAUTH -u $BASICAUTHUSER -a $BASICAUTHPASSW -p $PORT -e $PROMETHEUS -P $SERVERPORT -t $TLSKEYPATH -l $LOGPATH -k $TLSKEYFILE -m $TLSCERTFILE -n $APIKEYNAME -v $APIKEYVALUE"]
CMD ["sh", "-c", "python3 zimonGrafanaIntf.py -c $LOGLEVEL -s $SERVER -r $PROTOCOL -b $BASICAUTH -u $BASICAUTHUSER -a $BASICAUTHPASSW -p $PORT -e $PROMETHEUS -P $SERVERPORT -t $TLSKEYPATH -l $LOGPATH -k $TLSKEYFILE -m $TLSCERTFILE -n $APIKEYNAME -v $APIKEYVALUE"]

EXPOSE 4242 8443 9250

Expand Down

0 comments on commit 01b3378

Please sign in to comment.