fix: add log level environment variable

Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
This commit is contained in:
vajonam 2024-04-03 13:18:19 -04:00
parent ad38b1988c
commit af8995588f
3 changed files with 4 additions and 3 deletions

View File

@ -18,7 +18,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libegl1-mesa \
libgl1-mesa-glx \
openbox \
locales-all libpam0g libxt6 libxext6 dbus-x11 xauth x11-xkb-utils xkb-data, python3\
locales-all libpam0g libxt6 libxext6 dbus-x11 xauth x11-xkb-utils xkb-data python3\
xterm \
novnc \
lxde gtk2-engines-murrine gnome-themes-standard gtk2-engines-pixbuf gtk2-engines-murrine arc-theme \

View File

@ -10,6 +10,7 @@ services:
- NVIDIA_DRIVER_CAPABILITIES=all
- DISPLAY=:1
- VGL_DISPLAY=egl # needed to run without X server
- SUPD_LOGLEVEL=INFO
- VNC_RESOLUTION=1920x1080
volumes:
- ./prints:/prints/

View File

@ -17,6 +17,6 @@ else
fi
export LOCALFBPORT=$((${VNC_PORT} + DISPLAY_NUMBER))
export VGLRUN="${VGLRUN:-/usr/bin/vglrun}"
export SUPD_LOGLEVEL="${SUPD_LOGLEVEL:-TRACE}"
# fix perms and launch supervisor with the above environment variables
chown -R slic3r:slic3r /home/slic3r/ /configs/ /prints/ /dev/stdout && exec gosu slic3r supervisord # -e TRACE
chown -R slic3r:slic3r /home/slic3r/ /configs/ /prints/ /dev/stdout && exec gosu slic3r supervisord -e $SUPD_LOGLEVEL