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

Run gateway plugin as OCI container via runc #1436

Closed
justinmoon opened this issue Jan 20, 2023 · 4 comments
Closed

Run gateway plugin as OCI container via runc #1436

justinmoon opened this issue Jan 20, 2023 · 4 comments
Labels
deployment Running fedimint in the wild lightning Lightning module

Comments

@justinmoon
Copy link
Contributor

@dpc was just telling me how you can make an executable shell script that executes a ln_gateway OCI container with the runc container runtime. This could behave exactly like a normal executable, but could run on any distro that has runc installed.

Alternative to #1008 for making CLN plugin run on all linux distros.

@justinmoon justinmoon added lightning Lightning module deployment Running fedimint in the wild labels Jan 20, 2023
@justinmoon justinmoon changed the title Run gateway plugin as Docker container Run gateway plugin as OCI container Jan 21, 2023
@justinmoon justinmoon changed the title Run gateway plugin as OCI container Run gateway plugin as OCI container via runc Jan 21, 2023
@dpc
Copy link
Contributor

dpc commented Jan 21, 2023

#!/usr/bin/env bash

exec podman run $MOUNT_OPTS_ETC -q -i docker.io/fedimint/ln-gateway "$@"

This behaves very much like we were running ln_gateway process itself: stdio, stdout, stderr, etc. Though I'm hitting containers/podman#14707 which makes ctrl+c not work.

Might try other stuff later too.

@dpc
Copy link
Contributor

dpc commented Jan 21, 2023

@justinmoon @elsirion Once #1452 lands, please create ln-gateway docker hub repos, so we can upload it there.

@justinmoon
Copy link
Contributor Author

@justinmoon @elsirion Once #1452 lands, please create ln-gateway docker hub repos, so we can upload it there.

Done

@dpc
Copy link
Contributor

dpc commented Apr 19, 2023

Bundling the binary like in #2036 seems to render this too much hassle.

@dpc dpc closed this as not planned Won't fix, can't repro, duplicate, stale Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployment Running fedimint in the wild lightning Lightning module
Projects
None yet
Development

No branches or pull requests

2 participants