-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalpine-daemontools.json
55 lines (55 loc) · 1.09 KB
/
alpine-daemontools.json
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
{
"variables": {
"ansible_host": "alpine-daemontools",
"ansible_connection": "docker",
"docker_repo": "{{env `DOCKER_REPO`}}",
"docker_tag": "{{env `DOCKER_TAG`}}"
},
"builders": [
{
"type": "docker",
"image": "alpine:3",
"commit": true,
"changes": [
"EXPOSE 22",
"ENTRYPOINT [\"/usr/bin/dumb-init\", \"--\"]",
"CMD /etc/rc"
],
"run_command": ["-d", "-i", "-t", "--name", "{{user `ansible_host`}}", "{{.Image}}", "/bin/sh"]
}
],
"provisioners": [
{
"type": "shell",
"script": "install-python3.sh"
},
{
"type": "ansible",
"groups": [ "services" ],
"user": "root",
"playbook_file": "bootstrap.yml",
"extra_arguments": [
"--extra-vars",
"ansible_host={{user `ansible_host`}} ansible_connection={{user `ansible_connection`}}"
]
}
],
"post-processors": [
[
{
"type": "docker-tag",
"repository": "{{user `docker_repo`}}",
"tag": "{{user `docker_tag`}}"
},
"docker-push"
],
[
{
"type": "docker-tag",
"repository": "{{user `docker_repo`}}",
"tag": "latest"
},
"docker-push"
]
]
}