ansible-junos-stdlib/Dockerfile

30 строки
855 B
Docker
Исходник Постоянная ссылка Обычный вид История

2017-03-08 18:36:48 +03:00
FROM juniper/pyez:latest
MAINTAINER Stephen Steiner <ssteiner@juniper.net>
2016-09-20 22:35:34 +03:00
ARG ver_ansible=2.3.0.0
ARG ver_jsnapy=1.1.0
2016-09-20 22:35:34 +03:00
WORKDIR /tmp
RUN mkdir /tmp/ansible-junos-stdlib &&\
mkdir /tmp/ansible-junos-stdlib/library &&\
mkdir /tmp/ansible-junos-stdlib/meta &&\
mkdir /project
ADD library /tmp/ansible-junos-stdlib/library
ADD meta /tmp/ansible-junos-stdlib/meta
RUN tar -czf Juniper.junos ansible-junos-stdlib &&\
apk update && apk add ca-certificates &&\
apk add build-base gcc g++ make python-dev &&\
pip install junos-netconify &&\
pip install jxmlease &&\
pip install -q ansible==$ver_ansible &&\
pip install -q jsnapy==$ver_jsnapy &&\
2016-09-20 22:35:34 +03:00
ansible-galaxy install Juniper.junos &&\
apk del -r --purge gcc make g++ &&\
rm -rf /source/* &&\
rm -rf /var/cache/apk/* &&\
rm -rf /tmp/*
WORKDIR /project