File tree 1 file changed +5
-2
lines changed
containers/controller/config/devicemgr
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ ARG CONTRAIL_REGISTRY
2
2
ARG CONTRAIL_CONTAINER_TAG
3
3
FROM ${CONTRAIL_REGISTRY}/contrail-controller-config-base:${CONTRAIL_CONTAINER_TAG}
4
4
5
+ ARG SITE_MIRROR
5
6
ARG CONTAINER_NAME
6
7
ENV SERVICE_NAME=device-manager \
7
8
CONTAINER_NAME=$CONTAINER_NAME
@@ -12,6 +13,7 @@ LABEL name=$CONTAINER_NAME \
12
13
$VENDOR_DOMAIN".container.name" =$CONTAINER_NAME
13
14
14
15
# git rpm cannot be remove as it removes contrail-utils, and common by deps
16
+ # use direct download to be able to download from cache instead of `ansible-galaxy install Juniper.junos,2.4.2`
15
17
RUN pip install --no-compile \
16
18
"markdown==3.1.1" \
17
19
"markupSafe==1.1.1" \
@@ -32,9 +34,10 @@ RUN pip install --no-compile \
32
34
"selectors2==2.0.1" \
33
35
"timeout-decorator==0.4.1" && \
34
36
yum install -y git iputils && \
35
- ansible-galaxy install Juniper.junos,2.4.2 && \
36
37
yum clean all -y && \
37
- rm -rf /var/cache/yum
38
+ rm -rf /var/cache/yum && \
39
+ wget -nv --tries=3 -c -O Juniper.junos ${SITE_MIRROR:-"https://github.com" }/Juniper/ansible-junos-stdlib/archive/2.4.2.tar.gz && \
40
+ ansible-galaxy install Juniper.junos
38
41
39
42
COPY *.sh /
40
43
You can’t perform that action at this time.
0 commit comments