-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add hack/build-dind-images.sh #12192
Conversation
Seems reasonable to me - this change will still result in them being built by the tests if they are not present, right? There will be a momentary disruption until we can get a new |
The images will still be built by the test runner. I'm counting on the test runner build being a no-op when the ami contains the correct built image, but if it changes it should rebuild. |
[Test]ing while waiting on the merge queue |
@marun any idea what the DNF failures are? I get them often locally too, and it seems like either or both of (a) systemctl restart docker or (b) removing the previous image eventually work. Can we get better logs out of the docker build? |
Jenkins failure is:
|
@dcbw afaict the dnf failures are mirror related and I don't know how local configuration could affect that. Where are you seeing that jenkins failure? I would expect that kind of problem to be deterministic, and I can't replicate that locally. Are you able to reproduce? |
bff6d50
to
331215d
Compare
I'm assuming the failure around /usr/local/bin not being a directory was because /usr/local/bin did not exist and the first COPY in the dind Dockerfile didn't have a trailing slash. I've fixed that, let's see if it solves the problem. |
331215d
to
adf8aaf
Compare
Updated to reflect @smarterclayton's recent changes. |
adf8aaf
to
8a38db2
Compare
@stevekuznetsov looks good! |
I'm not in favor of building these on every build. Why do we need them? |
I'd be open to building these via a different script in the base ami. |
@smarterclayton: I'm not familiar with how the ami is built so I don't know how to accomplish what you're suggesting. Is it as simple as adding another script and modifying a jenkins job to target it? |
Probably. I'd just prefer to keep anything except the truly core images out of base since that's always built. hack/build-dind-images.sh is fine for now until we sort out what our image build strategy will be (we're going to scrap most of the current dockerfiles and replace them with package installed images eventually). |
Building the dind images as part of a ci job is a frequent source of flakes caused by transient failures during package installation. This change ensures the dind images can be built via hack/build-dind-images.sh to make it easier to bake them into the ami.
8a38db2
to
365fce0
Compare
Ok, adding a new script instead of modifying |
@smarterclayton are you sure? AFAICT the |
build-base images is for the product. DIND is not part of the product.
It's only for AMI and dev.
…On Wed, Dec 14, 2016 at 9:02 AM, Steve Kuznetsov ***@***.***> wrote:
@smarterclayton <https://github.com/smarterclayton> are you sure? AFAICT
the build-base-images step is supposed to happen in AMI creation and
build-images actually *in* the jobs. Is that no longer the case? If not,
what's the point of build-base-images?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12192 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABG_p9Tx-BcvQpFXAL42tfTUBefdvgbeks5rH_bvgaJpZM4LIDRY>
.
|
flake #12072 re-[test] |
Evaluated for origin test up to 365fce0 |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/12387/) (Base Commit: e9e7618) |
Evaluated for origin merge up to 365fce0 |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/12387/) (Base Commit: 039e433) (Image: devenv-rhel7_5549) |
Building the dind images as part of a ci job is a frequent source of flakes caused by package installation failure via dnf. This change ensures the dind images are built by hack/build-base-images.sh so they can be baked into the ami.
Intended to help with #11452.
cc: @stevekuznetsov @openshift/networking