forked from datasciencetoolbox/datasciencetoolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.json
60 lines (60 loc) · 1.55 KB
/
template.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
56
57
58
59
60
{
"sensitive-variables": [
"docker_hub_password"
],
"builders": [
{
"type": "docker",
"image": "ubuntu:21.04",
"commit": true,
"changes": [
"USER dst",
"ENV HOSTNAME datasciencetoolbox",
"ENV SHELL /usr/bin/zsh",
"WORKDIR /home/dst",
"ENTRYPOINT [\"/usr/bin/zsh\"]"
]
}
],
"provisioners": [
{
"type": "shell",
"inline": ["echo \"{{ isotime \"20060102\" }}\" > /tag"],
"only": ["docker"]
},
{
"type": "shell",
"inline": "apt update && yes | unminimize && ln -fs /usr/share/zoneinfo/UTC /etc/localtime && export DEBIAN_FRONTEND=noninteractive && apt install -y tzdata && dpkg-reconfigure --frontend noninteractive tzdata && apt install -y python3-pip python3-apt sudo"
},
{
"type": "ansible",
"playbook_file": "./playbook-tools.yml",
"extra_arguments": ["--skip-tags=pydata"]
},
{
"type": "ansible",
"playbook_file": "./playbook-user.yml",
"only": ["docker"]
}
],
"post-processors": [
[
{
"type": "docker-tag",
"repository": "datasciencetoolbox/dsatcl2e",
"tags": ["latest", "{{ isotime \"20060102\" }}"],
"force": true,
"only": ["docker"]
},
{
"type": "docker-push",
"login": true,
"login_server": "docker.io",
"login_username": "datasciencetoolbox",
"login_password": "{{user `docker_hub_password`}}",
"keep_input_artifact": false,
"only": ["docker"]
}
]
]
}