Last active
October 10, 2017 13:28
-
-
Save 0xAhmed/4125c9c14c192978c602dc3c98d807bf to your computer and use it in GitHub Desktop.
Build Docker image for 1.0 and push to GCR
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
| $ export app_version=1.0 | |
| $ docker build --build-arg version=$app_version -t gcr.io/$PROJECT_ID/app:$app_version . | |
| Sending build context to Docker daemon 16.48MB | |
| Step 1/6 : FROM alpine:latest | |
| ---> 7328f6f8b418 | |
| Step 2/6 : MAINTAINER The Dockbit Team "team@dockbit.com" | |
| ---> Using cache | |
| ---> 6abecc069f97 | |
| Step 3/6 : ARG version=1.0 | |
| ---> Running in 33c0893e3b89 | |
| ---> 681c2773c86c | |
| Removing intermediate container 33c0893e3b89 | |
| Step 4/6 : COPY source/$version/app /app | |
| ---> f7e99a4bf59e | |
| Removing intermediate container b53150f679ed | |
| Step 5/6 : EXPOSE 8080 | |
| ---> Running in d5cb1c07e26c | |
| ---> 1534a637c45e | |
| Removing intermediate container d5cb1c07e26c | |
| Step 6/6 : ENTRYPOINT /app | |
| ---> Running in 7ed3912c444c | |
| ---> 904295e0ba03 | |
| Removing intermediate container 7ed3912c444c | |
| Successfully built 904295e0ba03 | |
| Successfully tagged gcr.io/project-canary-181811/app:1.0 | |
| $ gcloud docker -- push gcr.io/$PROJECT_ID/app:$app_version | |
| The push refers to a repository [gcr.io/project-canary-181811/app] | |
| badbaf9deb07: Pushed | |
| 5bef08742407: Layer already exists | |
| 1.0: digest: sha256:7806df2d49603f13c81c0e392e6ccf4bcb57e9928760740870a26ad664d18e05 size: 739 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment