-
Notifications
You must be signed in to change notification settings - Fork 4
Install on Server
Sebi1006 edited this page Jun 23, 2021
·
5 revisions
You can install and run Zeta fully automized via Docker Compose.
Actually there are two debian-based server instances provided from HTWG Konstanz:
These servers are reachable over HTWG Konstanz VPN only.
A distinction is made between the initial step and the update step.
- Prerequisites
apt-get update
apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common
- 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
- 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
- Checkout Zeta repository
cd /opt/
git clone https://github.com/Zeta-Project/zeta.git
- Build and start all containers (more information!). Follow the instruction from here before you build the container.
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.
- Shutdown
cd /opt/zeta/
docker-compose down
- Update repo
cd /opt/zeta/
git pull
- Remove old Docker image (zeta-sbt:1.0.6)
docker rmi zeta-sbt:1.0.6
- 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.