Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 20cb08727a | |||
| 7931c1294a | |||
| 15256b302c | |||
| 78c273b4c7 | |||
| 994fc64f42 | |||
| 339378fc13 |
@@ -21,7 +21,13 @@ RUN \
|
|||||||
nano \
|
nano \
|
||||||
net-tools \
|
net-tools \
|
||||||
netcat \
|
netcat \
|
||||||
texlive-full \
|
texlive-base \
|
||||||
|
texlive-extra-utils \
|
||||||
|
texlive-latex-base \
|
||||||
|
texlive-latex-extra \
|
||||||
|
texlive-latex-recommended \
|
||||||
|
texlive-science \
|
||||||
|
latexmk\
|
||||||
sudo
|
sudo
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
|
|||||||
17
docker-compose.yaml
Normal file
17
docker-compose.yaml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
version: "2.1"
|
||||||
|
services:
|
||||||
|
docker-latex-server:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
container_name: docker-latex-server
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
- TZ=Europe/Berlin
|
||||||
|
- PASSWORD=myPassword # optional
|
||||||
|
volumes:
|
||||||
|
- config:/config
|
||||||
|
ports:
|
||||||
|
- 443:8443
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
config:
|
||||||
@@ -1,5 +1,22 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Starten des code-server
|
||||||
|
|
||||||
|
# Überprüfen, ob eine PASSWORD Umgebungsvariable gesetzt ist
|
||||||
|
if [ -z "$PASSWORD" ]; then
|
||||||
|
echo "Starte Code Server ohne Passwort..."
|
||||||
|
# Konfiguration für keinen Authentifizierungsmodus
|
||||||
|
echo "bind-addr: 0.0.0.0:8443
|
||||||
|
auth: none
|
||||||
|
password:" > /config/code-server/config.yaml
|
||||||
|
else
|
||||||
|
echo "Starte Code Server mit Passwort..."
|
||||||
|
# Konfiguration für Passwort-Authentifizierungsmodus
|
||||||
|
echo "bind-addr: 0.0.0.0:8443
|
||||||
|
auth: password
|
||||||
|
password: $PASSWORD" > /config/code-server/config.yaml
|
||||||
|
fi
|
||||||
|
|
||||||
# Die ID der Extension, die installiert werden soll
|
# Die ID der Extension, die installiert werden soll
|
||||||
EXTENSION_ID="james-yu.latex-workshop"
|
EXTENSION_ID="james-yu.latex-workshop"
|
||||||
|
|
||||||
@@ -11,5 +28,5 @@ else
|
|||||||
echo "Extension ${EXTENSION_ID} ist bereits installiert."
|
echo "Extension ${EXTENSION_ID} ist bereits installiert."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Starten des code-server
|
# Starte den Code Server mit der Konfigurationsdatei
|
||||||
exec code-server --bind-addr 0.0.0.0:8443 --auth none
|
code-server --config /config/code-server/config.yaml
|
||||||
|
|||||||
Reference in New Issue
Block a user