Skip to content

Conversation

@akonring
Copy link
Contributor

No description provided.

uses: actions/checkout@v5

- name: Install Podman
uses: gacts/install-podman@v1
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, this should be sufficient. Thanks.
Fixed.

MNT=$(podman image mount {{nitro-image}})
cp $MNT/usr/local/bin/nitro {{target}}
podman image unmount {{nitro-image}}
podman unshare bash -c '
Copy link
Contributor

Choose a reason for hiding this comment

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

Rootless podman did not work well for me locally. Can we use run0/sudo for the time being?

Copy link
Contributor

Choose a reason for hiding this comment

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

same here i see:

Error: cannot run command "podman image mount" in rootless mode, must execute `podman unshare` first

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, thanks for testing this.
I’ve updated it so the CI environment variable controls which Podman approach is used.
This should work both locally with run0 (systemd ≥ 256) and in the AMI workflow runner.

Comment on lines +32 to +36
run0 bash -c '
MNT=$(podman image mount {{nitro-image}})
cp "$MNT/usr/local/bin/nitro" {{target}}
podman image unmount {{nitro-image}}
'
Copy link
Contributor

@twittner twittner Jan 5, 2026

Choose a reason for hiding this comment

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

Suggested change
run0 bash -c '
MNT=$(podman image mount {{nitro-image}})
cp "$MNT/usr/local/bin/nitro" {{target}}
podman image unmount {{nitro-image}}
'
run0 bash -c '
podman pull ghcr.io/espressosystems/nitro-espresso-integration/{{nitro-image}}
MNT=$(podman image mount {{nitro-image}})
cp "$MNT/usr/local/bin/nitro" {{target}}
podman image unmount {{nitro-image}}
'

I think the pull needs to happen with the same user. The pull in line 24 should then go into the if branch.

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.

4 participants