Skip to content

Conversation

@umohnani8
Copy link

Signed-off-by: Urvashi Mohnani umohnani@redhat.com

What type of PR is this?

What this PR does / why we need it:

Build the pause binary provided by the upstream
k8s/k8s repo and use that as the infra image in
OpenShift.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


@openshift-ci-robot openshift-ci-robot added backports/unvalidated-commits Indicates that not all commits come to merged upstream PRs. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Mar 22, 2021
@openshift-ci-robot
Copy link

@umohnani8: the contents of this pull request could not be automatically validated.

The following commits could not be validated and must be approved by a top-level approver:

@umohnani8
Copy link
Author

umohnani8 commented Mar 22, 2021

We want to build the pause.c binary used by the upstream pause image and use that as the pod/infra image in OpenShift. This PR adds a Dockerfile that builds the pause binary and creates an image from scratch with the pause binary as the entrypoint, similar to what the Makefile does. This helps bring the pod image size down from ~250MB to ~1MB.

Currently the Dockerfile for the pod image being shipped is at https://github.com/openshift/images/blob/master/pod/Dockerfile and the reference to build that Dockerfile for the pod image is at https://github.com/openshift/ocp-build-data/blob/openshift-4.8/images/openshift-enterprise-pod.yml.

Should the new Dockerfile live here? Or should we copy the contents of build/pause over to openshift/images (that would mean if there are any changes to the build/pause/ directory in upstream k/k we will have to update that in 2 places). Trying to figure out what the best practice would be here.

This also doesn't currently handle multiple architectures and I am not seeing how we do it for the current pod image that we ship. Would appreciate any pointers to how we can handle this for the various architectures we support.

cc @mrunalp @smarterclayton @sjenning

@smarterclayton
Copy link

It's ok to publish this here, then we need to update ART to pull from this repo instead of openshift/images and at the same time stop openshift/images from publishing this. It's ok to have both publishing briefly (days) since the images are expected to be compatible.

@smarterclayton
Copy link

/retest

@openshift-ci-robot
Copy link

@umohnani8: the contents of this pull request could not be automatically validated.

The following commits could not be validated and must be approved by a top-level approver:

@umohnani8 umohnani8 changed the title [WIP] Add Dockerfile to build pause image UPSTREAM: <carry>: Add Dockerfile to build pause image Mar 29, 2021
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 29, 2021
@umohnani8
Copy link
Author

@smarterclayton how do we handle multi-arch for the pod image we currently ship? Do I need to do anything in this Dockerfile to account for that?

@umohnani8
Copy link
Author

/retest

@umohnani8
Copy link
Author

@smarterclayton @sjenning @mrunalp PTAL.

This should be ready if nothing more is needed for multi-arch.

@smarterclayton
Copy link

/approve

Once the symlink is in

Build the pause binary provided by the upstream
k8s/k8s repo and use that as the infra image in
OpenShift.

Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
@openshift-ci-robot
Copy link

@umohnani8: the contents of this pull request could not be automatically validated.

The following commits could not be validated and must be approved by a top-level approver:

@umohnani8
Copy link
Author

/retest

@umohnani8
Copy link
Author

/assign @soltysh

@umohnani8
Copy link
Author

/retest

Copy link

@soltysh soltysh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve
/hold
until we land #641

@openshift-ci-robot openshift-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. lgtm Indicates that a PR is ready to be merged. labels Apr 6, 2021
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: smarterclayton, soltysh, umohnani8

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 6, 2021
@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

20 similar comments
@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@umohnani8
Copy link
Author

@soltysh @mrunalp do I need to create a bz for this or can that requirement be overridden as this was approved before the freeze?

@openshift-ci
Copy link

openshift-ci bot commented Apr 12, 2021

@umohnani8: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/e2e-aws-downgrade 915c13ee5b1c2ccf0f77183d2f2b3a2254d26a66 link /test e2e-aws-downgrade

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@umohnani8
Copy link
Author

/retest

@mrunalp mrunalp added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Apr 12, 2021
@openshift-merge-robot openshift-merge-robot merged commit e22a836 into openshift:master Apr 12, 2021
joepvd added a commit to joepvd/ocp-build-data that referenced this pull request Apr 20, 2021
Since openshift/kubernetes#633 and
openshift-eng#873, builds for
`openshift-enterprise-pod` started to fail because `glibc-static` could
not get installed. This commit adds the rhel-8 repository for the
glibc-static rpm.
sosiouxme pushed a commit to sosiouxme/ocp-build-data that referenced this pull request May 5, 2021
Since openshift/kubernetes#633 and
openshift-eng#873, builds for
`openshift-enterprise-pod` started to fail because `glibc-static` could
not get installed. This commit adds the rhel-8 repository for the
glibc-static rpm.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants