Skip to content
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

Vendor in latest Buildah #2931

Merged
merged 1 commit into from
Apr 17, 2019
Merged

Vendor in latest Buildah #2931

merged 1 commit into from
Apr 17, 2019

Conversation

TomSweeneyRedHat
Copy link
Member

Signed-off-by: TomSweeneyRedHat [email protected]

Title says it all.

@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: TomSweeneyRedHat

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

The pull request process is described here

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 approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Apr 14, 2019
@mheon
Copy link
Member

mheon commented Apr 14, 2019

Changes LGTM.

While parsing through the diff, I noticed y'all are using libnetwork's resolvconf package in Buildah. We ended up copying it into Libpod because trying to vendor it was bringing in somewhere around 50k lines of code; if you've managed to import it for Buildah without doing that, we should delete our local copy and swap to the vendored one once this merges.

@@ -112,3 +112,4 @@ gopkg.in/tomb.v1 v1
github.com/spf13/cobra v0.0.3
github.com/inconshreveable/mousetrap v1.0.0
gopkg.in/fsnotify.v1 v1.4.7
github.com/ishidawataru/sctp 07191f837fedd2f13d1ec7b5f885f0f3ec54b1cb
Copy link
Member Author

@TomSweeneyRedHat TomSweeneyRedHat Apr 14, 2019

Choose a reason for hiding this comment

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

I'd to add this line and bump libnetwork due to the changes @QiWang19 made for containers/buildah#1491

Maybe I'm not remembering right, but thought the Buildah vendor would pull that in automagically. Any who when I tried building libpod it failed until I added them.

@rhatdan
Copy link
Member

rhatdan commented Apr 15, 2019

Let's go back and copy it into buildah and then revendor it into libpod, removing that vendor.

@mheon
Copy link
Member

mheon commented Apr 15, 2019 via email

@TomSweeneyRedHat
Copy link
Member Author

bot, retest this please

Signed-off-by: TomSweeneyRedHat <[email protected]>
@TomSweeneyRedHat
Copy link
Member Author

Had to change a few tests due to the way layers now works.
Prior:

# podman build -t foobar.com/before:latest --layers=false -f ~/Dockerfile .
STEP 1: FROM docker.io/library/alpine:latest
Getting image source signatures
Copying blob bdf0201b3a05 done
Copying config cdf98d1859 done
Writing manifest to image destination
Storing signatures
STEP 2: COMMIT containers-storage:[overlay@/var/lib/containers/storage+/var/run/containers/storage:overlay.mountopt=nodev]foobar.com/before:latest
Getting image source signatures
Copying blob a464c54f93a9 skipped: already exists
Copying blob 1dbcab28ce46 done
Copying config 559fd5095f done
Writing manifest to image destination
Storing signatures
--> 559fd5095ff8fe0d03e4dd4789623681e67e0513f2abd525bd08432dd634f6c6
STEP 3: COMMIT foobar.com/before:latest@sha256:7999747fab75d4e9ab42be4cff7d5ea666b58863b53fefedcf471625b54f1a7e

# podman images
REPOSITORY                 TAG      IMAGE ID       CREATED         SIZE
foobar.com/before          latest   559fd5095ff8   4 seconds ago   5.8 MB
docker.io/library/alpine   latest   cdf98d1859c1   6 days ago      5.8 MB

New:

# podman build -t foobar.com/before:latest --layers=false -f ~/Dockerfile .
STEP 1: FROM docker.io/library/alpine:latest
Getting image source signatures
Copying blob bdf0201b3a05 done
Copying config cdf98d1859 done
Writing manifest to image destination
Storing signatures
STEP 2: COMMIT foobar.com/before:latest
--> cdf98d1859c1beb33ec70507249d34bacf888d59c24df3204057f9a6c758dddb

# podman images
REPOSITORY                 TAG      IMAGE ID       CREATED      SIZE
docker.io/library/alpine   latest   cdf98d1859c1   6 days ago   5.8 MB
foobar.com/before          latest   cdf98d1859c1   6 days ago   5.8 MB

Note the image ids are now the same.

@nalind, please verify this is expected, I believe it is.

@nalind
Copy link
Member

nalind commented Apr 16, 2019

@TomSweeneyRedHat yes, when there are no instructions we don't create a new layer. This is going to require some changes to code that assumes that every image has more layers than an image that it's based on, which has not always been the case for images built using docker build.

@TomSweeneyRedHat
Copy link
Member Author

Happy Green Test buttons

@rhatdan
Copy link
Member

rhatdan commented Apr 17, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 17, 2019
@openshift-merge-robot openshift-merge-robot merged commit d0c5e21 into containers:master Apr 17, 2019
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 26, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants