Skip to content

Commit 533b410

Browse files
committed
Separate each component in a separate container
1 parent ff124ce commit 533b410

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ MAINTAINER Virginie Van den Schrieck, [email protected]
66
RUN cat /etc/resolv.conf
77
RUN apt-get update \
88
&& apt-get install -y gcc libc6-dev make curl wget xz-utils\
9-
ca-certificates bzip2 --no-install-recommends \
9+
ca-certificates bzip2 --no-install-recommends strace \
1010
&& rm -rf /var/lib/apt/lists/*
1111

1212

@@ -51,4 +51,4 @@ RUN git submodule update --init --recursive && make
5151

5252
RUN echo "tmpfs /dev/shm tmpfs defaults,nosuid,nodev 0 0" >> /etc/fstab && echo "">>/etc/fstab
5353

54-
ENTRYPOINT sh -c "mount /dev/shm && ./out/pythia queue & ./out/pythia pool & ./out/pythia server"
54+
ENTRYPOINT sh -c "mount /dev/shm && strace ./out/pythia queue & strace ./out/pythia pool & strace ./out/pythia server"

docker-compose.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,34 @@
11
version: '3'
22
services:
3-
core:
3+
pool:
4+
privileged: true
5+
security_opt:
6+
- seccomp:unconfined
7+
build: .
8+
volumes:
9+
- .:/home/pythia
10+
links:
11+
- queue
12+
entrypoint: ./out/pythia -queue "queue:9000" pool & mount -av
13+
queue:
414
privileged: true
515
security_opt:
616
- seccomp:unconfined
717
build: .
818
ports:
919
- "9000:9000"
10-
- "8080:8080"
1120
volumes:
1221
- .:/home/pythia
22+
entrypoint: ./out/pythia -queue "0.0.0.0:9000" queue
23+
server:
24+
privileged: true
25+
security_opt:
26+
- seccomp:unconfined
27+
build: .
28+
ports:
29+
- "8080:8080"
30+
volumes:
31+
- ./:/home/pythia
32+
links:
33+
- queue
34+
entrypoint: ./out/pythia -queue "queue:9000" server

0 commit comments

Comments
 (0)