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

Download and build podman-compose using docker/podman locally #1043

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

iruzo
Copy link

@iruzo iruzo commented Sep 21, 2024

Reason for this PR

As a user of Fedora Silverblue I found that the easiest ways to install podman-compose are:

  • Open a toolbox/distrobox container, install there the python dependencies, use pyinstaller, generate a podman-compose binary and move it outside of the container to use it.
  • Create a virtual env, install dependencies and use pyinstaller to compile it.
  • Install Podman Desktop and let it install and manage podman-compose.
  • [Not actually podman-compose] Manually set podman.socket and downloading docker-compose.

I just wanted to execute a single command and obtain a binary I can save on my home directory without modifying anything outside my $HOME.

Changes

  • Adds Dockerfile that compiles podman-compose and let the binary on /result.
  • Adds a script to generate the binary and drop it on the current directory.
  • Adds script to simplify this process so people can just "download" the binary by executing a single shell command.

Usage

sh -c "$(curl -sSL https://github.com/raw/containers/podman-compose/main/scripts/download_podman-compose.sh)"

Using this approach, everything happens within the build steps of the Dockerfile, so no dependencies or temporary files should be left on your system.

Thanks in advance. Any suggestions are welcome.

@p12tic
Copy link
Collaborator

p12tic commented Sep 26, 2024

Thanks for the PR. It will take some time to review it. Ideally I would like to have this as part of release process so that the executables are added to release artifacts.

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

Successfully merging this pull request may close these issues.

2 participants