Skip to content

Instantly share code, notes, and snippets.

@darkn3rd
Last active October 13, 2022 07:25
Show Gist options
  • Save darkn3rd/e15cd8488eeb40634392b4883e314689 to your computer and use it in GitHub Desktop.
Save darkn3rd/e15cd8488eeb40634392b4883e314689 to your computer and use it in GitHub Desktop.
GKE/CCSM: Publishing pydgrpah-client images to DockerHub
pushd ./examples/pydgraph-client
###################
# STEP 1: Environment variables
#######################################
source env.sh
export DOCKER_REGISTRY="<your-docker-hub-account-goes-here>"
###################
# STEP 2: Build local image
#######################################
docker build -t pydgraph-client:latest .
###################
# STEP 3: Publish Image to DcokerHub
#######################################
docker login # IMPORTANT: use api-token not the actual password
docker tag pydgraph-client:latest $DOCKER_REGISTRY/pydgraph-client:latest
docker push $DOCKER_REGISTRY/pydgraph-client:latest
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment