-
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 Dockerfiles.centos7 and job-id files for CentOS image building #9864
Add Dockerfiles.centos7 and job-id files for CentOS image building #9864
Conversation
Is there anyway that we can merge .centos7 and .rhel7 files in some way to keep from having 3 Dockerfiles for each image? Or at least we should make sure that the two differ as little as possible other than the top level base image. |
@sdodson the .rhel7 and .centos7 have different image names. If anything, we might be able to whittle this down to only have Dockerfile.centos7 images when it varies from the main Dockerfile. @mohammedzee1000 could the CentOS image build system check to see if there is a Dockerfile.centos7 file and use that, otherwise use the plain Dockerfile? |
LGTM. @smarterclayton, are you OK with these new |
Yes, ok with them but I want to make sure someone is on the hook to test them and keep them current |
That would be me and/or @mohammedzee1000. |
@tdawson For builds that dont need a custom / changed Dockerfile, just skip adding in the .centos7 ones, and we can directly reference the Dockerfile there. |
@kbsingh That sounds like a plan, that will save alot of space and work. I'll update this pull request with the duplicate Dockerfiles removed. |
a9889d1
to
5c53722
Compare
That looks better. |
Does anyone mind giving this a merge? |
|
||
COPY scripts/* /usr/local/bin/ | ||
|
||
RUN INSTALL_PKGS="origin-sdn-ovs libmnl libnetfilter_conntrack openvswitch \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How big is origin-SDN-OVS? If nothing else changes I would just put this in Openshift/origin and that's one less image
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
origin-sdn-ovs itself is a few KiB, but it pulls in openvswitch and all of its dependencies. openshift3/node is 689.1MB, openshift/ose is 483.1MB.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
d1c9bcf
to
943e562
Compare
Changed the released Dockerfile to ensure that bsdtar is installed. |
@@ -15,7 +15,7 @@ ENV VERSION=1.6 \ | |||
ENV PATH=$PATH:$GOROOT/bin:$GOPATH/bin | |||
|
|||
RUN mkdir $TMPDIR && \ | |||
INSTALL_PKGS="make gcc zip mercurial krb5-devel" && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes to the release dockerfile need to be replicated to all the specific sub versions.
8db071b
to
80b8bc8
Compare
All release/Dockerfile and release/*/Dockerfile ensure that bsdtar is installed. |
[test] |
@tdawson Hey, yes there is an entry in the index called target-file, where you can specify a filename, and if that is not specified, it falls back to using Dockerfile. |
[test] |
Those failures look like some type of networking issue ... testing again. |
[test] |
Looking at other jobs, it looks like all tests (not just this pull request) are failing today on test_pull_requests_origin_integration and test_pull_requests_origin_conformance |
Yes, AWS is blowed up. On Tue, Jul 19, 2016 at 3:43 PM, Troy Dawson [email protected]
|
[test] |
1 similar comment
[test] |
I really cannot tell if the test failures are because of this pull request or not. It keeps failling in the same section, but it seems to have a different failure each time. |
It's not broken, but this is behind another flake reducing PR we're trying On Jul 21, 2016, at 5:36 PM, Troy Dawson [email protected] wrote: I really cannot tell if the test failures are because of this pull request — |
Ok, the other PR merged - be aware that openvswitch changed its from image. On Thu, Jul 21, 2016 at 9:07 PM, Clayton Coleman [email protected]
|
Add CentOS job-id files Add Dockerfile.centos7 files Remove Dockerfile.centos7 files when they are the same as Dockerfile Put relavent centos changes into plain Dockerfiles Ensure bsdtar is installed We no longer need centosplus enabled Remove Dockerfile.centos7 for openvswitch
80b8bc8
to
987b601
Compare
Awesome, looks like one less Dockerfile.centos7 file needed. |
[test] |
Evaluated for origin test up to 987b601 |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/6927/) |
I think we've taken care of all the problems, and the tests have finally passed. Can we get a merge while the tests are still working? |
[merge] |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/6989/) (Image: devenv-rhel7_4685) |
Evaluated for origin merge up to 987b601 |
These files should not interfere with any non-CentOS work.
They make it possible to build OpenShift Origin images in CentOS's enviroment.