Skip to content

Instantly share code, notes, and snippets.

@jwkidd3
Last active May 22, 2018 15:54
Show Gist options
  • Save jwkidd3/f7a4211f8a518c1d2453db226d17adf1 to your computer and use it in GitHub Desktop.
Save jwkidd3/f7a4211f8a518c1d2453db226d17adf1 to your computer and use it in GitHub Desktop.
using cloud shell:
git clone https://github.com/jwkidd3/azure-vote
docker-compose up -d
docker images
docker-compose down
az group create --name <your group> --location <location>
az acr create --resource-group <your group> --name <acrName> --sku Basic
az acr login --name <acrName>
docker images
az acr list --resource-group myResourceGroup --query "[].{acrLoginServer:loginServer}" --output table
docker tag azure-vote-front <your acr server>/azure-vote-front:v1
docker push <your acr server>/azure-vote-front:v1
az acr repository list --name <your acr server> --output table
az acr repository show-tags --name <your acr server> --repository azure-vote-front --output table
CLIENTID=$(az aks show --resource-group myResourceGroup --name myAKSCluster --query "servicePrincipalProfile.clientId" --output tsv)
ACRID=$(az acr show --name <acrName> --resource-group myResourceGroup --query "id" --output tsv)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment