Skip to content

Is it possible to create an encapsulated ostree pointing at an http endpoint? ( #4650

Answered by cgwalters
cgwalters asked this question in Q&A
Discussion options

You must be logged in to vote

Not today; you'll need to pull into a temporary local ostree repository, then encapsulate that. i.e.

$ ostree --repo=tmp-repo init --mode=archive # or bare-user would likely work too, different tradeoffs
$ ostree --repo=tmp-repo remote-add upstream http://localhost:8080/repo
$ ostree --repo=tmp-repo pull --mirror upstream exampleos/42/x86_64/foo
$ rpm-ostree compose container-encapsulate --repo=tmp-repo ...

An implementation in rpm-ostree would basically do that; it'd in theory be possible to stream but realistically a nontrivial amount of work for relatively low benefit (IMO).

(Wait I just noticed...if the repository is really on localhost why are you not passing the filesystem path dir…

Replies: 1 comment 1 reply

Comment options

cgwalters
Oct 13, 2023
Maintainer Author

You must be logged in to vote
1 reply
@oglok
Comment options

Answer selected by cgwalters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants