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
dc54b28e
Commit
dc54b28e
authored
2 years ago
by
Nathan Rodet
Browse files
Options
Downloads
Patches
Plain Diff
Working scripts configuration
parent
1d0f1f66
No related branches found
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
+4
-49
4 additions, 49 deletions
instance-scripts/cloud-init.yml
instance-scripts/scripts/webtop.sh
+2
-0
2 additions, 0 deletions
instance-scripts/scripts/webtop.sh
with
6 additions
and
49 deletions
instance-scripts/cloud-init.yml
+
4
−
49
View file @
dc54b28e
...
...
@@ -9,41 +9,6 @@ packages:
-
curl
-
git
write_files
:
#
# Atrium config file
#
-
content
:
|
hostname: %atrium_hostname%.daag.alpha.grandlyon.com
debug_mode: false
letsencrypt_email: %atrium_letsencrypt_email%
tls_mode: Auto
apps: # optional : applications served by atrium
- id: 1
name: Code %atrium_count_index%
icon: web_asset
color: 4292030255
is_proxy: true
host: code-%atrium_count_index%
target: localhost:8080
- id: 2
name: Desktop %atrium_count_index%
icon: web_asset
color: 4292030255
is_proxy: true
host: desktop-%atrium_count_index%
target: localhost:8081
path
:
/root/atrium.yaml
#
# Code-server config file
#
-
content
:
|
bind-addr: 0.0.0.0:8080
auth: password
password: %user_password%
cert: false
path
:
/root/config.yaml
runcmd
:
#
# Install Rust
...
...
@@ -56,27 +21,17 @@ 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.sh
|
bash"
-
"
curl
https://forge.grandlyon.com/systemes-dinformation/alpha/projects/labo-rust/-/raw/develop/instance-scripts/config-files/atrium.sh
|
bash"
#
# Run Atrium Container
#
-
"
docker
run
-d
--name
atrium
--restart
unless-stopped
--net=host
-v
/root/atrium/atrium.yaml:/app/atrium.yaml
-v
/root/atrium/letsencrypt_cache:/app/letsencrypt_cache
-v
/root/atrium/data:/app/data
nicolaspernoud/atrium:latest"
#
# Install And Run Code Server
#
-
"
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"
-
"
curl
-fsSL
https://code-server.dev/install.sh
|
sh"
-
"
sudo
systemctl
enable
--now
code-server@$USER"
-
"
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"
#
# Run Webtop Container
#
-
"
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
8081:3000
-v
/root/webtop:/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"
-
'
echo
"$(scw-userdata
user_password)\n$(scw-userdata
user_password)"
|
docker
exec
-i
webtop
passwd
abc'
-
"
curl
https://forge.grandlyon.com/systemes-dinformation/alpha/projects/labo-rust/-/raw/develop/instance-scripts/scripts/webtop.sh
|
sh"
#
# Install Repository
#
...
...
This diff is collapsed.
Click to expand it.
instance-scripts/scripts/webtop.sh
+
2
−
0
View file @
dc54b28e
#!/bin/sh
#
# Run Webtop Container
#
...
...
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