-
Notifications
You must be signed in to change notification settings - Fork 167
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
User would like to use openBalena in an air-gapped (no internet) environment #129
Comments
Connects-to: #70 |
[pdcastro] This issue has attached support thread https://jel.ly.fish/ce70c1de-e821-4f10-8912-d55af99bbcab |
Hello, any progress on this? |
@pdcastro I'm also in need for an air-gapped deployment. In our case I have a fixed number of fleets that are effectively mirroring a hosted non-open balena fleet. I guess a workaround would be to either run the It looks as if it shouldn't be too hard to patch the API to load supported devices and version from a file. I guess one could use the SDK logic to generate that file from the official s3 bucket and deploy it with the openBalena deployment. |
Just to share that this seems to be fixed.
That means that in our air-gapped environment one can still create a fleet using:
|
Still relevant in 2024? Perhaps someone can pick up the new guide and see if it works in air-gapped environments (especially given Docker's improvements in this space recently)? |
I think this is still relevant but is not a limitation of openBalena specifically, it also applies to balenaMachine. It’s due to the way device types (and images) are loaded into the instance. |
We have a working air-gapped configuration which I would like to upstream. I'm not quite sure how to best integrate it. I'll make a DRAFT merge request and would appreciate feedback. See here #241 I need to clean it up a little and move a couple of things out of our proprietary repo into there. CiCD was easier for me there (gitlab CICD). |
As originally reported in:
balena fleet create
in an air-gapped (no internet) environment balena-cli#2322When users run the balena CLI command
balena fleet create
, regardless of whether or not they specify the device type with the--type
flag, I understand that the CLI calls the balena SDK's models.application.create() method that retrieves the device manifest from S3 as coded in the following lines:In turn, the SDK queries the
/device-types/v1
endpoint fromopenbalena-api
:Where the S3 bucket URL / hostname comes from environment variable
IMAGE_STORAGE_BUCKET
which, as I understand,open-balena
hardcodes ass3.amazonaws.com
:Hence accessing the internet.
The text was updated successfully, but these errors were encountered: