Skip to content

Commit 05d434e

Browse files
Add tzdata
1 parent 8bddb6b commit 05d434e

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ RUN apk upgrade \
4242
git \
4343
openssh-client \
4444
sshpass \
45+
tzdata \
4546
--no-cache
46-
4747
COPY requirements.txt /var/run/requirements.txt
4848

4949
# RUN pip3 install --upgrade pip && \

example/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM docker.io/devincan/ansible-playbook-base:v0.1
1+
FROM docker.io/devincan/ansible-playbook-base:v0.4
22

33
COPY --chown=ansible:ansible ./*.yml /ansible-playbook/
44

example/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,19 @@ Just go ahead and try [run](#run-wrapped-playbook) this example docker image aga
1616
2. Run this docker image with mounted inventory.yml and id_rsa key from you local or CI
1717
3. Profit 🎩
1818

19+
## Build wrapped playbook
20+
21+
```
22+
docker build -t docker.io/devincan/ansible-playbook-example:dev .
23+
```
24+
1925
## Run wrapped playbook
2026

2127
```
2228
$ docker run -it \
2329
-v $HOME/.ssh/id_rsa:/home/ansible/.ssh/id_rsa \
2430
-v /path/to/inventory.yml:/ansible/inventory.yml \
25-
docker.io/devincan/ansible-playbook-example:v0.1 \
31+
docker.io/devincan/ansible-playbook-example:dev \
2632
-v -e global_test_variable=test
2733
```
2834

@@ -51,6 +57,6 @@ $ docker run -it \
5157
-v $PWD:/ansible-playbook \
5258
-v $HOME/.ssh/id_rsa:/home/ansible/.ssh/id_rsa \
5359
-v /path/to/inventory.yml:/ansible/inventory.yml \
54-
docker.io/devincan/ansible-playbook-example:v0.1 \
60+
docker.io/devincan/ansible-playbook-example:dev \
5561
-v -e global_test_variable=test
5662
```

0 commit comments

Comments
 (0)