Skip to content

Commit

Permalink
feat: labels for dataproc in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
SzymonSzyszkowski committed Feb 3, 2025
1 parent 2c0ecd5 commit d556305
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ PROJECT_ID ?= open-targets-genetics-dev
REGION ?= europe-west1
APP_NAME ?= $$(cat pyproject.toml | grep -m 1 "name" | cut -d" " -f3 | sed 's/"//g')
PACKAGE_VERSION ?= $(shell grep -m 1 'version = ' pyproject.toml | sed 's/version = "\(.*\)"/\1/')
UID ?= $(shell echo $(USER) | tr '[:upper:]' '[:lower:]')
# NOTE: git rev-parse will always return the HEAD if it sits in the tag,
# this way we can distinguish the tag vs branch name
ifeq ($(shell git rev-parse --abbrev-ref HEAD),HEAD)
Expand Down Expand Up @@ -70,6 +71,7 @@ create-dev-cluster: sync-cluster-init-script sync-gentropy-cli-script ## Spin up
--autoscaling-policy="projects/${PROJECT_ID}/regions/${REGION}/autoscalingPolicies/otg-etl" \
--optional-components=JUPYTER \
--enable-component-gateway \
--labels team=open-targets,subteam=gentropy,created_by=${UID},environment=development, \
--max-idle=60m

update-dev-cluster: build ## Reinstalls the package on the dev-cluster
Expand Down

0 comments on commit d556305

Please sign in to comment.