https://github.com/simnalamburt/homebrew-x/blob/main/Formula/podman-apple-silicon.rb Skip to content Sign up * Why GitHub? Features - + Mobile - + Actions - + Codespaces - + Packages - + Security - + Code review - + Issues - + Integrations - + GitHub Sponsors - + Customer stories- * Team * Enterprise * Explore + Explore GitHub - Learn and contribute + Topics - + Collections - + Trending - + Learning Lab - + Open source guides - Connect with others + The ReadME Project - + Events - + Community forum - + GitHub Education - + GitHub Stars program - * Marketplace * Pricing Plans - + Compare plans - + Contact Sales - + Education - [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} simnalamburt / homebrew-x * Notifications * Star 60 * Fork 3 * Code * Issues 0 * Pull requests 1 * Actions * Security * Insights More * Code * Issues * Pull requests * Actions * Security * Insights Permalink main Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags homebrew-x/Formula/podman-apple-silicon.rb / Jump to Code definitions [ ] PodmanAppleSilicon Class install Method Code navigation index up-to-date Go to file * Go to file T * Go to line L * Go to definition R * * Copy path * Copy permalink @simnalamburt simnalamburt podman-apple-silicon.rb: Update comment Latest commit ab107dd Sep 6, 2021 History 1 contributor Users who have contributed to this file 79 lines (68 sloc) 2.75 KB Raw Blame * Open with Desktop * View raw * View blame # podman patched to work with Apple Silicon. Install it like this: # # brew install simnalamburt/x/podman-apple-silicon # # You can run the linux VM for the podman container like this: # # podman machine init # Create a VM # podman machine start # Start a VM # podman run -p 8080:80 docker.io/nginx # Run a container # # It's based on my fork of development version of podman, and # Alex Graf's Hypervisor.framework patch applied to the QEMU v6.1.0. # See following links for the source codes of forks # # - https://github.com/simnalamburt/podman # - https://github.com/simnalamburt/qemu/tree/hvf class PodmanAppleSilicon < Formula desc "Tool for managing OCI containers and pods" homepage "https://podman.io/" url "https://github.com/simnalamburt/podman.git", using: :git, revision: "a68a46fed65ec66aa4478b2a620a01967ce1228b" version "4.0.0-dev+20210905" license "Apache-2.0" bottle do root_url "https://github.com/simnalamburt/homebrew-x/releases/ download/podman-apple-silicon-4.0.0-dev+20210905" sha256 cellar: :any_skip_relocation, arm64_big_sur: "bf3c16fef936aeda5e0dc3c0c5aecaa2243624c8244eacc6dd91e454c136fa15" end depends_on "go" => :build depends_on "go-md2man" => :build depends_on "qemu" if Hardware::CPU.intel? depends_on "simnalamburt/x/qemu-hvf" if Hardware::CPU.arm? conflicts_with "podman", because: "podman also ships a podman binary, but without apple silicon patch" resource "gvproxy" do url "https://github.com/containers/gvisor-tap-vsock/archive/ v0.1.0.tar.gz" sha256 "e1e1bec2fc42039da1ae68d382d4560a27c04bbe2aae535837294dd6773e88e0" end def install os = if OS.mac? "darwin" else "linux" end system "make", "podman-remote-#{os}" on_macos do bin.install "bin/#{os}/podman" => "podman-remote" bin.install_symlink bin/"podman-remote" => "podman" end on_linux do bin.install "bin/podman-remote" end resource("gvproxy").stage do system "make" bin.install "bin/gvproxy" end system "make", "install-podman-remote-#{os}-docs" man1.install Dir["docs/build/remote/#{os}/*.1"] bash_completion.install "completions/bash/podman" zsh_completion.install "completions/zsh/_podman" fish_completion.install "completions/fish/podman.fish" end test do assert_match "podman-remote version #{version}", shell_output("#{bin }/podman-remote -v") assert_match(/Error: Cannot connect to the Podman socket/i, shell_output("#{bin}/podman-remote info 2>&1", 125)) if Hardware::CPU.intel? machineinit_output = shell_output("podman-remote machine init --image-path fake-testi123 fake-testvm 2>&1", 125) assert_match "Error: open fake-testi123: no such file or directory", machineinit_output end end end * Copy lines * Copy permalink * View git blame * Reference in new issue [ ] Go * (c) 2021 GitHub, Inc. * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.