Coder Social home page Coder Social logo

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

c3s-magic's Projects

c3s-magic doesnโ€™t have any public repositories yet.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.