Skip to content

Commit

Permalink
build(docker): Print version info at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
satterly committed Dec 6, 2020
1 parent ed888cb commit ca8455f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- v*

pull_request:
types: [assigned, opened, synchronize, reopened]

env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ ARG BUILD_DATE=now
ARG VCS_REF
ARG VERSION

ARG SERVER_VERSION=${VERSION}
ARG CLIENT_VERSION=8.2.0
ARG WEBUI_VERSION=8.2.0
ENV SERVER_VERSION=${VERSION}
ENV CLIENT_VERSION=8.2.0
ENV WEBUI_VERSION=8.2.0

LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.url="https://alerta.io" \
Expand Down
13 changes: 13 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,19 @@ EOF
fi
fi

echo
echo '# Checking versions.'
echo Alerta Server ${SERVER_VERSION}
echo Alerta Client ${CLIENT_VERSION}
echo Alerta WebUI ${WEBUI_VERSION}

nginx -v
echo uwsgi $(uwsgi --version)
mongo --version | grep MongoDB
psql --version
python3 --version
/venv/bin/pip list

echo
echo 'Alerta init process complete; ready for start up.'
echo
Expand Down

0 comments on commit ca8455f

Please sign in to comment.