-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
24 lines (19 loc) · 848 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# pull base image
FROM ubuntu:latest
MAINTAINER BlueStone <support@bluestone.ch>
ENV TZ=Europe/Zurich
ENV DEBIAN_FRONTEND=noninteractive
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update -qq && \
apt-get install -y git python3 python3-minimal python3-pip libkrb5-dev krb5-user && \
apt-get install -y sshpass openssh-client && \
pip install --upgrade pycrypto pywinrm && \
pip install pywinrm[kerberos] && \
python3 -m pip install ansible && \
ansible-galaxy collection install community.windows && \
ansible-galaxy collection install community.docker && \
ansible-galaxy install nvidia.nvidia_driver && \
mkdir -p /etc/ansible/ && \
echo 'localhost' > /etc/ansible/hosts
# default command: display Ansible version
CMD [ "ansible-playbook", "--version" ]