some little work on the writingenv
This commit is contained in:
parent
7d0757b490
commit
c0174932d8
@ -16,7 +16,8 @@ ADD root /
|
|||||||
|
|
||||||
# prepare for provisioning
|
# prepare for provisioning
|
||||||
RUN set -ex \
|
RUN set -ex \
|
||||||
&& apk add \
|
&& apk upgrade -a --no-cache \
|
||||||
|
&& apk add --no-cache\
|
||||||
ansible \
|
ansible \
|
||||||
bash \
|
bash \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
@ -37,11 +38,8 @@ USER blog
|
|||||||
# provision
|
# provision
|
||||||
RUN set -ex \
|
RUN set -ex \
|
||||||
&& git clone https://github.com/xsteadfastx/batcave.git ~/.batcave \
|
&& git clone https://github.com/xsteadfastx/batcave.git ~/.batcave \
|
||||||
|
&& touch ~/.profile \
|
||||||
&& ansible-playbook -i ~/.batcave/hosts ~/.batcave/shell.yml -c local --extra-vars="host=127.0.0.1" \
|
&& ansible-playbook -i ~/.batcave/hosts ~/.batcave/shell.yml -c local --extra-vars="host=127.0.0.1" \
|
||||||
&& ansible-playbook -c local /home/blog/playbooks/writing_env.yml
|
&& ansible-playbook -c local /home/blog/playbooks/writing_env.yml
|
||||||
|
|
||||||
# clean up
|
|
||||||
RUN set -ex \
|
|
||||||
&& sudo rm -rf /var/cache/apk/*
|
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
Loading…
Reference in New Issue
Block a user