Skip to content
Snippets Groups Projects
Commit e6c8675c authored by Elian Loraux's avatar Elian Loraux
Browse files

Initial commit

parents
No related branches found
No related tags found
No related merge requests found
#COMPOSE_FILE=docker-compose.yml:traefik.yml
PASS=MON_SUPER_MOT_DE_PASSE
NAME=kasmVNC
HOST=kasmVNC.tetras-lab.io
.env
homedir
FROM kasmweb/ubuntu-jammy-desktop:1.14.0
USER root
ENV STARTUPDIR /dockerstartup
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install spyder3 -y
ADD patch-spyder.sh /
RUN chmod +x /patch-spyder.sh
RUN /patch-spyder.sh
#RUN echo "if [ -d "$HOME" ]; then cp /etc/skel/.* $HOME; fi" > $STARTUPDIR/custom_startup.sh \
#& chmod +x $STARTUPDIR/custom_startup.sh
USER 1000
# Kasm VNC
This is dockerized demo of kasmVNC with traefik enabled
- user : kasm_user
- password : TO_CHANGE_IN_.ENV
## Install
```bash
git clone https://gitlab.tetras-libre.fr/nocloud/docker/kasmvnc.git
cd kasmvnc
cp .env.sample .env # Modify the .env
```
version: "3"
services:
kasm:
image: kasm-sage
build: ./
container_name: KasmVNC-ubuntu
# ports:
# - 6901:6901
volumes:
- ./homedir:/home:rw
environment:
- VNC_PW=${PASS}
volumes:
homedir:
#!/usr/bin/env bash
# Ce script resout un problème de Spyder 4.2.1
# La résolution de se problème ressort du poste stack overflow suivant
# https://stackoverflow.com/questions/72114520/error-when-starting-spyder-on-ubuntu-22-04
# Les lignes à commanter dans
# /usr/lib/python3/dist-packages/spyder/plugins/completion/kite/widgets/install.py :
filetochange="/usr/lib/python3/dist-packages/spyder/plugins/completion/kite/widgets/install.py"
# l58
# image = image.scaled(image_width, image_height, Qt.KeepAspectRatio,
# Qt.SmoothTransformation)
sed -i '58,59 s/^/#/' $filetochange
# l145
# install_gif.setScaledSize(QSize(image_width, image_height))
sed -e 's/install_gif\.setScaledSize/# install_gif\.setScaledSize/' -i $filetochange
# l245-l248
# copilot_label.setPixmap(
# copilot_image.scaled(image_width, image_height,
# Qt.KeepAspectRatio,
# Qt.SmoothTransformation))
sed -i '245,248 s/^/#/' $filetochange
version: "3"
services:
kasm:
networks:
- default
- traefik
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik"
- "traefik.http.routers.${NAME}.rule=Host(`${HOST}`)"
- "traefik.http.routers.${NAME}.tls.certresolver=myresolver"
- "traefik.http.routers.${NAME}.entrypoints=web,websecure"
- "traefik.http.services.${NAME}.loadbalancer.server.port=6901"
- "traefik.http.services.${NAME}.loadbalancer.server.scheme=https"
networks:
traefik:
external: true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment