Skip to content
manuele-lorusso edited this page Jan 9, 2020 · 5 revisions

You can install and run Zeta fully automised via docker-compose.


Actually there are two debian-based server instances provided from HTWG Konstanz:

This servers are reachable over HTWG Konstanz VPN only.


A distinction is made between the initial step and the update step.

Install

  1. prerequisites
apt-get update
apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common
  1. add docker repository and install
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
apt-get update
apt-get install docker-ce docker-ce-cli containerd.io
  1. install/copy docker-compose
curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
  1. checkout zeta repository
cd /opt/
git clone https://github.com/Zeta-Project/zeta.git
  1. Build & Start all containers (more Information!)
cd /opt/zeta/
docker-compose up -d api   #-d stands for detach, so run containers in background. But you have to wait some time till webapp is reachable although the starting in console is done.

Update

  1. Shutdown
cd /opt/zeta/
docker-compose down
  1. update repo
cd /opt/zeta/
git pull
  1. remove old docker image (zeta-sbt:1.0.6)
docker rmi zeta-sbt:1.0.6
  1. Build & Start
cd /opt/zeta/
docker-compose up -d api   #-d stands for detach, so run containers in background. But you have to wait some time till webapp is reachable although the starting in console is done.
Clone this wiki locally