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
a2d33cec
Commit
a2d33cec
authored
2 years ago
by
Nathan Rodet
Browse files
Options
Downloads
Patches
Plain Diff
Added configuration
parent
3e882239
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
#49196
passed
2 years ago
Stage: prepare
Stage: validate
Stage: build
Stage: deploy
Stage: destroy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
terraform/cloud-init.yml
+26
-22
26 additions, 22 deletions
terraform/cloud-init.yml
with
26 additions
and
22 deletions
terraform/cloud-init.yml
+
26
−
22
View file @
a2d33cec
...
...
@@ -10,27 +10,27 @@ packages:
-
git
write_files
:
-
content
:
|
hostname:
$(scw-userdata
atrium_hostname
)
debug_mode: false
letsencrypt_email:
$(scw_userdata
atrium_letsencrypt_email
)
apps: # optional : applications served by atrium
- id: 1
name: Code
icon: web_asset
color: 4292030255
is_proxy: true
host: "code-
$(scw_userdata
atrium_count_index
)
"
target:
$(scw_userdata
atrium_private_ip
)
:8080
apps: # optional : applications served by atrium
- id: 2
name: Desktop
icon: web_asset
color: 4292030255
is_proxy: true
host: "desktop-
$(scw_userdata
atrium_count_index
)
"
target:
$(scw_userdata
atrium_private_ip
)
:8081
path
:
/root/atrium.yaml
-
content
:
|
hostname:
%
atrium_hostname
%
debug_mode: false
letsencrypt_email:
%
atrium_letsencrypt_email
%
apps: # optional : applications served by atrium
- id: 1
name: Code
icon: web_asset
color: 4292030255
is_proxy: true
host: "code-
%
atrium_count_index
%
"
target:
%
atrium_private_ip
%
:8080
apps: # optional : applications served by atrium
- id: 2
name: Desktop
icon: web_asset
color: 4292030255
is_proxy: true
host: "desktop-
%
atrium_count_index
%
"
target:
%
atrium_private_ip
%
:8081
path
:
/root/atrium.yaml
runcmd
:
# Install Rust
...
...
@@ -41,6 +41,10 @@ runcmd:
-
"
sh
get-docker.sh"
# Setup Atrium
-
"
mkdir
-p
/root/app/data/letsencrypt_cache"
-
'
sed
-i
"s/%atrium_hostname%/$(scw-userdata
atrium_hostname)/g"
atrium.yaml'
-
'
sed
-i
"s/%atrium_letsencrypt_email%/$(scw-userdata
atrium_letsencrypt_email)/g"
atrium.yaml'
-
'
sed
-i
"s/%atrium_count_index%/$(scw-userdata
atrium_count_index)/g"
atrium.yaml'
-
'
sed
-i
"s/%atrium_private_ip%/$(scw-userdata
atrium_private_ip)/g"
atrium.yaml'
-
"
cp
-f
/root/atrium.yaml
/root/app/atrium.yaml"
# Run Atrium Container
-
"
docker
run
-d
--name
atrium
--net=host
-v
/root/app/atrium.yaml:/app/atrium.yaml
-v
/root/app/data/GeoLite2-City.mmdb:/app/GeoLite2-City.mmdb
-v
/root/app/data/letsencrypt_cache:/app/letsencrypt_cache
-v
/root/app/data:/app/data
nicolaspernoud/atrium:latest"
...
...
@@ -51,4 +55,4 @@ runcmd:
# Run Code Server
-
"
systemctl
enable
--now
code-server@$USER"
# 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
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"
\ No newline at end of file
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