Skip to content

Commit

Permalink
Add tzdata
Browse files Browse the repository at this point in the history
  • Loading branch information
elmariofredo committed May 31, 2020
1 parent 8bddb6b commit 05d434e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ RUN apk upgrade \
git \
openssh-client \
sshpass \
tzdata \
--no-cache

COPY requirements.txt /var/run/requirements.txt

# RUN pip3 install --upgrade pip && \
Expand Down
2 changes: 1 addition & 1 deletion example/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM docker.io/devincan/ansible-playbook-base:v0.1
FROM docker.io/devincan/ansible-playbook-base:v0.4

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

Expand Down
10 changes: 8 additions & 2 deletions example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,19 @@ Just go ahead and try [run](#run-wrapped-playbook) this example docker image aga
2. Run this docker image with mounted inventory.yml and id_rsa key from you local or CI
3. Profit 🎩

## Build wrapped playbook

```
docker build -t docker.io/devincan/ansible-playbook-example:dev .
```

## Run wrapped playbook

```
$ docker run -it \
-v $HOME/.ssh/id_rsa:/home/ansible/.ssh/id_rsa \
-v /path/to/inventory.yml:/ansible/inventory.yml \
docker.io/devincan/ansible-playbook-example:v0.1 \
docker.io/devincan/ansible-playbook-example:dev \
-v -e global_test_variable=test
```

Expand Down Expand Up @@ -51,6 +57,6 @@ $ docker run -it \
-v $PWD:/ansible-playbook \
-v $HOME/.ssh/id_rsa:/home/ansible/.ssh/id_rsa \
-v /path/to/inventory.yml:/ansible/inventory.yml \
docker.io/devincan/ansible-playbook-example:v0.1 \
docker.io/devincan/ansible-playbook-example:dev \
-v -e global_test_variable=test
```

0 comments on commit 05d434e

Please sign in to comment.