forked from fortinet-solutions-cse/40ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
13 lines (13 loc) · 756 Bytes
/
Dockerfile
File metadata and controls
13 lines (13 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
#Docker to develop/try Ansible module for Fortigate
#Start with ubuntu
FROM ubuntu:16.04
MAINTAINER Nicolas Thomas <thomnico@gmail.com>
#Update the Ubuntu software repository inside the dockerfile with the 'RUN' command.
# Update Ubuntu Software repository
RUN apt update && apt -y upgrade && apt -y install git python-pip software-properties-common zile byobu ansible
# python-setuptools libxml2-dev libxslt-dev zlib1g-dev
# install ansible > 2.1 to get the debugguer
#RUN apt-add-repository -y ppa:ansible/ansible && apt update && apt -y upgrade && apt -y install ansible
#RUN pip install --upgrade pip && pip install -i https://testpypi.python.org/pypi fortiosapi
RUN pip install --upgrade pip==9.0.3 && pip install fortiosapi
CMD ["/usr/bin/bash"]