Skip to content

Instantly share code, notes, and snippets.

@zebreus
Last active September 2, 2019 13:17
Show Gist options
  • Save zebreus/da615c5f52f10ca7e04e24c8ccb0c9c9 to your computer and use it in GitHub Desktop.
Save zebreus/da615c5f52f10ca7e04e24c8ccb0c9c9 to your computer and use it in GitHub Desktop.
Certificate Generator Installationsanleitung
version: '3.5'
services:
webclient:
image: nginx:latest
container_name: webclient
restart: unless-stopped
volumes:
- /etc/localtime:/etc/localtime:ro
- /full/path/to/webClient/out:/usr/share/nginx/html:ro
ports:
- 80:80
certificategenerator:
image: certgen
container_name: certificategenerator
restart: unless-stopped
volumes:
- /etc/localtime:/etc/localtime:ro
environment:
- PORT=9092
- DOCKER=false
- THREADS=true
- MAX_BATCH_COMPILERS=2
- MAX_COMPILERS=4
- DEBUG=true
- KEEP-FILES=true
websockify:
image: efrecon/websockify
container_name: websockify
restart: unless-stopped
volumes:
- /etc/localtime:/etc/localtime:ro
ports:
- 9090:9090
command: 9090 certificategenerator:9092
#!/bin/bash
## Instalationsanleitung webdemo
### Schritt 0: docker und docker-compose installieren
### Schritt 0.5: Sicherstellen, dass der Nutzer auf docker zugreifen darf. Dazu den Nutzer zur Gruppe docker hinzufügen.
### Schritt 1: Repos clonen
git clone --recursive https://github.com/Zebreus/webClient.git
git clone https://github.com/Zebreus/certificate-generator.git
### Schritt 2: WebClient erstellen.
cd webClient
make
cd ..
### Schritt 3: Generator erstellen.
cd certificate-generator
make
cd ..
### Schritt 4: docker-compose.yml herunterladen und /path/to/webClient/out durch richtigen Pfad ersetzen
wget gist.githubusercontent.com/Zebreus/da615c5f52f10ca7e04e24c8ccb0c9c9/raw/docker-compose.yml
sed -i "s|/full/path/to/|$(pwd)/|g" docker-compose.yml
### Schritt 5: docker-compose up aufrufen.
docker-compose up
### Schritt 6: localhost:80/index.html im webbrowser öffnen.
### Schritt 7: Haken aus der wss Checkbox entfernen, Hostname auf localhost und Port auf 9090 setzen und dann auf open klicken.
### Schritt 7: Docker Container wieder entfernen.
docker-compose down
docker-compose rm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment