forked from fortinet-solutions-cse/fortistacks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
19 lines (17 loc) · 940 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#Docker to develop/try Ansible module for Fortigate
#build cmd:
# docker build --force-rm -t fortinetsolutioncse/fortistacks-cli:1.3 .
# For "official build" need acces to the docker registry.
# docker build --force-rm -t fortistacks-cli .
FROM ubuntu:18.04
MAINTAINER Nicolas Thomas <[email protected]>
#Update the Ubuntu software repository inside the dockerfile with the 'RUN' command.
RUN apt-get update && apt-get -y upgrade
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -y install git python-pip wget zile byobu bash sudo python-virtualenv wget git cloud-image-utils \
python-openstackclient sudo python-heatclient software-properties-common apt-transport-https
RUN apt-get clean
RUN groupadd -r ubuntu && useradd -g ubuntu -G adm,sudo ubuntu -m -p fortinet -s /bin/bash && \
echo "ubuntu ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/99-nopasswd && chmod 640 /etc/sudoers.d/99-nopasswd
USER ubuntu
CMD ["/bin/bash"]