removed the workdir
This commit is contained in:
parent
d86b6f3b14
commit
9c408dfb29
@ -2,6 +2,4 @@ FROM alpine:3.4
|
|||||||
|
|
||||||
RUN apk add --no-cache ansible
|
RUN apk add --no-cache ansible
|
||||||
|
|
||||||
WORKDIR /site
|
|
||||||
|
|
||||||
CMD ["ansible-playbook", "--help"]
|
CMD ["ansible-playbook", "--help"]
|
||||||
|
@ -12,6 +12,4 @@ RUN apt-get -q update \
|
|||||||
&& pip install --quiet --upgrade \
|
&& pip install --quiet --upgrade \
|
||||||
ansible
|
ansible
|
||||||
|
|
||||||
WORKDIR /site
|
|
||||||
|
|
||||||
CMD ["ansible-playbook", "--help"]
|
CMD ["ansible-playbook", "--help"]
|
||||||
|
@ -5,6 +5,4 @@ RUN dnf -y install \
|
|||||||
openssh-clients \
|
openssh-clients \
|
||||||
&& dnf clean all
|
&& dnf clean all
|
||||||
|
|
||||||
WORKDIR /site
|
|
||||||
|
|
||||||
CMD ["ansible-playbook", "--help"]
|
CMD ["ansible-playbook", "--help"]
|
||||||
|
@ -9,6 +9,4 @@ RUN apt-get update \
|
|||||||
ansible \
|
ansible \
|
||||||
&& apt-get autoclean
|
&& apt-get autoclean
|
||||||
|
|
||||||
WORKDIR /site
|
|
||||||
|
|
||||||
CMD ["ansible-playbook", "--help"]
|
CMD ["ansible-playbook", "--help"]
|
||||||
|
@ -12,6 +12,7 @@ Available with four image tags:
|
|||||||
## run ansible
|
## run ansible
|
||||||
|
|
||||||
docker run -it --rm \
|
docker run -it --rm \
|
||||||
|
-w /site \
|
||||||
-v /path/to/site/:/site \
|
-v /path/to/site/:/site \
|
||||||
-v /path/to/ansible-user-ssh/:/root/.ssh:ro \
|
-v /path/to/ansible-user-ssh/:/root/.ssh:ro \
|
||||||
--tmpfs /root/.ansible \
|
--tmpfs /root/.ansible \
|
||||||
|
Loading…
Reference in New Issue
Block a user