Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Labo Rust
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
projects
Labo Rust
Commits
4fec0185
Commit
4fec0185
authored
2 years ago
by
Nathan Rodet
Browse files
Options
Downloads
Patches
Plain Diff
Changes to cloud-init config
parent
43fc6893
No related branches found
No related tags found
6 merge requests
!6
End of development
,
!5
Develop
,
!4
End of development
,
!3
Develop
,
!2
hot-fix: change readme.md
,
!1
Develop
Pipeline
#49057
passed
2 years ago
Stage: prepare
Stage: validate
Stage: build
Stage: deploy
Stage: destroy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
terraform/cloud-init.yml
+8
-10
8 additions, 10 deletions
terraform/cloud-init.yml
terraform/main.tf
+1
-1
1 addition, 1 deletion
terraform/main.tf
with
9 additions
and
11 deletions
terraform/cloud-init.yml
+
8
−
10
View file @
4fec0185
...
@@ -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
\n
auth:
password
\n
password:
yfB4W23G
\n
cert:
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"
This diff is collapsed.
Click to expand it.
terraform/main.tf
+
1
−
1
View file @
4fec0185
...
@@ -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"
)
}
}
...
...
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