Skip to content
Snippets Groups Projects
Commit 4fec0185 authored by Nathan Rodet's avatar Nathan Rodet
Browse files

Changes to cloud-init config

parent 43fc6893
No related branches found
No related tags found
6 merge requests!6End of development,!5Develop,!4End of development,!3Develop,!2hot-fix: change readme.md,!1Develop
Pipeline #49057 passed
...@@ -11,8 +11,6 @@ packages: ...@@ -11,8 +11,6 @@ packages:
- git - git
runcmd: runcmd:
# Check env variables access
- "echo $USER_PASSWORD > test.txt"
# Install Rust # Install Rust
- "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y" - "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y"
- "source \"$HOME/.cargo/env\"" - "source \"$HOME/.cargo/env\""
...@@ -20,13 +18,13 @@ runcmd: ...@@ -20,13 +18,13 @@ runcmd:
- "curl -fsSL https://get.docker.com -o get-docker.sh" - "curl -fsSL https://get.docker.com -o get-docker.sh"
- "sh get-docker.sh" - "sh get-docker.sh"
# Install atrium # Install atrium
- "git clone https://github.com/nicolaspernoud/atrium.git ./root/atrium" - "git clone https://github.com/nicolaspernoud/atrium.git"
# Run Webtop Container # Run Webtop Container
- "docker stop webtop" # - "docker stop webtop"
- "docker rm webtop" # - "docker rm webtop"
- "docker run -d --name=webtop --security-opt seccomp=unconfined -e PUID=0 -e PGID=0 -e TZ=Europe/Paris -e SUBFOLDER=/ -e KEYBOARD=fr-fr-azerty -e AUTO_LOGIN=false -p 80:3000 -v /root/webtop_data/:/config -v /var/run/docker.sock:/var/run/docker.sock --shm-size=8gb --cap-add=NET_ADMIN --privileged --restart unless-stopped --sysctl net.ipv6.conf.all.disable_ipv6=0 lscr.io/linuxserver/webtop:ubuntu-xfce" # - "docker run -d --name=webtop --security-opt seccomp=unconfined -e PUID=0 -e PGID=0 -e TZ=Europe/Paris -e SUBFOLDER=/ -e KEYBOARD=fr-fr-azerty -e AUTO_LOGIN=false -p 80:3000 -v /root/webtop_data/:/config -v /var/run/docker.sock:/var/run/docker.sock --shm-size=8gb --cap-add=NET_ADMIN --privileged --restart unless-stopped --sysctl net.ipv6.conf.all.disable_ipv6=0 lscr.io/linuxserver/webtop:ubuntu-xfce"
# Install Code Server # Install Code Server
- "curl -fsSL https://code-server.dev/install.sh | sh" # - "curl -fsSL https://code-server.dev/install.sh | sh"
- "mkdir -p /root/.config/code-server/" # - "mkdir -p /root/.config/code-server/"
- "echo 'bind-addr: 0.0.0.0:8080\nauth: password\npassword: yfB4W23G\ncert: false\n' > /root/.config/code-server/config.yaml" # - "echo 'bind-addr: 0.0.0.0:8080\nauth: password\npassword: $(scw-userdata user_password)\ncert: false\n' > /root/.config/code-server/config.yaml"
- "systemctl enable --now code-server@$USER" # - "systemctl enable --now code-server@$USER"
...@@ -83,7 +83,7 @@ resource "scaleway_instance_server" "user_instance_server" { ...@@ -83,7 +83,7 @@ resource "scaleway_instance_server" "user_instance_server" {
security_group_id = scaleway_instance_security_group.www.id security_group_id = scaleway_instance_security_group.www.id
user_data = { user_data = {
user_password = "export USER_PASSWORD=${var.USER_PASSWORD}" user_password = var.USER_PASSWORD
cloud-init = file("cloud-init.yml") cloud-init = file("cloud-init.yml")
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment