Skip to content

Add container image #561

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

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

TristanCacqueray
Copy link
Contributor

This change enables running emanote in a container.

@TristanCacqueray
Copy link
Contributor Author

Note that I haven't tested the CI action, but that's the script I'm using elsewhere and I hope it will work as-is.

This change enables running emanote in a container.
Copy link
Owner

@srid srid left a comment

Choose a reason for hiding this comment

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

@TristanCacqueray This is what I see:

image

@TristanCacqueray
Copy link
Contributor Author

That's odd, the script works with the default action runner, here is an example: https://github.com/logjuicer/logjuicer/actions/runs/10422103187/job/28865852855

I guess the XDG_RUNTIME_DIR of your runner is not writable, perhaps try setting it to a valid location for this task?

@srid
Copy link
Owner

srid commented Feb 11, 2025

XDG_RUNTIME_DIR

Curious this is a requirement of skopeo? If so crane may be worth looking into, as we've got it working with the same kind of runners: https://github.com/nammayatri/nammayatri/blob/acced803e46a801edada92cd1fd5fa769790deb2/.github/workflows/nix.yaml#L113-L127

As a stretch goal only, it'd be good to use https://github.com/nlewo/nix2container over pkgs.dockerTools.

@TristanCacqueray
Copy link
Contributor Author

@srid I think skopeo/podman writes the credentials to /run .

Also, once the package is created on GH you'll have to mark at as public so that it can be used freely.

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