-
Notifications
You must be signed in to change notification settings - Fork 92
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
How to enable online-mode for build-commands
?
#628
Comments
build-options:
build-args: ['--share=network'] |
In case it wasn't obvious, you would do this with: sources:
- type: archive
url: ...
sha256: ... Using |
Thank you!
It was example of course. I need some build system tools like maven or gradle to install packages while building. |
BTW: you also need to remove --sandbox flag from flatpak-builder cli. |
There are some scripts that generate a static list of downloads for tools like gradle: https://github.com/flatpak/flatpak-builder-tools If you want to publish on Flathub you'd have to use them. But for your own usage it might not be worth it. |
Originally posted by
@hfiguiere
in flatpak/flatpak#2855 (comment)https://docs.flatpak.org/en/latest/flatpak-builder-command-reference.html
Though
devel
feature is only about developer tools, I don't understand why network mentioned in that context. I have network connection tosources: type: git
for example, to resolve dnsgithub.com
and download repo, but not towget [something]
inbuild-commands
.devel: Allow system calls used by development-oriented tools such as perf, strace and gdb.
flatpak-builder
doesn't have--allow
flaghttps://docs.flatpak.org/en/latest/flatpak-command-reference.html#flatpak-run
and
flatpak run --allow=devel org.flatpak.Builder
doesn't helpOther that I can't find anything in docs/reference about network isolation during build.
The text was updated successfully, but these errors were encountered: