Skip to content

Workaround for podman s2i builds #64

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

Merged
merged 1 commit into from
Nov 11, 2020
Merged

Workaround for podman s2i builds #64

merged 1 commit into from
Nov 11, 2020

Conversation

tumido
Copy link
Member

@tumido tumido commented Nov 4, 2020

Fixes #63

Apply podman workarounds if it's selected as the CONTAINER_BUILDER or if it emulates docker.

S2I is unable to fix this for over year and half... openshift/source-to-image#966 They have a workaround available though, a ---as-dockerfile option. This makes s2i create a Dockerfile instead of building the image directly. This Dockerfile can be later used to build the target via podman/buildah.

@cfchase please verify it still builds with docker
@goern can you please try out against the fedora's podman if this builds using the podman workarounds

@sesheta sesheta requested review from hemajv and oindrillac November 4, 2020 11:10
@sesheta sesheta added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Nov 4, 2020
@cfchase
Copy link
Collaborator

cfchase commented Nov 5, 2020

@tumido worked on my machine with Docker.

Copy link
Member

@durandom durandom left a comment

Choose a reason for hiding this comment

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

approved

@4n4nd can you test if make build uses podman on your laptop and still works?

@sesheta
Copy link
Member

sesheta commented Nov 11, 2020

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: durandom

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

@sesheta sesheta added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 11, 2020
@sesheta sesheta merged commit 7aecb39 into operate-first:master Nov 11, 2020
@4n4nd
Copy link
Contributor

4n4nd commented Nov 11, 2020

the image build works using podman 👍
Deployed the newly built image and tested ✔️

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. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

make build fails and complains about docker
5 participants