Skip to content

Instantly share code, notes, and snippets.

@darkn3rd
Last active October 13, 2022 07:25
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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