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

Working scripts configuration

parent dc54b28e
Branches
No related tags found
4 merge requests!6End of development,!5Develop,!4End of development,!3Develop
Pipeline #50483 passed
......@@ -11,6 +11,11 @@ packages:
runcmd:
#
# cloud-init execute cmd before HOME and USER are set.
#
- "export HOME=/root"
- "export USER=root"
#
# Install Rust
#
- "curl https://forge.grandlyon.com/systemes-dinformation/alpha/projects/labo-rust/-/raw/develop/instance-scripts/scripts/rust.sh | bash"
......@@ -21,13 +26,13 @@ runcmd:
#
# Install Atrium
#
- "curl https://forge.grandlyon.com/systemes-dinformation/alpha/projects/labo-rust/-/raw/develop/instance-scripts/config-files/atrium.yaml -o atrium.yaml"
- "curl https://forge.grandlyon.com/systemes-dinformation/alpha/projects/labo-rust/-/raw/develop/instance-scripts/config-files/atrium.yaml -o root/atrium.yaml"
- "curl https://forge.grandlyon.com/systemes-dinformation/alpha/projects/labo-rust/-/raw/develop/instance-scripts/config-files/atrium.sh | bash"
#
# Install And Run Code Server
#
- "curl https://forge.grandlyon.com/systemes-dinformation/alpha/projects/labo-rust/-/raw/develop/instance-scripts/scripts/code-server.sh | bash"
- "curl https://forge.grandlyon.com/systemes-dinformation/alpha/projects/labo-rust/-/raw/develop/instance-scripts/config-files/config.yaml -o config.yaml"
- "curl https://forge.grandlyon.com/systemes-dinformation/alpha/projects/labo-rust/-/raw/develop/instance-scripts/config-files/config.yaml -o root/config.yaml"
#
# Run Webtop Container
#
......
......@@ -4,10 +4,6 @@
# Install Code Server
#
# cloud-init execute the bash script before HOME and USER are set.
export HOME=/root
export USER=root
mkdir -p /root/.config/code-server/
sed -i "s/%user_password%/$(scw-userdata user_password)/g" /root/config.yaml
mv /root/config.yaml /root/.config/code-server/config.yaml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment