Skip to content
This repository has been archived by the owner on Mar 13, 2020. It is now read-only.

Magic Release 1 Orchestration (Docker Compose) code

Notifications You must be signed in to change notification settings

c3s-magic/c3s-magic-release1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cs3-magic

Main System repo for C3S

Setup

This system relies on two different systems, usually run as a docker container.

Note: this is very sparse on details.

Starting from plain ubuntu machine on SURFsara HPCcloud.

  • Get ubuntu-server template
  • Add data disk
  • Boot
  • update machine
sudo apt-get update
sudo apt-get upgrade
#install some tools
sudo apt-get -y install \
  apt-transport-https \
  ca-certificates \
  curl \
  software-properties-common \

# add docker key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

# add docker repo
sudo add-apt-repository \
       "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
       $(lsb_release -cs) \
       stable"

# fetch packages
sudo apt-get update

# install
sudo apt-get -y install docker-ce

#add user to docker group
sudo usermod -a -G docker ubuntu

# test
sudo docker run hello-world

  • Install docker-compose
curl -L https://github.com/docker/compose/releases/download/1.14.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

Install and start C3S system

#add git to machine if needed
sudo apt-get -y install git

git clone https://github.com/c3s-magic/c3s-magic.git
cd cs3-magic
docker-compose up
  • Allow https traffic to VM
sudo ufw allow 443/tcp
  • Lets Encrypt!

Compose mounts letsencrypt specific .well-known folder for the challange

cd c3s-magic sudo certbot certonly --webroot -w letsencrypt -d compute-test.c3s-magic.eu

#renew once in a while certbot renew

#put key in keystore

#put key in truststore keytool -delete -alias adagucservicescert -keystore config/portal/esg-truststore.ts -storepass changeit -noprompt keytool -import -v -trustcacerts -alias adagucservicescert -file /etc/letsencrypt/live/compute-test.c3s-knmi.surf-hosted.nl/fullchain.pem -keystore config/portal/esg-truststore.ts -storepass changeit -noprompt

About

Magic Release 1 Orchestration (Docker Compose) code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages