Skip to content

Instantly share code, notes, and snippets.

@bld2104
Created November 21, 2017 22:49
Show Gist options
  • Save bld2104/8307ae88101e4cbbb59efe4228d42055 to your computer and use it in GitHub Desktop.
Save bld2104/8307ae88101e4cbbb59efe4228d42055 to your computer and use it in GitHub Desktop.
new-host:boxplot-theme barbaradonnini$ gcloud app deploy
WARNING: Automatic app detection is currently in Beta
Deployment to Google App Engine requires an app.yaml file. This
command will run `gcloud beta app gen-config` to generate an app.yaml
file for you in the current directory (if the current directory does
not contain an App Engine service, please answer "no").
Do you want to continue (Y/n)? y
This looks like a Python app. If so, please enter the command to run
the app in production (enter nothing if it's not a python app): :
Writing [app.yaml] to [/Users/barbaradonnini/Google Drive/Boxplot/google-test-2/boxplot-theme].
You are creating an app for project [test2-boxplot-wordpress].
WARNING: Creating an App Engine application for a project is irreversible and the region
cannot be changed. More information about regions is at
<https://cloud.google.com/appengine/docs/locations>.
Please choose the region where you want your App Engine application
located:
[1] us-central (supports standard and flexible)
[2] europe-west3 (supports standard and flexible)
[3] europe-west (supports standard and flexible)
[4] europe-west2 (supports standard and flexible)
[5] us-east1 (supports standard and flexible)
[6] us-east4 (supports standard and flexible)
[7] asia-northeast1 (supports standard and flexible)
[8] asia-south1 (supports standard and flexible)
[9] australia-southeast1 (supports standard and flexible)
[10] southamerica-east1 (supports standard and flexible)
[11] cancel
Please enter your numeric choice: 5
Creating App Engine application in project [test2-boxplot-wordpress] and region [us-east1]....done.
Services to deploy:
descriptor: [/Users/barbaradonnini/Google Drive/Boxplot/google-test-2/boxplot-theme/app.yaml]
source: [/Users/barbaradonnini/Google Drive/Boxplot/google-test-2/boxplot-theme]
target project: [test2-boxplot-wordpress]
target service: [default]
target version: [20171121t173820]
target url: [https://test2-boxplot-wordpress.appspot.com]
Do you want to continue (Y/n)? y
Enabling service appengineflex.googleapis.com on project test2-boxplot-wordpress...
Waiting for async operation operations/tmo-acf.eef01f7b-c290-4e83-8218-b20498ae49c1 to complete...
Operation finished successfully. The following command can describe the Operation details:
gcloud service-management operations describe operations/tmo-acf.eef01f7b-c290-4e83-8218-b20498ae49c1
Beginning deployment of service [default]...
Building and pushing image for service [default]
Some files were skipped. Pass `--verbosity=info` to see which ones.
You may also view the gcloud log file, found at
[/Users/barbaradonnini/.config/gcloud/logs/2017.11.21/17.37.26.097339.log].
Started cloud build [66f0e1c3-f56a-429a-9b82-fa762290105b].
To see logs in the Cloud Console: https://console.cloud.google.com/gcr/builds/66f0e1c3-f56a-429a-9b82-fa762290105b?project=test2-boxplot-wordpress
---------------------------------------------- REMOTE BUILD OUTPUT ----------------------------------------------
starting build "66f0e1c3-f56a-429a-9b82-fa762290105b"
FETCHSOURCE
Fetching storage object: gs://staging.test2-boxplot-wordpress.appspot.com/us.gcr.io/test2-boxplot-wordpress/appengine/default.20171121t173820:latest#1511304005351320
Copying gs://staging.test2-boxplot-wordpress.appspot.com/us.gcr.io/test2-boxplot-wordpress/appengine/default.20171121t173820:latest#1511304005351320...
| [1 files][ 90.3 MiB/ 90.3 MiB]
Operation completed over 1 objects/90.3 MiB.
BUILD
Step #0: Pulling image: gcr.io/gcp-runtimes/php/gen-dockerfile@sha256:fd67bc1ec5b4884904d6a6894f137e7e35e48edfc73f989aac00ad46ceaaa427
Step #0: sha256:fd67bc1ec5b4884904d6a6894f137e7e35e48edfc73f989aac00ad46ceaaa427: Pulling from gcp-runtimes/php/gen-dockerfile
Step #0: Digest: sha256:fd67bc1ec5b4884904d6a6894f137e7e35e48edfc73f989aac00ad46ceaaa427
Step #0: Status: Downloaded newer image for gcr.io/gcp-runtimes/php/gen-dockerfile@sha256:fd67bc1ec5b4884904d6a6894f137e7e35e48edfc73f989aac00ad46ceaaa427
Starting Step #0
Step #0: + php /builder/create_dockerfile.php create --php72-image gcr.io/google-appengine/php72@sha256:e0e2aa0bd330a33ce3a155dffba79c12dc4ca06bd47f59fbeca7ac8f33d54a8e --php71-image gcr.io/google-appengine/php71@sha256:dde77c0191b4a0f35c33b6797fda1ce7e3732d3358a75b193acbf8f6e192e24a --php70-image gcr.io/google-appengine/php70@sha256:063f9b11d0879ad1d902a092de186aebd9bf01619f885706fe86d8f9d21a48e0 --php56-image gcr.io/google-appengine/php56@sha256:ca98a0b52606c7375ce768e67315fbbfa91a4c0e68f29b9546cedd6eab485510
Step #0:
Step #0: There is no PHP runtime version specified in composer.json, or
Step #0: we don't support the version you specified. Google App Engine
Step #0: uses the latest 7.1.x version.
Step #0: We recommend pinning your PHP version by running:
Step #0:
Step #0: composer require php 7.1.* (replace it with your desired minor version)
Step #0:
Step #0: Using PHP version 7.1.x...
Step #0:
Finished Step #0
Step #1: Pulling image: gcr.io/cloud-builders/docker@sha256:2d5ab7345f0a3f471be98e80715938a17096667d6be95d3d8d98279dc32e41a9
Step #1: sha256:2d5ab7345f0a3f471be98e80715938a17096667d6be95d3d8d98279dc32e41a9: Pulling from cloud-builders/docker
Step #1: ae79f2514705: Already exists
Step #1: 5ad56d5fc149: Pulling fs layer
Step #1: 170e558760e8: Pulling fs layer
Step #1: 395460e233f5: Pulling fs layer
Step #1: 6f01dc62e444: Pulling fs layer
Step #1: 1ba2ba4bd379: Pulling fs layer
Step #1: 35f9bce66c78: Pulling fs layer
Step #1: 6f01dc62e444: Waiting
Step #1: 1ba2ba4bd379: Waiting
Step #1: 35f9bce66c78: Waiting
Step #1: 395460e233f5: Verifying Checksum
Step #1: 395460e233f5: Download complete
Step #1: 170e558760e8: Verifying Checksum
Step #1: 170e558760e8: Download complete
Step #1: 5ad56d5fc149: Verifying Checksum
Step #1: 5ad56d5fc149: Download complete
Step #1: 6f01dc62e444: Verifying Checksum
Step #1: 6f01dc62e444: Download complete
Step #1: 5ad56d5fc149: Pull complete
Step #1: 170e558760e8: Pull complete
Step #1: 395460e233f5: Pull complete
Step #1: 6f01dc62e444: Pull complete
Step #1: 35f9bce66c78: Verifying Checksum
Step #1: 35f9bce66c78: Download complete
Step #1: 1ba2ba4bd379: Verifying Checksum
Step #1: 1ba2ba4bd379: Download complete
Step #1: 1ba2ba4bd379: Pull complete
Step #1: 35f9bce66c78: Pull complete
Step #1: Digest: sha256:2d5ab7345f0a3f471be98e80715938a17096667d6be95d3d8d98279dc32e41a9
Step #1: Status: Downloaded newer image for gcr.io/cloud-builders/docker@sha256:2d5ab7345f0a3f471be98e80715938a17096667d6be95d3d8d98279dc32e41a9
Starting Step #1
Step #1: Sending build context to Docker daemon 208.5MB
Step #1: Step 1/8 : FROM gcr.io/google-appengine/php71@sha256:dde77c0191b4a0f35c33b6797fda1ce7e3732d3358a75b193acbf8f6e192e24a
Step #1: sha256:dde77c0191b4a0f35c33b6797fda1ce7e3732d3358a75b193acbf8f6e192e24a: Pulling from google-appengine/php71
Step #1: Digest: sha256:dde77c0191b4a0f35c33b6797fda1ce7e3732d3358a75b193acbf8f6e192e24a
Step #1: Status: Downloaded newer image for gcr.io/google-appengine/php71@sha256:dde77c0191b4a0f35c33b6797fda1ce7e3732d3358a75b193acbf8f6e192e24a
Step #1: ---> f226466af36a
Step #1: Step 2/8 : ENV DOCUMENT_ROOT '/app/.' FRONT_CONTROLLER_FILE 'index.php' COMPOSER_FLAGS '--no-dev --prefer-dist' DETECTED_PHP_VERSION '7.1'
Step #1: ---> Running in a409b7c501dd
Step #1: ---> 3182b3eb183c
Step #1: Removing intermediate container a409b7c501dd
Step #1: Step 3/8 : COPY . $APP_DIR
Step #1: ---> 63b35bd45675
Step #1: Removing intermediate container 3944b663825c
Step #1: Step 4/8 : RUN chown -R www-data.www-data $APP_DIR
Step #1: ---> Running in 7b5e78e567d7
Step #1: ---> 64ec3d53d101
Step #1: Removing intermediate container 7b5e78e567d7
Step #1: Step 5/8 : RUN /build-scripts/composer.sh
Step #1: ---> Running in c2434c026e01
Step #1: ---> 3d8f63f3e755
Step #1: Removing intermediate container c2434c026e01
Step #1: Step 6/8 : RUN /bin/bash /build-scripts/move-config-files.sh
Step #1: ---> Running in 299d1500b1af
Step #1: Moving user supplied config files...
Step #1: ---> 6fcdc3f167fd
Step #1: Removing intermediate container 299d1500b1af
Step #1: Step 7/8 : RUN /usr/sbin/nginx -t -c /etc/nginx/nginx.conf
Step #1: ---> Running in c2c930442bbb
Step #1: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
Step #1: nginx: configuration file /etc/nginx/nginx.conf test is successful
Step #1: ---> 18bc765a9966
Step #1: Removing intermediate container c2c930442bbb
Step #1: Step 8/8 : RUN /bin/bash /build-scripts/lockdown.sh
Step #1: ---> Running in e99e20b51764
Step #1: Locking down the document root...
Step #1: ---> af7546067408
Step #1: Removing intermediate container e99e20b51764
Step #1: Successfully built af7546067408
Step #1: Successfully tagged us.gcr.io/test2-boxplot-wordpress/appengine/default.20171121t173820:latest
Finished Step #1
PUSH
Pushing us.gcr.io/test2-boxplot-wordpress/appengine/default.20171121t173820:latest
The push refers to a repository [us.gcr.io/test2-boxplot-wordpress/appengine/default.20171121t173820]
fdf7537d914d: Preparing
9e3834340cfd: Preparing
c9e57e47bd28: Preparing
9d21947cc85f: Preparing
cb7f6ae7ee3e: Preparing
33b9c2cda15a: Preparing
b04830defb6e: Preparing
5b4ac2361eec: Preparing
8b36f3def508: Preparing
b60823b56056: Preparing
f537e8d2a461: Preparing
eb929eaf0025: Preparing
d5d51ecd8bb9: Preparing
7d251eda0726: Preparing
31183ce1beee: Preparing
1e8cc3161289: Preparing
5ffa3cd89711: Preparing
5a2c5095cca1: Preparing
33b9c2cda15a: Waiting
b04830defb6e: Waiting
5b4ac2361eec: Waiting
8b36f3def508: Waiting
b60823b56056: Waiting
f537e8d2a461: Waiting
eb929eaf0025: Waiting
d5d51ecd8bb9: Waiting
7d251eda0726: Waiting
31183ce1beee: Waiting
1e8cc3161289: Waiting
5ffa3cd89711: Waiting
5a2c5095cca1: Waiting
cb7f6ae7ee3e: Layer already exists
33b9c2cda15a: Layer already exists
b04830defb6e: Layer already exists
9e3834340cfd: Pushed
5b4ac2361eec: Layer already exists
8b36f3def508: Layer already exists
b60823b56056: Layer already exists
f537e8d2a461: Layer already exists
d5d51ecd8bb9: Layer already exists
eb929eaf0025: Layer already exists
31183ce1beee: Layer already exists
7d251eda0726: Layer already exists
1e8cc3161289: Layer already exists
5ffa3cd89711: Layer already exists
5a2c5095cca1: Layer already exists
9d21947cc85f: Pushed
c9e57e47bd28: Pushed
fdf7537d914d: Pushed
latest: digest: sha256:be4a5685c9eeaa9713da380f805f046c46d3d14b29ee6be2848f68677cb5ba74 size: 4084
DONE
-----------------------------------------------------------------------------------------------------------------
Updating service [default] (this may take several minutes)...done.
Updating service [default]...Waiting for operation [apps/test2-boxplot-wordpress/operations/574e0811-214f-4fcf-86e1-bd2f782b9dc6] to complete
...done.
Updating service [default]...done.
Deployed service [default] to [https://test2-boxplot-wordpress.appspot.com]
You can stream logs from the command line by running:
$ gcloud app logs tail -s default
To view your application in the web browser run:
$ gcloud app browse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment