-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
34 lines (29 loc) · 1002 Bytes
/
docker-compose.yml
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
# # vim: set expandtab ai :
version: "2"
services:
# For building locally.
builder:
build: .
environment:
# HACK: allows pktvisor to see its conf files outside of /etc
ETCDIRE: "/builder"
volumes:
- ./src:/builder
# For building a Debian package for release.
release:
image: pktvisor_builder
volumes:
- ./src:/builder
working_dir: /builder
# HACK: Stupid dpkg builder can only output to parent dir so we copy the result
# so as to expose it for the caller of this docker.
command: [/bin/sh, -c, "dpkg-buildpackage -us -uc -b && mv ../pktvisor_*.deb /builder/"]
# For running locally. Requires that the builder image be built.
pktvisor:
image: pktvisor_builder
cap_add:
# Required when running in docker.
- IPC_LOCK
volumes:
- ./src:/builder
entrypoint: /builder/pktvisor/pktvisor