Skip to content

Commit

Permalink
FIX docker env on webtop
Browse files Browse the repository at this point in the history
  • Loading branch information
wabscale committed Feb 27, 2024
1 parent 390ff32 commit 26d5b1a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion theia-base/Dockerfile-webtop
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ ENV TZ=America/New_York \
GUID=1001 \
KEYBOARD=en-us-qwerty \
CUSTOM_PORT=5000 \
DEBIAN_FRONTEND=noninteractive
DEBIAN_FRONTEND=noninteractive \
DOCKER_HOST="tcp://localhost:2376" \
DOCKER_TLS_CERTDIR="/certs" \
DOCKER_TLS_VERIFY="1" \
DOCKER_CERT_PATH="/certs/client"

# Webtop setup
RUN set -eux; \
Expand Down Expand Up @@ -186,6 +190,13 @@ RUN set -eux; \
pip3 install --no-cache-dir /cli; \
rm -rf /cli;

# Force docker environment
RUN set -eux; \
echo 'export DOCKER_HOST="tcp://localhost:2376"' >> /etc/anubis/skel/.xsessionrc; \
echo 'export DOCKER_TLS_CERTDIR="/certs"' >> /etc/anubis/skel/.xsessionrc; \
echo 'export DOCKER_TLS_VERIFY="1"' >> /etc/anubis/skel/.xsessionrc; \
echo 'export DOCKER_CERT_PATH="/certs/client"' >> /etc/anubis/skel/.xsessionrc

COPY 30-config /etc/cont-init.d/30-config
COPY code.desktop /usr/share/applications/code.desktop
COPY motd.txt /etc/motd
Expand Down

0 comments on commit 26d5b1a

Please sign in to comment.