-
Notifications
You must be signed in to change notification settings - Fork 694
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
Support airgapped environment #1619
Conversation
`go_repository` git `commit` doesn't support `http_load` caching mechanism thus prevents `rules_docker` to be used in air gapped environment. Replacing it with alternative `urls` address makes go_repository to use `http_load` and utilize [caching mechanism](https://docs.bazel.build/versions/master/guide.html#running-bazel-in-an-airgapped-environment) if needed. An additional piece of information will be needed in future for updating dependencies' versions - sha256. The way to get sha256 on mac - to download the file from `https://api.github.com/repos/<org>/<repo>/tarball/<commit>` and running `shasum -a 256 <file>`
/assign @smukherj1 |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: smartkiwi, smukherj1 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/gcbrun |
`go_repository` git `commit` doesn't support `http_load` caching mechanism thus prevents `rules_docker` to be used in air gapped environment. Replacing it with alternative `urls` address makes go_repository to use `http_load` and utilize [caching mechanism](https://docs.bazel.build/versions/master/guide.html#running-bazel-in-an-airgapped-environment) if needed. An additional piece of information will be needed in future for updating dependencies' versions - sha256. The way to get sha256 on mac - to download the file from `https://api.github.com/repos/<org>/<repo>/tarball/<commit>` and running `shasum -a 256 <file>`
`go_repository` git `commit` doesn't support `http_load` caching mechanism thus prevents `rules_docker` to be used in air gapped environment. Replacing it with alternative `urls` address makes go_repository to use `http_load` and utilize [caching mechanism](https://docs.bazel.build/versions/master/guide.html#running-bazel-in-an-airgapped-environment) if needed. An additional piece of information will be needed in future for updating dependencies' versions - sha256. The way to get sha256 on mac - to download the file from `https://api.github.com/repos/<org>/<repo>/tarball/<commit>` and running `shasum -a 256 <file>`
@smartkiwi, is this something that could be accomplished using a Remote Asset API? I haven't ever worked in an airgapped environment so I don't really know much about the difficulties encountered here. This change is probably ok to make anyway. Something else to look forward to for your use case is the External Dep Overhaul. |
go_repository
gitcommit
doesn't supporthttp_load
caching mechanism thus preventsrules_docker
to be used in air gapped environment.Replacing it with alternative
urls
address makes go_repository to usehttp_load
and utilize caching mechanism if needed.An additional piece of information will be needed in future for updating dependencies' versions - sha256.
The way to get sha256 on mac - to download the file from
https://api.github.com/repos/<org>/<repo>/tarball/<commit>
and runningshasum -a 256 <file>