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

Change container builder from Docker to Buildah/Podman #606

Open
peterlobster opened this issue Jan 17, 2022 · 5 comments
Open

Change container builder from Docker to Buildah/Podman #606

peterlobster opened this issue Jan 17, 2022 · 5 comments

Comments

@peterlobster
Copy link

Details

There has been a recent trend moving away from Docker's original tooling, in favor of tooling with better OCI support. My suggestion is to update the tooling for building this container to something that could be either compatible with both Docker and OCI tooling (like Podman) or to add an option to use something like Buildah to build an OCI compatible container image.

Currently, the container is being built with Docker and fails to build with Podman (when using Podman-Docker aliasing).

@samip5
Copy link
Collaborator

samip5 commented Jan 17, 2022

Could you please share the errors you encounter when trying to build with Podman?

@peterlobster
Copy link
Author

$ alias docker=podman && make build BASE_IMAGE=registry.hub.docker.com/library/debian:stable NAME=phusion/debian-baseimage-docker
podman build --no-cache -t phusion/debian-baseimage-docker:focal-1.0.0-pre --build-arg BASE_IMAGE=registry.hub.docker.com/library/debian:stable --build-arg QEMU_ARCH=amd64 --platform 
Error: flag needs an argument: --platform
make: *** [Makefile:26: build] Error 125

@github-actions
Copy link

github-actions bot commented Feb 3, 2022

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

@github-actions github-actions bot added the Stale label Feb 3, 2022
@github-actions
Copy link

github-actions bot commented Feb 8, 2022

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

@github-actions github-actions bot closed this as completed Feb 8, 2022
@samip5 samip5 reopened this Feb 9, 2022
@samip5 samip5 added on-hold and removed Stale labels Feb 9, 2022
@samip5
Copy link
Collaborator

samip5 commented May 31, 2022

$ alias docker=podman && make build BASE_IMAGE=registry.hub.docker.com/library/debian:stable NAME=phusion/debian-baseimage-docker
podman build --no-cache -t phusion/debian-baseimage-docker:focal-1.0.0-pre --build-arg BASE_IMAGE=registry.hub.docker.com/library/debian:stable --build-arg QEMU_ARCH=amd64 --platform 
Error: flag needs an argument: --platform
make: *** [Makefile:26: build] Error 125

You seem to be missing an argument, and thus it fails but unfortunately it's been a while since I have tried to build it via make, and should probably update it. It however should currently work when you pass in --platform amd64 for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants