Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scaleway instances template
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
systemes-dinformation
alpha
pocs
Cloud Machinist
cloud machinist templates
scaleway instances template
Commits
269ab22d
Commit
269ab22d
authored
2 years ago
by
Nathan Rodet
Browse files
Options
Downloads
Patches
Plain Diff
Working scripts configuration
parent
dc54b28e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
instance-scripts/cloud-init.yml
+7
-2
7 additions, 2 deletions
instance-scripts/cloud-init.yml
instance-scripts/scripts/code-server.sh
+0
-4
0 additions, 4 deletions
instance-scripts/scripts/code-server.sh
with
7 additions
and
6 deletions
instance-scripts/cloud-init.yml
+
7
−
2
View file @
269ab22d
...
@@ -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
#
#
...
...
This diff is collapsed.
Click to expand it.
instance-scripts/scripts/code-server.sh
+
0
−
4
View file @
269ab22d
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment