-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
37 lines (32 loc) · 1.3 KB
/
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
25
26
27
28
29
30
31
32
33
34
35
36
37
# Dockerfile to build a Ubuntu container using the latest image
# Ansible is installed and can be used to run and install more modules
# Mount the required directory or directories for playbooks
#
# AUTHOR(s): Russell Johnston <[email protected]>
FROM ubuntu:latest
LABEL org.cisco.authors="Russell Johnston <[email protected]>"
LABEL version=0.2
RUN apt-get update && \
apt-get -y install sudo && \
apt-get -y install software-properties-common && \
apt-get -y install openssh-client && \
apt-get install -y locales
RUN locale-gen en_US.UTF-8
RUN add-apt-repository -y ppa:deadsnakes/ppa
RUN apt-get -y install python3.10 && \
apt-get -y install python3-pip
RUN apt-get clean
RUN pip install pip --upgrade
RUN pip install ansible && \
pip install ansible-pylibssh
RUN ansible-galaxy collection install cisco.aci; \
ansible-galaxy collection install cisco.cml; \
ansible-galaxy collection install cisco.dcnm; \
ansible-galaxy collection install cisco.intersight; \
ansible-galaxy collection install cisco.ios; \
ansible-galaxy collection install cisco.fmcansible; \
ansible-galaxy collection install cisco.mso; \
ansible-galaxy collection install cisco.nd; \
ansible-galaxy collection install cisco.nxos; \
ansible-galaxy collection install cisco.ucs
WORKDIR /home