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
|
|
|
|
2017-04-21 23:24:58 +03:00
|
|
|
ARG ver_ansible=2.3.0.0
|
|
|
|
ARG ver_jsnapy=1.1.0
|
2016-12-01 04:29:04 +03:00
|
|
|
|
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 &&\
|
2016-12-01 04:29:04 +03:00
|
|
|
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
|