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

feat: build Rockcraft rock #474

Closed
wants to merge 2 commits into from
Closed

Conversation

cjdcordeiro
Copy link
Collaborator

  • Have you signed the CLA?

This PR adds the rockcraft.yaml for building a Rockcraft rock.

The rock runs pack by default, in destructive mode. Other rockcraft commands can only be achieved via the pebble exec command or by overriding the entrypoint.

Because of fuse, the resulting rock needs to be executed with certain privileges.

Example:

rockcraft pack -v
skopeo copy oci-archive:rockcraft_dev_amd64.rock docker-daemon:rockcraft-rock:latest
docker run --rm -v $PWD:/project \
     --device /dev/fuse \
     --cap-add SYS_ADMIN \
     --security-opt apparmor:unconfined \
     rockcraft-rock

The resulting rock will be copied into the host's working directory

Additionally: this PR also includes the GH workflow for building and pushing this rock to GHCR

@cjdcordeiro
Copy link
Collaborator Author

Closing. Replaced by canonical/rocks-toolbox#10

@cjdcordeiro cjdcordeiro closed this Feb 9, 2024
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.

1 participant