aboutsummaryrefslogtreecommitdiffstats
path: root/tests/2-nodes.yml
blob: ce87e587647efdf0ca6e08bb2f3479dbcffdd0b6 (plain)
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
version: "3"
services:
  client:
    build:
      context: ..
      dockerfile: ${DOCKERFILE}
      args:
        BASE_IMAGE: ${BASE_IMAGE}
    privileged: true
    stdin_open: true
    hostname: client
    tty: true
    working_dir: /workspace
    networks:
      - kernel
    volumes:
      - ..:/workspace
    entrypoint: [/bin/bash, -x, -c]
    command:
      - tail -f /dev/null

  server:
    build:
      context: ..
      dockerfile: ${DOCKERFILE}
      args:
        BASE_IMAGE: ${BASE_IMAGE}
    privileged: true
    stdin_open: true
    hostname: server
    tty: true
    working_dir: /workspace
    networks:
      - kernel
    volumes:
      - ..:/workspace
    entrypoint: [/bin/bash, -x, -c]
    command:
      - tail -f /dev/null

networks:
  kernel:
    driver: bridge