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

Added configuration

parent adb16667
No related branches found
No related tags found
6 merge requests!6End of development,!5Develop,!4End of development,!3Develop,!2hot-fix: change readme.md,!1Develop
Pipeline #49186 passed
# Alpha Project Manager # Alpha Project Manager
An infrastructure as code manager working with gitlab and scaleway. An Infrastructure as Code manager to deploy lab infrastructure. Working with Atrium, Gitlab CI, Terraform, Cloud-init and Scaleway.
### How does it work ?
At first, Gitlab CI will run scripts to generate environment variables.
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
## Setup Terraform Locally ## Setup Terraform Locally
......
...@@ -41,9 +41,9 @@ runcmd: ...@@ -41,9 +41,9 @@ runcmd:
- "sh get-docker.sh" - "sh get-docker.sh"
# Setup Atrium # Setup Atrium
- "mkdir -p /root/app/data/letsencrypt_cache" - "mkdir -p /root/app/data/letsencrypt_cache"
- "cp /root/atrium.yaml /root/app/data/atrium.yaml && rm /root/atrium.yaml" - "cp /root/atrium.yaml /root/app/atrium.yaml && rm /root/atrium.yaml"
# Run Atrium Container # Run Atrium Container
- "docker run -d --name atrium --net=host -v /root/app/data/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" - "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"
# 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/"
......
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