forked from jerikan-network/cmdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
85 lines (79 loc) · 2.04 KB
/
docker-compose.yaml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: '3.4'
services:
junoser:
image: ghcr.io/jerikan-network/junoser:latest
expose:
- 4567
# IRRd
irrd:
image: ghcr.io/jerikan-network/irrd-legacy:latest
expose:
- 43
# Image to run Jerikan using the deployed version in git
jerikan: &jerikan
build:
context: .
dockerfile: ci/jerikan/Dockerfile
args:
uid: ${oUID}
gid: ${oGID}
volumes:
- .:/app/jerikan:ro,z
- ./output:/app/jerikan/output:rw,z
- ./.cache~:/app/jerikan/.cache~:rw,z
cap_add:
- NET_ADMIN
depends_on:
- junoser
environment:
JUNOSER_URL: http://junoser:4567
jerikan-ci:
<<: *jerikan
depends_on:
- junoser
- irrd
environment:
JUNOSER_URL: http://junoser:4567
IRRD_SERVER: irrd
# Tool to convert a diff to HTML
diff2html:
build:
context: ci
dockerfile: Dockerfile.diff2html
# Ansible
ansible:
build:
context: ci/ansible
dockerfile: Dockerfile
target: ansible-only
args:
uid: ${oUID}
gid: ${oGID}
environment: &ansible-env
VAULT_ADDR: https://vault.gcp.blade-group.net/
VAULT_TOKEN: # to be provided
# Several ansible variables that can be useful to set
ANSIBLE_LOG_PATH: /tmp/ansible.log
ANSIBLE_DEBUG: # Set to "True"
ANSIBLE_ENABLE_TASK_DEBUGGER: # Set to "True"
volumes:
- ./output:/app/output:ro,z
- ./ansible:/app/ansible:ro,z
- ./data:/app/data:rw,z
- ./ci/ansible/ssh_config:/etc/ssh/ssh_config:ro,z
- $SSH_AUTH_SOCK:/app/ssh-agent.sock:z
# Ansible with data from generated output by CI
ansible-gitlab:
build:
context: ci/ansible
dockerfile: Dockerfile
target: ansible-and-data
args:
uid: ${oUID}
gid: ${oGID}
sha: ${SHA:-nothing}
environment: *ansible-env
volumes:
- ./ansible:/app/ansible:ro,z
- ./ci/ansible/ssh_config:/etc/ssh/ssh_config:ro,z
- $SSH_AUTH_SOCK:/app/ssh-agent.sock:z