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

Switch to Artifact Registry #29

Merged
merged 38 commits into from
Feb 17, 2021
Merged

Switch to Artifact Registry #29

merged 38 commits into from
Feb 17, 2021

Conversation

vladsavelyev
Copy link

@vladsavelyev vladsavelyev commented Feb 9, 2021

Switch pointers from GCR to Artifact Registry (GCR is not available in Australia).

Also, a tiny fix to allow using GNU tools on macOS to get file permissions, and gitignored macOS dylib.

UPD: downstream fixes after merging: #40, #41

@vladsavelyev vladsavelyev requested a review from lgruen February 9, 2021 02:20
@vladsavelyev vladsavelyev marked this pull request as draft February 9, 2021 04:14
@vladsavelyev vladsavelyev changed the title Switch to Artefact Registry Switch to Artifact Registry Feb 10, 2021
Copy link

@lgruen lgruen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding a review now to make the reminders stop ;).

Please re-request once it's ready for another look!

@vladsavelyev vladsavelyev reopened this Feb 16, 2021
@vladsavelyev vladsavelyev marked this pull request as ready for review February 17, 2021 07:24
@vladsavelyev vladsavelyev requested a review from lgruen February 17, 2021 07:24
Copy link

@lgruen lgruen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome.

@lgruen lgruen merged commit f5d6f86 into main Feb 17, 2021
@lgruen lgruen deleted the artefact-registry branch February 17, 2021 07:30
vladsavelyev added a commit that referenced this pull request Feb 25, 2021
* config.mk: use AR docker image

* build.yaml: use AR for images

* Gitignore artifacts

* fetch-image.sh: gcloud auth for AR

* image-fetcher dockerfile: base on AR

* image fetcher make file: use AR

* build-batch-worker-image-startup.sh: add gcloud auth configure-docker for AR, user AR for images

* batch worker: ue AR for public_gcr_images

* Worker dockerfile: use AR

* ci build.py: add gcloud auth configure-docker for AR, use AR base image

* Makefiles: use AR docker images

* stat-permissions.sh: fix for macOS gnu-grep

* third-party dockers: use AR

* ci dockerFile create_namespace: use AR image

* Docker hail-ubuntu: use AR image

* ci build.py: add region into the jinja render config for Dockerfiles

* CI deploy config: add region

* Python-dill: use AR image

* Auth deployment.yaml: add REGION

* Use hail-dvc default ci image pointer

* Add Artifact Registry in main.tf

* Add AR in dev-docs

* Add AR for ukbb-rg

* Add AR in more makefiles

* Fix AR usage for image-fetcher

* Specify "region" in the "hail-ubuntu-stmp" target.

* Fix zone assignment in startup script.

* Allow ci to read from Artifact Registry.

* Makefiles: parametrise `DOCKER_ROOT_IMAGE` to support both GCR and AR

* Parametrise `DOCKER_PREFIX` to support both GCR and AR

* Un-gitignore "vlad"

* Fix

* batch: pass DOCKER_PREFIX to worker

* DOCKER_PREFIX in build-batch-worker-image-startup.sh

* build.yaml: add ubuntu tags back

* ci/ci/build.py: parametrise docker prefix

* infra README: configure-docker AR

Co-authored-by: Leonhard Gruenschloss <leonhard.gruenschloss@populationgenomics.org.au>
vladsavelyev added a commit that referenced this pull request Apr 27, 2021
…#10347)

* Switch to Artifact Registry (#29)

* config.mk: use AR docker image

* build.yaml: use AR for images

* Gitignore artifacts

* fetch-image.sh: gcloud auth for AR

* image-fetcher dockerfile: base on AR

* image fetcher make file: use AR

* build-batch-worker-image-startup.sh: add gcloud auth configure-docker for AR, user AR for images

* batch worker: ue AR for public_gcr_images

* Worker dockerfile: use AR

* ci build.py: add gcloud auth configure-docker for AR, use AR base image

* Makefiles: use AR docker images

* stat-permissions.sh: fix for macOS gnu-grep

* third-party dockers: use AR

* ci dockerFile create_namespace: use AR image

* Docker hail-ubuntu: use AR image

* ci build.py: add region into the jinja render config for Dockerfiles

* CI deploy config: add region

* Python-dill: use AR image

* Auth deployment.yaml: add REGION

* Use hail-dvc default ci image pointer

* Add Artifact Registry in main.tf

* Add AR in dev-docs

* Add AR for ukbb-rg

* Add AR in more makefiles

* Fix AR usage for image-fetcher

* Specify "region" in the "hail-ubuntu-stmp" target.

* Fix zone assignment in startup script.

* Allow ci to read from Artifact Registry.

* Makefiles: parametrise `DOCKER_ROOT_IMAGE` to support both GCR and AR

* Parametrise `DOCKER_PREFIX` to support both GCR and AR

* Un-gitignore "vlad"

* Fix

* batch: pass DOCKER_PREFIX to worker

* DOCKER_PREFIX in build-batch-worker-image-startup.sh

* build.yaml: add ubuntu tags back

* ci/ci/build.py: parametrise docker prefix

* infra README: configure-docker AR

Co-authored-by: Leonhard Gruenschloss <leonhard.gruenschloss@populationgenomics.org.au>

* Fix building worker image (#40)

* Add Artifact Registry permissions for the batch-agent service account.

* Gitignore */hail.jar and *.dylib

* Comment in gitignore on dylib

* Default use_artifact_registry to false

* Use DOCKER_ROOT_IMAGE to pass to batch worker image

* Use DOCKER_ROOT_IMAGE wherever makes sense

* Render build-batch-worker-image-startup.sh with Jinja to set up docker root image

* Fix jinja params

* Add phony rule to configure gcloud and Docker

* Add comments on HAIL_DOCKER_PREFIX

* Make sure the env variable HAIL_DOCKER_PREFIX available to the batch worker instance

* Add missing docker_root_image

* Infra README: correct env var name

* Fix env var case

* remove other instances of gcr.io in favor of DOCKER_PREFIX

* add hail_version to gitignore once and for all

* debug

* add back yaml changes after rebase

* remove gcloud target from hail/Makefile

Co-authored-by: Vlad Savelyev <vladislav.sav@gmail.com>
Co-authored-by: Leonhard Gruenschloss <leonhard.gruenschloss@populationgenomics.org.au>
Co-authored-by: vladsaveliev <vladislav.savelyev@populationgenomics.org.au>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants