Last active
October 13, 2022 07:25
-
-
Save darkn3rd/e15cd8488eeb40634392b4883e314689 to your computer and use it in GitHub Desktop.
GKE/CCSM: Publishing pydgrpah-client images to DockerHub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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