Skip to content
Snippets Groups Projects
Commit b3fd7670 authored by Nathan Rodet's avatar Nathan Rodet
Browse files

Added configuration

parent 7c259a0f
No related branches found
No related tags found
No related merge requests found
......@@ -10,8 +10,7 @@ They will be used in Terraform for configuration and securing credentials.
After this, Gitlab CI will initiate Terraform, which create infrastructure matching the configuration.
While deploying resources, especially instances, Terraform will provide the cloud-init.yml script so it can be executed after boot and configure the instances.
Infrastructure is ready, which the script runned at boot 3 services are running : atrium which serve as a reverse-proxy, code-server and webtop.
User just
Infrastructure is ready, the cloud-init script will run at boot 3 services and leave 3 services running : atrium which serve as a reverse-proxy, code-server and webtop.
## Setup Terraform Locally
......
......@@ -47,7 +47,8 @@ runcmd:
- "curl -fsSL https://get.docker.com -o get-docker.sh"
- "sh get-docker.sh"
# Install Atrium
- "mkdir -p /root/app/data/letsencrypt_cache"
- "mkdir -p /root/app/data && mkdir -p /root/app/letsencrypt_cache"
- 'chown -Rf 1000:1000 root/data root/letsencrypt_cache'
- '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_count_index%/$(scw-userdata atrium_count_index)/g" /root/atrium.yaml'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment