-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver_commands.txt
More file actions
52 lines (38 loc) · 1.29 KB
/
server_commands.txt
File metadata and controls
52 lines (38 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Create server
https://portal.bw-cloud.org/project/instances/
https://www.bw-cloud.org/de/bwcloud_scope/nutzen
# Log in
Linux: ssh isas-interactive
Windows: Puttygen -> Putty -> username "debian"
# Install
sudo apt-get update
sudo apt-get dist-upgrade
# Only once: Install Docker
sudo apt install -y docker.io docker-compose
sudo systemctl enable --now docker
sudo usermod -aG docker $USER
(then exit ssh and log back in)
# Only Once: Git
sudo apt-get install git
git clone https://github.com/KIT-ISAS/web-app.git
# Continue here
cd ./web-app
git pull
# Optional: Edit Dockerfile
nano dockerfile
# uncomment 32 cores only on server with enough resources
# Strg-S, Strg-X
# Main Command: Run with docker
# ('docker-compose' for old docker version from debian repos, 'docker compose' for newer versions like ubuntu-latest github runner)
# (This command starts the app. If a previous version is already running, it also shuts it down.)
docker-compose --profile default up -d --build
# Run tests
docker compose --profile test build tests
docker compose --profile test run --rm tests
# Turn server off (not needed for updating image):
docker compose down
# Clean up onld images
docker image prune -a -f
# Test in Browser
Test server: http://193.196.39.84:8080
Production server: http://193.196.39.120:8080