Permalink
Browse files

add a docker-compose file for quickstart testing

Signed-off-by: julian <dev@jneureuther.de>
  • Loading branch information...
nightvisi0n committed Mar 30, 2018
1 parent f0e9ccb commit 5240cc8a53c609465a3cbc8e60f78306b9cfdc20
Showing with 75 additions and 0 deletions.
  1. +21 −0 README.md
  2. +54 −0 docker-compose.yml
View
@@ -52,6 +52,27 @@ Now proceed as described under [Installation](#installation).
## Quickstart using Docker
### docker-compose
Run the core, gui and two example source streams
```
xhost +local:$(id -un)
mkdir /tmp/vocto/ && touch /tmp/vocto/configgui.ini
GID=$(id -g) UID=$(id -u) docker-compose up
```
Run only the core
```
docker-compose up voctocore
```
Clean up stale containers
```
docker-compose rm
```
### Manually
Run the core and two example source streams
```
docker run -it --rm --name=voctocore c3voc/voctomix core
View
@@ -0,0 +1,54 @@
---
version: '3.4'
services:
voctocore:
image: c3voc/voctomix
command: core
container_name: voctocore
networks:
voctomix:
aliases:
- corehost
source_cam1:
image: c3voc/voctomix
command: gstreamer/source-videotestsrc-as-cam1.sh
container_name: source_cam1
depends_on:
- voctocore
networks:
- voctomix
source_bg:
image: c3voc/voctomix
command: gstreamer/source-videotestsrc-as-background-loop.sh
container_name: source_bg
depends_on:
- voctocore
networks:
- voctomix
voctogui:
image: c3voc/voctomix
command: gui
container_name: voctogui
depends_on:
- voctocore
environment:
DISPLAY: :0
uid: ${UID}
gid: ${GID}
volumes:
- type: bind
source: /tmp/vocto/configgui.ini
target: /opt/voctomix/voctogui/config.ini
- type: bind
source: /tmp/.X11-unix
target: /tmp/.X11-unix
- type: bind
source: /tmp/.docker.xauth
target: /tmp/.docker.xauth
networks:
- voctomix
networks:
voctomix:
...

0 comments on commit 5240cc8

Please sign in to comment.