From dca9ee7b6bc52afbeb5de379a6d03cc274771619 Mon Sep 17 00:00:00 2001 From: technorabilia Date: Sat, 9 Jul 2022 00:53:16 +0000 Subject: [PATCH] Workflow update --- lsio/kasm/docker-compose.yaml | 38 +++++++++++++++++++++++++++++++++++ lsio/kasm/docker-run.sh | 25 +++++++++++++++++++++++ lsio/kasm/run-once.sh | 4 ++++ 3 files changed, 67 insertions(+) create mode 100644 lsio/kasm/docker-compose.yaml create mode 100644 lsio/kasm/docker-run.sh create mode 100644 lsio/kasm/run-once.sh diff --git a/lsio/kasm/docker-compose.yaml b/lsio/kasm/docker-compose.yaml new file mode 100644 index 0000000..5247db3 --- /dev/null +++ b/lsio/kasm/docker-compose.yaml @@ -0,0 +1,38 @@ +# [Kasm](https://www.kasmweb.com/?utm_campaign=LinuxServer&utm_source=listing) +# Workspaces is a docker container streaming platform for delivering browser- +# based access to desktops, applications, and web services. Kasm uses devops- +# enabled Containerized Desktop Infrastructure (CDI) to create on-demand, +# disposable, docker containers that are accessible via web browser. Example +# use-cases include Remote Browser Isolation (RBI), Data Loss Prevention (DLP), +# Desktop as a Service (DaaS), Secure Remote Access Services (RAS), and Open +# Source Intelligence (OSINT) collections. The rendering of the graphical-based +# containers is powered by the open-source project +# [KasmVNC](https://www.kasmweb.com/kasmvnc.html?utm_campaign=LinuxServer&utm_source=kasmvnc). + +--- +version: "2.1" +services: + kasm: + image: ghcr.io/linuxserver/kasm + container_name: kasm + privileged: true + environment: + # Specify the port you bind to the outside for Kasm Workspaces. + - KASM_PORT=443 + # Specify a timezone to use for example Europe/Amsterdam + - TZ=${TZ:-Europe/Amsterdam} + # Optionally specify a DockerHub Username to pull private images. + - DOCKER_HUB_USERNAME=USER # optional + # Optionally specify a DockerHub password to pull private images. + - DOCKER_HUB_PASSWORD=PASS # optional + volumes: + # Docker and installation storage. + - ${BASEDIR:-/volume1/docker}/kasm/opt:/opt + # Optionally specify a path for persistent profile storage. + - ${BASEDIR:-/volume1/docker}/kasm/profiles:/profiles # optional + ports: + # Kasm Installation wizard. (https) + - 3000:3000 + # Kasm Workspaces interface. (https) + - 443:443 + restart: unless-stopped diff --git a/lsio/kasm/docker-run.sh b/lsio/kasm/docker-run.sh new file mode 100644 index 0000000..2ec40c9 --- /dev/null +++ b/lsio/kasm/docker-run.sh @@ -0,0 +1,25 @@ +# [Kasm](https://www.kasmweb.com/?utm_campaign=LinuxServer&utm_source=listing) +# Workspaces is a docker container streaming platform for delivering browser- +# based access to desktops, applications, and web services. Kasm uses devops- +# enabled Containerized Desktop Infrastructure (CDI) to create on-demand, +# disposable, docker containers that are accessible via web browser. Example +# use-cases include Remote Browser Isolation (RBI), Data Loss Prevention (DLP), +# Desktop as a Service (DaaS), Secure Remote Access Services (RAS), and Open +# Source Intelligence (OSINT) collections. The rendering of the graphical-based +# containers is powered by the open-source project +# [KasmVNC](https://www.kasmweb.com/kasmvnc.html?utm_campaign=LinuxServer&utm_source=kasmvnc). + +source ./.env +docker run -d \ + --name=kasm \ + --privileged \ + -e KASM_PORT=443 `# Specify the port you bind to the outside for Kasm Workspaces.` \ + -e TZ=${TZ:-Europe/Amsterdam} `# Specify a timezone to use for example Europe/Amsterdam` \ + -e DOCKER_HUB_USERNAME=USER `# optional` `# Optionally specify a DockerHub Username to pull private images.` \ + -e DOCKER_HUB_PASSWORD=PASS `# optional` `# Optionally specify a DockerHub password to pull private images.` \ + -p 3000:3000 `# Kasm Installation wizard. (https)` \ + -p 443:443 `# Kasm Workspaces interface. (https)` \ + -v ${BASEDIR:-/volume1/docker}/kasm/opt:/opt `# Docker and installation storage.` \ + -v ${BASEDIR:-/volume1/docker}/kasm/profiles:/profiles `# optional` `# Optionally specify a path for persistent profile storage.` \ + --restart unless-stopped \ + ghcr.io/linuxserver/kasm diff --git a/lsio/kasm/run-once.sh b/lsio/kasm/run-once.sh new file mode 100644 index 0000000..b612c9a --- /dev/null +++ b/lsio/kasm/run-once.sh @@ -0,0 +1,4 @@ +ln -s ../docker-env.cfg ./.env +. ./.env +mkdir -p ${BASEDIR:-/volume1/docker}/kasm/opt +mkdir -p ${BASEDIR:-/volume1/docker}/kasm/profiles `#optional`