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
891e1e09
Commit
891e1e09
authored
2 years ago
by
Nathan Rodet
Browse files
Options
Downloads
Patches
Plain Diff
Added configuration
parent
a7815aa8
No related branches found
Branches containing commit
No related tags found
Loading
Pipeline
#49229
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
server-scripts/cloud-init.yml
+5
-6
5 additions, 6 deletions
server-scripts/cloud-init.yml
terraform/main.tf
+5
-1
5 additions, 1 deletion
terraform/main.tf
with
10 additions
and
7 deletions
server-scripts/cloud-init.yml
+
5
−
6
View file @
891e1e09
...
@@ -22,20 +22,20 @@ write_files:
...
@@ -22,20 +22,20 @@ write_files:
color: 4292030255
color: 4292030255
is_proxy: true
is_proxy: true
host: code-%atrium_count_index%
host: code-%atrium_count_index%
target:
%atrium_private_ip%
:8080
target:
localhost
:8080
- id: 2
- id: 2
name: Desktop %atrium_count_index%
name: Desktop %atrium_count_index%
icon: web_asset
icon: web_asset
color: 4292030255
color: 4292030255
is_proxy: true
is_proxy: true
host: desktop-%atrium_count_index%
host: desktop-%atrium_count_index%
target:
%atrium_private_ip%
:8081
target:
localhost
:8081
path
:
/root/atrium.yaml
path
:
/root/atrium.yaml
# Code-server config file
# Code-server config file
-
content
:
|
-
content
:
|
bind-addr: 0.0.0.0:8080
bind-addr: 0.0.0.0:8080
auth: password
auth: password
password %user_password%
password
:
%user_password%
cert: false
cert: false
path
:
/root/config.yaml
path
:
/root/config.yaml
...
@@ -54,12 +54,11 @@ runcmd:
...
@@ -54,12 +54,11 @@ runcmd:
# Install Atrium
# Install Atrium
#
#
-
"
mkdir
-p
/root/atrium/data
&&
mkdir
-p
/root/atrium/letsencrypt_cache"
-
"
mkdir
-p
/root/atrium/data
&&
mkdir
-p
/root/atrium/letsencrypt_cache"
-
"
chown
-Rf
1000:1000
/root/atrium"
-
'
sed
-i
"s/%atrium_hostname%/$(scw-userdata
atrium_hostname)/g"
/root/atrium.yaml'
-
'
sed
-i
"s/%atrium_letsencrypt_email%/$(scw-userdata
atrium_letsencrypt_email)/g"
/root/atrium.yaml'
-
'
sed
-i
"s/%atrium_letsencrypt_email%/$(scw-userdata
atrium_letsencrypt_email)/g"
/root/atrium.yaml'
-
'
sed
-i
"s/%atrium_count_index%/$(scw-userdata
atrium_count_index)/g"
/root/atrium.yaml'
-
'
sed
-i
"s/%atrium_count_index%/$(scw-userdata
atrium_count_index)/g"
/root/atrium.yaml'
-
'
sed
-i
"s/%atrium_private_ip%/$(scw-userdata
atrium_private_ip)/g"
/root/atrium.yaml'
-
'
sed
-i
"s/%atrium_private_ip%/$(scw-userdata
atrium_private_ip)/g"
/root/atrium.yaml'
-
"
mv
/root/atrium.yaml
/root/atrium/atrium.yaml"
-
"
mv
/root/atrium.yaml
/root/atrium/atrium.yaml"
-
"
chown
-Rf
1000:1000
/root/atrium"
#
#
# Run Atrium Container
# Run Atrium Container
#
#
...
@@ -78,4 +77,4 @@ runcmd:
...
@@ -78,4 +77,4 @@ runcmd:
#
#
# Run Webtop Container
# 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_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
PIAUSER=user
-e
PIAPASS=$(scw-userdata
user_password)
-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_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"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
terraform/main.tf
+
5
−
1
View file @
891e1e09
...
@@ -63,6 +63,11 @@ resource "scaleway_instance_security_group" "www" {
...
@@ -63,6 +63,11 @@ resource "scaleway_instance_security_group" "www" {
port
=
"8080"
port
=
"8080"
}
}
inbound_rule
{
action
=
"accept"
port
=
"8081"
}
inbound_rule
{
inbound_rule
{
action
=
"accept"
action
=
"accept"
port
=
"443"
port
=
"443"
...
@@ -83,7 +88,6 @@ resource "scaleway_instance_server" "user_instance_server" {
...
@@ -83,7 +88,6 @@ 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
=
{
atrium_private_ip
=
scaleway_instance_ip
.
public_ip
[
count
.
index
].
address
atrium_count_index
=
count
.
index
atrium_count_index
=
count
.
index
atrium_hostname
=
scaleway_domain_record
.
subdomain_record
[
count
.
index
].
name
atrium_hostname
=
scaleway_domain_record
.
subdomain_record
[
count
.
index
].
name
atrium_letsencrypt_email
=
var
.
LETSENCRYPT_EMAIL
atrium_letsencrypt_email
=
var
.
LETSENCRYPT_EMAIL
...
...
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