Skip to content

Commit

Permalink
log test
Browse files Browse the repository at this point in the history
  • Loading branch information
Bram van Dartel committed Feb 26, 2024
1 parent 5b710ed commit fc184a8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ ENV PS1="$(whoami)@dsmr_reader_docker:$(pwd)\\$ " \
ENV QEMU_ARCH=${QEMU_ARCH:-x86_64} \
DSMR_VERSION=${DSMR_VERSION} \
DOCKER_TARGET_RELEASE=${DOCKER_TARGET_RELEASE} \
PIP_NO_CACHE_DIR=1
PIP_NO_CACHE_DIR=1 \
S6_SERVICES_GRACETIME=300000 \
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=5000000

ENV DJANGO_SECRET_KEY=dsmrreader \
DJANGO_DATABASE_ENGINE=django.db.backends.postgresql \
Expand Down
2 changes: 1 addition & 1 deletion rootfs/etc/s6-overlay/s6-rc.d/docker-entrypoint/branding
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
DSMR-protocol reader, telegram data storage and
energy consumption visualizer.

───────────────────────────────────────────────────
───────────────────────────────────────────────────
8 changes: 3 additions & 5 deletions rootfs/etc/s6-overlay/s6-rc.d/docker-entrypoint/run
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,14 @@ function _pre_reqs() {
_info "DSMR Reader Reader release: ${DSMR_VERSION}"
_info "DSMR Reader Reader Docker release: ${DOCKER_TARGET_RELEASE}"

cat /etc/s6-overlay/s6-rc.d/docker-entrypoint/branding

DUID=${DUID:-803}
DGID=${DGID:-803}

groupmod -o -g "${DGID}" app
usermod -o -u "${DUID}" app
groupmod -o -g "${DGID}" app 2>&1 >/dev/null
usermod -o -u "${DUID}" app 2>&1 >/dev/null

cat /etc/s6-overlay/s6-rc.d/docker-entrypoint/branding
echo "
───────────────────────────────────────────────────
User UID: $(id -u app)
User GID: $(id -g app)
───────────────────────────────────────────────────
Expand Down

0 comments on commit fc184a8

Please sign in to comment.