mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-21 01:27:01 +02:00
ansible dockerfile
This commit is contained in:
parent
33fff7b487
commit
020ca70660
20
ansible/Dockerfile
Normal file
20
ansible/Dockerfile
Normal file
@ -0,0 +1,20 @@
|
||||
FROM ubuntu:20.04
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
RUN apt-get update && \
|
||||
apt-get install -y gcc python-dev libkrb5-dev && \
|
||||
apt-get install python3-pip -y && \
|
||||
pip3 install --upgrade pip && \
|
||||
pip3 install --upgrade virtualenv && \
|
||||
pip3 install pywinrm[kerberos] && \
|
||||
apt install krb5-user -y && \
|
||||
pip3 install pywinrm && \
|
||||
pip3 install ansible && \
|
||||
apt-get install -y iputils-ping && \
|
||||
apt install openssh-server sudo -y && \ useradd -rm -d /home/ubuntu -s /bin/bash -g root -G sudo -u 1000 test
|
||||
|
||||
RUN echo 'test:test' | chpasswd && \
|
||||
service ssh start
|
||||
|
||||
EXPOSE 22
|
||||
|
||||
CMD ["/usr/sbin/sshd","-D"]
|
15
ansible/README.md
Normal file
15
ansible/README.md
Normal file
@ -0,0 +1,15 @@
|
||||
ansible
|
||||
==========
|
||||
This Dockerfile is for building an ansible environment.
|
||||
|
||||
![](https://github.com/rezabojnordi)
|
||||
|
||||
## Make Images
|
||||
|
||||
```
|
||||
$ docker login
|
||||
|
||||
$ docker build -t ansible:latest .
|
||||
```
|
||||
|
||||
[1]: https://github.com/rezabojnordi
|
Loading…
Reference in New Issue
Block a user