alpha
Login
or
Join now
shuuji3.xyz
/
packer-tutorial
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
[READ-ONLY] Mirror of https://github.com/shuuji3/packer-tutorial.
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
feat: add shell provisioner
author
TAKAHASHI Shuuji
date
4 years ago
(Jun 15, 2022, 12:09 AM +0900)
commit
4dd07e17
4dd07e179a0f4536e469b585deaebaa1402ff071
parent
aac2f9b9
aac2f9b9ace2f82a35e28f8a3cb9ac5a720da2ba
+10
1 changed file
Expand all
Collapse all
Unified
Split
docker-ubuntu.pkr.hcl
+10
docker-ubuntu.pkr.hcl
View file
Reviewed
···
17
17
sources = [
18
18
"source.docker.ubuntu"
19
19
]
20
20
+
21
21
+
provisioner "shell" {
22
22
+
environment_vars = [
23
23
+
"MESSAGE=hello world"
24
24
+
]
25
25
+
inline = [
26
26
+
"echo Adding file to Docker container",
27
27
+
"echo \"MESSAGE is $MESSAGE\" > message.txt"
28
28
+
]
29
29
+
}
20
30
}