Skip to content

Commit

Permalink
Rename base origin images and remove unused content
Browse files Browse the repository at this point in the history
We drop openvswitch, rename node to origin-node, and remove system
container support for anything except node.
  • Loading branch information
smarterclayton committed Apr 7, 2018
1 parent dc7d90d commit 1193bf7
Show file tree
Hide file tree
Showing 39 changed files with 42 additions and 874 deletions.
2 changes: 1 addition & 1 deletion examples/atomic-registry/allinone/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM openshift/origin
FROM openshift/origin-control-plane
MAINTAINER Aaron Weitekamp <[email protected]>

ADD install.sh run.sh uninstall.sh /container/bin/
Expand Down
2 changes: 1 addition & 1 deletion examples/atomic-registry/systemd/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#FROM registry.access.redhat.com/openshift3/ose
FROM openshift/origin
FROM openshift/origin-control-plane

LABEL name="projectatomic/atomic-registry-install" \
vendor="Project Atomic" \
Expand Down
2 changes: 1 addition & 1 deletion examples/gitserver/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# The standard name for this image is openshift/origin-gitserver
#
FROM openshift/origin
FROM openshift/origin-control-plane

COPY bin/gitserver /usr/bin/gitserver
COPY hooks/ /var/lib/git-hooks/
Expand Down
7 changes: 0 additions & 7 deletions hack/build-local-images.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,6 @@
},
"files": {}
},
"openvswitch": {
"directory": "openvswitch",
"binaries": {
"openshift": "/usr/bin/openshift"
},
"files": {}
},
"template-service-broker": {
"directory": "template-service-broker",
"binaries": {
Expand Down
22 changes: 6 additions & 16 deletions hack/lib/constants.sh
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,10 @@ readonly -f os::build::clean_windows_versioninfo

# OS_ALL_IMAGES is the list of images built by os::build::images.
readonly OS_ALL_IMAGES=(
origin
origin-base
origin-pod
origin-base
origin-control-plane
origin-node
origin-deployer
origin-docker-builder
origin-keepalived-ipfailover
Expand All @@ -320,9 +321,6 @@ readonly OS_ALL_IMAGES=(
origin-egress-dns-proxy
origin-recycler
origin-template-service-broker
hello-openshift
openvswitch
node
)

# os::build::images builds all images in this repo.
Expand All @@ -349,30 +347,22 @@ function os::build::images() {
( os::build::image "${tag_prefix}-template-service-broker" images/template-service-broker ) &

# images that depend on "${tag_prefix}-base"
( os::build::image "${tag_prefix}" images/origin ) &
( os::build::image "${tag_prefix}-control-plane" images/origin ) &
( os::build::image "${tag_prefix}-egress-router" images/egress/router ) &
( os::build::image "${tag_prefix}-egress-http-proxy" images/egress/http-proxy ) &
( os::build::image "${tag_prefix}-egress-dns-proxy" images/egress/dns-proxy ) &

for i in `jobs -p`; do wait $i; done

# images that depend on "${tag_prefix}
# images that depend on "${tag_prefix}-control-plane
( os::build::image "${tag_prefix}-haproxy-router" images/router/haproxy ) &
( os::build::image "${tag_prefix}-keepalived-ipfailover" images/ipfailover/keepalived ) &
( os::build::image "${tag_prefix}-deployer" images/deployer ) &
( os::build::image "${tag_prefix}-recycler" images/recycler ) &
( os::build::image "${tag_prefix}-docker-builder" images/builder/docker/docker-builder ) &
( os::build::image "${tag_prefix}-sti-builder" images/builder/docker/sti-builder ) &
( os::build::image "${tag_prefix}-f5-router" images/router/f5 ) &
( os::build::image "openshift/node" images/node ) &

for i in `jobs -p`; do wait $i; done

# images that depend on "openshift/node"
( os::build::image "openshift/openvswitch" images/openvswitch ) &

# extra images (not part of infrastructure)
( os::build::image "openshift/hello-openshift" examples/hello-openshift ) &
( os::build::image "${tag_prefix}-node" images/node ) &

for i in `jobs -p`; do wait $i; done
}
Expand Down
14 changes: 14 additions & 0 deletions hack/push-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ if [[ "${OS_PUSH_BASE_REGISTRY-}" != "" || "${tag}" != "" ]]; then
docker tag "openshift/${image}:${source_tag}" "${OS_PUSH_BASE_REGISTRY-}${OS_PUSH_BASE_REPO}${image}${tag}"
done
done
# TODO: remove in 3.11
for tag in "${tags[@]}"; do
docker tag "openshift/origin-control-plane:${source_tag}" "${OS_PUSH_BASE_REGISTRY-}${OS_PUSH_BASE_REPO}origin${tag}"
docker tag "openshift/origin-node:${source_tag}" "${OS_PUSH_BASE_REGISTRY-}${OS_PUSH_BASE_REPO}node${tag}"
done
fi

for image in "${images[@]}"; do
Expand All @@ -78,5 +83,14 @@ for image in "${images[@]}"; do
docker push ${PUSH_OPTS} "${OS_PUSH_BASE_REGISTRY-}${OS_PUSH_BASE_REPO}${image}${tag}"
done
done
# TODO: remove in 3.11
for tag in "${tags[@]}"; do
os::log::info "Pushing ${OS_PUSH_BASE_REGISTRY-}${OS_PUSH_BASE_REPO}origin${tag}..."
docker push ${PUSH_OPTS} "${OS_PUSH_BASE_REGISTRY-}${OS_PUSH_BASE_REPO}origin${tag}"
done
for tag in "${tags[@]}"; do
os::log::info "Pushing ${OS_PUSH_BASE_REGISTRY-}${OS_PUSH_BASE_REPO}node${tag}..."
docker push ${PUSH_OPTS} "${OS_PUSH_BASE_REGISTRY-}${OS_PUSH_BASE_REPO}node${tag}"
done

ret=$?; ENDTIME=$(date +%s); echo "$0 took $(($ENDTIME - $STARTTIME)) seconds"; exit "$ret"
2 changes: 1 addition & 1 deletion images/builder/docker/docker-builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# The standard name for this image is openshift/origin-docker-builder
#
FROM openshift/origin
FROM openshift/origin-control-plane

LABEL io.k8s.display-name="OpenShift Origin Docker Builder" \
io.k8s.description="This is a component of OpenShift Origin and is responsible for executing Docker image builds." \
Expand Down
2 changes: 1 addition & 1 deletion images/builder/docker/sti-builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# The standard name for this image is openshift/origin-sti-builder
#
FROM openshift/origin
FROM openshift/origin-control-plane

LABEL io.k8s.display-name="OpenShift Origin S2I Builder" \
io.k8s.description="This is a component of OpenShift Origin and is responsible for executing source-to-image (s2i) image builds." \
Expand Down
2 changes: 1 addition & 1 deletion images/deployer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# The standard name for this image is openshift/origin-deployer
#
FROM openshift/origin
FROM openshift/origin-control-plane

LABEL io.k8s.display-name="OpenShift Origin Deployer" \
io.k8s.description="This is a component of OpenShift Origin and executes the user deployment process to roll out new containers. It may be used as a base image for building your own custom deployer image." \
Expand Down
2 changes: 1 addition & 1 deletion images/ipfailover/keepalived/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# ImageName: openshift/origin-keepalived-ipfailover
#
FROM openshift/origin
FROM openshift/origin-control-plane

RUN INSTALL_PKGS="kmod keepalived iproute psmisc nmap-ncat net-tools" && \
yum install -y $INSTALL_PKGS && \
Expand Down
16 changes: 5 additions & 11 deletions images/node/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,36 +1,30 @@
#
# This is an OpenShift Origin node image with integrated OpenvSwitch SDN
# If you do not require OVS SDN use the openshift/origin image instead.
# This is an OpenShift Origin node image with integrated OpenvSwitch SDN.
#
# This image expects to have a volume mounted at /etc/origin/node that contains
# a KUBECONFIG file giving the node permission to talk to the master and a
# node configuration file.
#
# The standard name for this image is openshift/node
# The standard name for this image is openshift/origin-node
#
FROM openshift/origin
FROM openshift/origin-control-plane

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

RUN INSTALL_PKGS="origin-sdn-ovs libmnl libnetfilter_conntrack conntrack-tools openvswitch \
RUN INSTALL_PKGS="origin-sdn-ovs libmnl libnetfilter_conntrack conntrack-tools \
libnfnetlink iptables iproute bridge-utils procps-ng ethtool socat openssl \
binutils xz kmod-libs kmod sysvinit-tools device-mapper-libs dbus \
iscsi-initiator-utils bind-utils" && \
yum --enablerepo=origin-local-release install -y $INSTALL_PKGS && \
rpm -V $INSTALL_PKGS && \
yum clean all && \
mkdir -p /usr/lib/systemd/system/origin-node.service.d /usr/lib/systemd/system/docker.service.d

# Copy the cni plugins to the host file system when they are present, so that they can be shared with cri-o
RUN if test -e /opt/cni/bin; then mkdir -p /exports/hostfs/opt/cni/bin/ && cp -r /opt/cni/bin/* /exports/hostfs/opt/cni/bin/; fi
yum clean all

LABEL io.k8s.display-name="OpenShift Origin Node" \
io.k8s.description="This is a component of OpenShift Origin and contains the software for individual nodes when using SDN." \
io.openshift.tags="openshift,node"

VOLUME /etc/origin/node
ENV KUBECONFIG=/etc/origin/node/node.kubeconfig

ENTRYPOINT [ "/usr/local/bin/origin-node-run.sh" ]
18 changes: 4 additions & 14 deletions images/node/Dockerfile.centos7
Original file line number Diff line number Diff line change
@@ -1,36 +1,26 @@
#
# This is an OpenShift Origin node image with integrated OpenvSwitch SDN
# If you do not require OVS SDN use the openshift/origin image instead.
#
# This image expects to have a volume mounted at /etc/origin/node that contains
# a KUBECONFIG file giving the node permission to talk to the master and a
# node configuration file.
# The standard name for this image is openshift/origin-node
#
# The standard name for this image is openshift/node
#
FROM openshift/origin
FROM openshift/origin-control-plane

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

RUN INSTALL_PKGS="origin-sdn-ovs libmnl libnetfilter_conntrack conntrack-tools openvswitch \
RUN INSTALL_PKGS="origin-sdn-ovs libmnl libnetfilter_conntrack conntrack-tools \
libnfnetlink iptables iproute bridge-utils procps-ng ethtool socat openssl \
binutils xz kmod-libs kmod sysvinit-tools device-mapper-libs dbus \
iscsi-initiator-utils bind-utils" && \
yum --enablerepo=origin-local-release install -y $INSTALL_PKGS && \
rpm -V $INSTALL_PKGS && \
yum clean all && \
mkdir -p /usr/lib/systemd/system/origin-node.service.d /usr/lib/systemd/system/docker.service.d

# Copy the cni plugins to the host file system when they are present, so that they can be shared with cri-o
RUN if test -e /opt/cni/bin; then mkdir -p /exports/hostfs/opt/cni/bin/ && cp -r /opt/cni/bin/* /exports/hostfs/opt/cni/bin/; fi
yum clean all

LABEL io.k8s.display-name="OpenShift Origin Node" \
io.k8s.description="This is a component of OpenShift Origin and contains the software for individual nodes when using SDN." \
io.openshift.tags="openshift,node"

VOLUME /etc/origin/node
ENV KUBECONFIG=/etc/origin/node/node.kubeconfig

ENTRYPOINT [ "/usr/local/bin/origin-node-run.sh" ]
15 changes: 0 additions & 15 deletions images/observe/Dockerfile

This file was deleted.

4 changes: 0 additions & 4 deletions images/observe/OWNERS

This file was deleted.

1 change: 0 additions & 1 deletion images/openvswitch/.cccp.yml

This file was deleted.

25 changes: 0 additions & 25 deletions images/openvswitch/Dockerfile

This file was deleted.

9 changes: 0 additions & 9 deletions images/openvswitch/OWNERS

This file was deleted.

15 changes: 0 additions & 15 deletions images/openvswitch/scripts/ovs-run.sh

This file was deleted.

Loading

0 comments on commit 1193bf7

Please sign in to comment.