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

Working scripts configuration

parent dc54b28e
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,11 @@ packages: ...@@ -11,6 +11,11 @@ packages:
runcmd: runcmd:
# #
# cloud-init execute cmd before HOME and USER are set.
#
- "export HOME=/root"
- "export USER=root"
#
# Install Rust # Install Rust
# #
- "curl https://forge.grandlyon.com/systemes-dinformation/alpha/projects/labo-rust/-/raw/develop/instance-scripts/scripts/rust.sh | bash" - "curl https://forge.grandlyon.com/systemes-dinformation/alpha/projects/labo-rust/-/raw/develop/instance-scripts/scripts/rust.sh | bash"
...@@ -21,13 +26,13 @@ runcmd: ...@@ -21,13 +26,13 @@ runcmd:
# #
# Install Atrium # 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" - "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 # 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/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 # Run Webtop Container
# #
......
...@@ -4,10 +4,6 @@ ...@@ -4,10 +4,6 @@
# Install Code Server # 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/ mkdir -p /root/.config/code-server/
sed -i "s/%user_password%/$(scw-userdata user_password)/g" /root/config.yaml sed -i "s/%user_password%/$(scw-userdata user_password)/g" /root/config.yaml
mv /root/config.yaml /root/.config/code-server/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.
Finish editing this message first!
Please register or to comment