File tree 5 files changed +8
-12
lines changed
5 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 10
10
#
11
11
FROM openshift/origin
12
12
13
+ COPY scripts/* /usr/local/bin/
13
14
COPY system-container/system-container-wrapper.sh /usr/local/bin/
14
15
COPY system-container/manifest.json system-container/config.json.template system-container/service.template system-container/tmpfiles.template /exports/
15
16
Original file line number Diff line number Diff line change 10
10
#
11
11
FROM openshift/origin
12
12
13
+ COPY scripts/* /usr/local/bin/
13
14
COPY system-container/system-container-wrapper.sh /usr/local/bin/
14
15
COPY system-container/manifest.json system-container/config.json.template system-container/service.template system-container/tmpfiles.template /exports/
15
16
Original file line number Diff line number Diff line change 15
15
# because most installs currently mount /usr/bin/docker from the host into that
16
16
# path.
17
17
18
- chroot /rootfs docker " ${@ } "
18
+ if test -e /rootfs/usr/bin/docker; then
19
+ exec chroot /rootfs docker " ${@ } "
20
+ fi
21
+
22
+ exec /usr/bin/docker " ${@ } "
Original file line number Diff line number Diff line change 5
5
#
6
6
FROM openshift/node
7
7
8
+ COPY scripts/* /usr/local/bin/
8
9
RUN INSTALL_PKGS="openvswitch" && \
9
10
yum install -y ${INSTALL_PKGS} && \
10
11
rpm -V ${INSTALL_PKGS} && \
Original file line number Diff line number Diff line change @@ -322,14 +322,6 @@ install -m 0644 contrib/tuned/man/tuned-profiles-origin-node.7 %{buildroot}%{_ma
322
322
323
323
mkdir -p %{buildroot }%{_sharedstatedir }/origin
324
324
325
- install -d %{buildroot }/usr/local /bin/
326
-
327
- # Install node scripts
328
- install -p -m 0755 images/node/scripts/* %{buildroot }/usr/local /bin/
329
-
330
- # Install openvswitch scripts
331
- install -p -m 0755 images/openvswitch/scripts/ovs-run.sh %{buildroot }/usr/local /bin/
332
-
333
325
# Install sdn scripts
334
326
install -d -m 0755 %{buildroot }%{_sysconfdir }/cni/net.d
335
327
pushd pkg/sdn/plugin/sdn-cni-plugin
491
483
%config(noreplace) %{_sysconfdir }/origin/node
492
484
%ghost %config (noreplace) %{_sysconfdir }/origin/node/node-config.yaml
493
485
%ghost %config (noreplace) %{_sysconfdir }/origin/.config_managed
494
- /usr/local/bin/docker
495
- /usr/local/bin/origin-node-run.sh
496
486
497
487
%post node
498
488
%systemd_post %{name }-node.service
515
505
%{_unitdir }/%{name }-node.service.d/openshift-sdn-ovs.conf
516
506
%{_sysconfdir }/cni/net.d/80-openshift-sdn.conf
517
507
/opt/cni/bin/*
518
- /usr/local/bin/ovs-run.sh
519
508
520
509
%posttrans sdn-ovs
521
510
# This path was installed by older packages but the directory wasn't owned by
You can’t perform that action at this time.
0 commit comments