-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add support for building macOS pkg installer #14540
Conversation
@anjannath Looks like the validate stage does not like the format of your bash scripts. |
I think it was a missing new line after the shebang, re-pushed lets see |
@gbraad Thoughts? |
This is the PR we propose from crc. |
Hi @rhatdan CI is green now, thanks. I also wanted to get your views about the We'd like to move that repo under the containers org and have it hooked to the CI so that we can have automated builds of Or is it preferred to not install |
Qemu is either part of the installer, or there is a a separate qemu
installer? For us CRC we are not planning to use qemu as vfkit and virtiofs
look very promising at this point.
Perhaps it is possible for the moment to include a qemu binary and over
time move to vfkit?
…On Sat, Jun 11, 2022, 19:49 Anjan Nath ***@***.***> wrote:
Hi @rhatdan <https://github.com/rhatdan> CI is green now, thanks.
I also wanted to get your views about the qemu build it uses from (
http://github.com/containers-contribs/qemu-macos-build
<https://github.com/containers-contribs/qemu-macos-build>).
We'd like to move that repo under the containers org and have it hooked to
the CI so that we can have automated builds of qemu and releases that we
can use with the pkg, since that will also need to be maintained.
Or is it preferred to not install qemu as part of this installer and
leave it to the user to setup, but probably that means the users who can't
do brew install on their machines for some reason, will not have a full
podman setup ootb after using this installer.
—
Reply to this email directly, view it on GitHub
<#14540 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAAOZVP67KQ22XW4WHBC2LVOR4K7ANCNFSM5YHYTM2A>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@anjannath I am fine with move that into containers. |
Lets make that a dependency of this pr. Who can move/accept this? We will do so tomorrow: Done |
@gbraad Also updated the PR to use the qemu build from https://github.com/containers/podman-machine-qemu/releases/tag/6.2.0-1 |
/approve |
@vrothberg @mheon @giuseppe PTAL |
I can't test without a Mac. |
@ashley-cui PTAL |
969264c
to
f5b8a93
Compare
I was able to build the installer on my m1, but am unable to run it without the "install rosetta prompt" which shouldn't be the case. Looks like the install script is using aarch64 and arm arches, so this is strange that I'm getting this error. Anyone have any ideas? |
I was able to build and run installer on may intel mac. |
looks like the |
Podman has no way to update containers.conf, but we can read multiple. Not sure if it supports dropin files yet. |
updated to set the helper binary location as suggested in #14540 (comment) tested locally and everything is working as expected |
@ashley-cui @benoitf feedback needed |
hi, I've tried with 9bcb56b commit it works but it seems it's using the here are some processes:
as we can see gvproxy is executed from
but it's there |
And I've used |
can you share your PATH value my thinking is that but even if it uses the |
|
maybe I can have an older qemu version installed by brew |
uninstall
it's using the |
@ashley-cui can you take a final look? |
I can build the package, but am still running into the rosetta prompt when running on my m1 using |
I've only mac/intel so I haven't faced this issue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found a solution to the Rosetta problem! However, even after that, podman isn't installed into my path and going to /opt/podman and running ./podman results in zsh: permission denied: ./podman
contrib/pkginstaller/Distribution.in
Outdated
<welcome file="welcome.html" mime-type="text/html" /> | ||
<conclusion file="conclusion.html" mime-type="text/html" /> | ||
<license file="LICENSE.txt"/> | ||
<options customize="never" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<options customize="never" /> | |
<options customize="always" hostArchitectures="x86_64,arm64"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only adding hostArchitectures="x86_64,arm64"
solves the rosetta problem, the customize="always"
attribute shows a component selection page with only one option to select so keeping it as customize="never"
it installs podman and supporting binaries along with qemu to have a functioning podman install using a pkg podman and podman-mac-helper is compiled from source gvproxy binary is downloaded from its github releases and qemu from github release of containers/podman-machine-qemu [NO NEW TESTS NEEDED] Signed-off-by: Anjan Nath <[email protected]>
yes it installs in /opt/podman and adds
is it missing executable permissions? maybe we need to explicitly make it executable in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried it again, it all worked!
/lgtm
/hold
@benoitf TY! |
/cherry-pick v4.2 |
@ashley-cui: new pull request created: #15193 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
it installs podman and supporting binaries along with
qemu to have a functioning podman install using a pkg
podman and podman-mac-helper is compiled from source
gvproxy binary is downloaded from its github releases
and qemu from github release of containers-contribs/qemu-macos-build
[NO NEW TESTS NEEDED]
Signed-off-by: Anjan Nath [email protected]
Does this PR introduce a user-facing change?
Needs #14324