Skip to content

Commit 5f2f3f4

Browse files
author
OpenShift Bot
authored
Merge pull request #14441 from sdodson/bz1455472
Merged by openshift-bot
2 parents 626c61c + 086e4cd commit 5f2f3f4

File tree

5 files changed

+8
-12
lines changed

5 files changed

+8
-12
lines changed

images/node/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#
1111
FROM openshift/origin
1212

13+
COPY scripts/* /usr/local/bin/
1314
COPY system-container/system-container-wrapper.sh /usr/local/bin/
1415
COPY system-container/manifest.json system-container/config.json.template system-container/service.template system-container/tmpfiles.template /exports/
1516

images/node/Dockerfile.centos7

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#
1111
FROM openshift/origin
1212

13+
COPY scripts/* /usr/local/bin/
1314
COPY system-container/system-container-wrapper.sh /usr/local/bin/
1415
COPY system-container/manifest.json system-container/config.json.template system-container/service.template system-container/tmpfiles.template /exports/
1516

images/node/scripts/docker

+5-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,8 @@
1515
# because most installs currently mount /usr/bin/docker from the host into that
1616
# path.
1717

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 "${@}"

images/openvswitch/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#
66
FROM openshift/node
77

8+
COPY scripts/* /usr/local/bin/
89
RUN INSTALL_PKGS="openvswitch" && \
910
yum install -y ${INSTALL_PKGS} && \
1011
rpm -V ${INSTALL_PKGS} && \

origin.spec

-11
Original file line numberDiff line numberDiff line change
@@ -322,14 +322,6 @@ install -m 0644 contrib/tuned/man/tuned-profiles-origin-node.7 %{buildroot}%{_ma
322322

323323
mkdir -p %{buildroot}%{_sharedstatedir}/origin
324324

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-
333325
# Install sdn scripts
334326
install -d -m 0755 %{buildroot}%{_sysconfdir}/cni/net.d
335327
pushd pkg/sdn/plugin/sdn-cni-plugin
@@ -491,8 +483,6 @@ fi
491483
%config(noreplace) %{_sysconfdir}/origin/node
492484
%ghost %config(noreplace) %{_sysconfdir}/origin/node/node-config.yaml
493485
%ghost %config(noreplace) %{_sysconfdir}/origin/.config_managed
494-
/usr/local/bin/docker
495-
/usr/local/bin/origin-node-run.sh
496486

497487
%post node
498488
%systemd_post %{name}-node.service
@@ -515,7 +505,6 @@ fi
515505
%{_unitdir}/%{name}-node.service.d/openshift-sdn-ovs.conf
516506
%{_sysconfdir}/cni/net.d/80-openshift-sdn.conf
517507
/opt/cni/bin/*
518-
/usr/local/bin/ovs-run.sh
519508

520509
%posttrans sdn-ovs
521510
# This path was installed by older packages but the directory wasn't owned by

0 commit comments

Comments
 (0)