Last active
February 16, 2019 18:51
-
-
Save priteshgudge/54c5cb394714bfa7720049aaca00fc49 to your computer and use it in GitHub Desktop.
build_and_push
This file contains hidden or 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
| sh build.sh | |
| docker build --target app -f Dockerfile -t asia.gcr.io/pritesh-sample-1/testapplication:dev_0.0.1 . | |
| docker push asia.gcr.io/pritesh-sample-1/testapplication:dev_0.0.1 | |
| docker run -p 8080:8080 asia.gcr.io/pritesh-sample-1/testapplication:dev_0.0.1 | |
| http://localhost:8080/ping/ | |
| #Kubernetes | |
| # gcloud container clusters get-credentials test-cluster --zone=asia-south1-a | |
| # gcloud compute firewall-rules create my-rule --allow=tcp:8011 | |
| # kubectl get pods | |
| # kubectl get services | |
| # kubectl apply -f file.yml | |
| # kubectl delete service ... | |
| # kubectl logs -f --tail 100 pod_id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment