mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-02-02 17:08:38 +08:00
Create dockerfile
This commit is contained in:
parent
f342414baf
commit
4723feba37
20
scripts/dockerfile
Normal file
20
scripts/dockerfile
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
FROM ansible/ansible:centos7
|
||||||
|
|
||||||
|
LABEL Description="DevOps for ansible runtime" Vendor="Websoft9" Version="1.0.0"
|
||||||
|
|
||||||
|
WORKDIR "/ansible"
|
||||||
|
|
||||||
|
# Install ansible
|
||||||
|
RUN yum install ansible -y
|
||||||
|
|
||||||
|
# Install role_common
|
||||||
|
RUN git clone https://github.com/Websoft9/role_common
|
||||||
|
RUN ansible-playbook role_common/tests/test.yml
|
||||||
|
|
||||||
|
# download template of role, it's to run the tasks of you want to test
|
||||||
|
RUN git clone https://github.com/Websoft9/role_test
|
||||||
|
|
||||||
|
VOLUME "/ansible"
|
||||||
|
|
||||||
|
# Define the entry point for the docker container.
|
||||||
|
CMD ["bash" "-c" "echo ansible RunTime is OK!"]
|
Loading…
Reference in New Issue
Block a user