diff --git a/Dockerfile b/Dockerfile index a6d2917..eea52e5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 && \ diff --git a/example/Dockerfile b/example/Dockerfile index 06f4a4c..60744a4 100644 --- a/example/Dockerfile +++ b/example/Dockerfile @@ -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/ diff --git a/example/README.md b/example/README.md index 6e0ae16..c23b2cf 100644 --- a/example/README.md +++ b/example/README.md @@ -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 ``` @@ -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 ```