Skip to content

Commit 7ac0cf9

Browse files
Create a new origin-cli image and reparent control-plane
1 parent 893f439 commit 7ac0cf9

File tree

7 files changed

+34
-30
lines changed

7 files changed

+34
-30
lines changed

hack/lib/constants.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ readonly -f os::build::clean_windows_versioninfo
310310
readonly OS_ALL_IMAGES=(
311311
origin-pod
312312
origin-base
313+
origin-cli
313314
origin-control-plane
314315
origin-node
315316
origin-deployer
@@ -343,8 +344,9 @@ function os::build::images() {
343344
# images that depend on "${tag_prefix}-source"
344345
( os::build::image "${tag_prefix}-pod" images/pod ) &
345346
( os::build::image "${tag_prefix}-template-service-broker" images/template-service-broker ) &
347+
( os::build::image "${tag_prefix}-cli" images/cli ) &
346348

347-
# images that depend on "${tag_prefix}-base"
349+
# images that depend on "${tag_prefix}-base" or "${tag_prefix}-cli"
348350
( os::build::image "${tag_prefix}-control-plane" images/origin ) &
349351
( os::build::image "${tag_prefix}-egress-router" images/egress/router ) &
350352
( os::build::image "${tag_prefix}-egress-http-proxy" images/egress/http-proxy ) &

images/cli/.cccp.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
job-id: origin-cli

images/cli/Dockerfile

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#
2+
# This is the official OpenShift CLI image. It can be used to get a CLI environment
3+
# for OpenShift.
4+
#
5+
# The standard name for this image is openshift/origin-cli
6+
#
7+
FROM openshift/origin-base
8+
9+
RUN INSTALL_PKGS="origin-clients" && \
10+
yum --enablerepo=origin-local-release install -y ${INSTALL_PKGS} && \
11+
rpm -V ${INSTALL_PKGS} && \
12+
yum clean all
13+
14+
LABEL io.k8s.display-name="OpenShift Client" \
15+
io.k8s.description="OpenShift is a platform for developing, building, and deploying containerized applications." \
16+
io.openshift.tags="openshift,cli"

images/cli/OWNERS

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
reviewers:
2+
- smarterclayton
3+
- stevekuznetsov
4+
- sdodson
5+
approvers:
6+
- smarterclayton
7+
- kargakis
8+
- stevekuznetsov

images/cli/bin/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!.gitignore

images/origin/Dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
#
2-
# This is the official OpenShift Origin image. It has as its entrypoint the OpenShift
2+
# This is the official OpenShift image. It has as its entrypoint the OpenShift
33
# all-in-one binary.
44
#
55
# The standard name for this image is openshift/origin-control-plane
66
#
7-
FROM openshift/origin-base
7+
FROM openshift/origin-cli
88

99
RUN INSTALL_PKGS="origin" && \
1010
yum --enablerepo=origin-local-release install -y ${INSTALL_PKGS} && \
1111
rpm -V ${INSTALL_PKGS} && \
1212
yum clean all && \
1313
setcap 'cap_net_bind_service=ep' /usr/bin/openshift
1414

15-
LABEL io.k8s.display-name="OpenShift Origin Application Platform" \
16-
io.k8s.description="OpenShift Origin is a platform for developing, building, and deploying containerized applications." \
15+
LABEL io.k8s.display-name="OpenShift Application Platform" \
16+
io.k8s.description="OpenShift is a platform for developing, building, and deploying containerized applications." \
1717
io.openshift.tags="openshift,core"
1818

1919
ENV HOME=/root \

images/origin/Dockerfile.centos7

-25
This file was deleted.

0 commit comments

Comments
 (0)