1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-26 00:38:37 +00:00
dockerfiles/ansible/Dockerfile

21 lines
621 B
Docker
Raw Permalink Normal View History

2021-11-02 11:22:01 +00:00
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"]