关于“Google Cloud Fundamentals: Getting Started with App Engine”的评价
评论
Alyssa Maureen M. · 评论10 months之前
Welcome to Cloud Shell! Type "help" to get started. Your Cloud Platform project in this session is set to qwiklabs-gcp-01-6ea725a46545. Use “gcloud config set project [PROJECT_ID]” to change to a different project. student_01_9988df4b28aa@cloudshell:~ (qwiklabs-gcp-01-6ea725a46545)$ student_01_9988df4b28aa@cloudshell:~ (qwiklabs-gcp-01-6ea725a46545)$ gcloud auth list Credentialed Accounts ACTIVE: * ACCOUNT: student-01-9988df4b28aa@qwiklabs.net To set the active account, run: $ gcloud config set account `ACCOUNT` student_01_9988df4b28aa@cloudshell:~ (qwiklabs-gcp-01-6ea725a46545)$ gcloud app create --project=$DEVSHELL_PROJECT_ID You are creating an app for project [qwiklabs-gcp-01-6ea725a46545]. 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] asia-east1 (supports standard and flexible) [2] asia-northeast1 (supports standard and flexible and search_api) [3] asia-south1 (supports standard and flexible and search_api) [4] asia-southeast1 (supports standard and flexible) [5] australia-southeast1 (supports standard and flexible and search_api) [6] europe-central2 (supports standard and flexible) [7] europe-west (supports standard and flexible and search_api) [8] europe-west2 (supports standard and flexible and search_api) [9] europe-west3 (supports standard and flexible and search_api) [10] us-central (supports standard and flexible and search_api) [11] us-east1 (supports standard and flexible and search_api) [12] us-east4 (supports standard and flexible and search_api) [13] us-west1 (supports standard and flexible) [14] us-west2 (supports standard and flexible and search_api) [15] us-west3 (supports standard and flexible and search_api) [16] us-west4 (supports standard and flexible and search_api) [17] cancel Please enter your numeric choice: 7 Creating App Engine application in project [qwiklabs-gcp-01-6ea725a46545] and region [europe-west]....done. Success! The app is now created. Please use `gcloud app deploy` to deploy your first app. student_01_9988df4b28aa@cloudshell:~ (qwiklabs-gcp-01-6ea725a46545)$ git clone https://github.com/GoogleCloudPlatform/python-docs-samples Cloning into 'python-docs-samples'... remote: Enumerating objects: 108171, done. remote: Counting objects: 100% (784/784), done. remote: Compressing objects: 100% (515/515), done. remote: Total 108171 (delta 347), reused 590 (delta 241), pack-reused 107387 Receiving objects: 100% (108171/108171), 216.00 MiB | 3.63 MiB/s, done. Resolving deltas: 100% (64651/64651), done. student_01_9988df4b28aa@cloudshell:~ (qwiklabs-gcp-01-6ea725a46545)$ cd python-docs-samples/appengine/standard_python3/hello_world student_01_9988df4b28aa@cloudshell:~/python-docs-samples/appengine/standard_python3/hello_world (qwiklabs-gcp-01-6ea725a46545)$ touch Dockerfile student_01_9988df4b28aa@cloudshell:~/python-docs-samples/appengine/standard_python3/hello_world (qwiklabs-gcp-01-6ea725a46545)$ student_01_9988df4b28aa@cloudshell:~/python-docs-samples/appengine/standard_python3/hello_world (qwiklabs-gcp-01-6ea725a46545)$ student_01_9988df4b28aa@cloudshell:~/python-docs-samples/appengine/standard_python3/hello_world (qwiklabs-gcp-01-6ea725a46545)$ ls app.yaml Dockerfile main.py main_test.py requirements-test.txt requirements.txt student_01_9988df4b28aa@cloudshell:~/python-docs-samples/appengine/standard_python3/hello_world (qwiklabs-gcp-01-6ea725a46545)$ cat Dockerfile FROM python:3.7 WORKDIR /app COPY . . RUN pip install gunicorn RUN pip install -r requirements.txt ENV PORT=8080 CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 main:appstudent_01_9988df4b28aa@cloudshell:~/python-docs-samples/appengine/standard_python3/hello_world (qwiklabs-gcp-01-6ea725a46545)$ cat Dockerfile FROM python:3.7 WORKDIR /app COPY . . RUN pip install gunicorn RUN pip install -r requirements.txt ENV PORT=8080 CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 main:app student_01_9988df4b28aa@cloudshell:~/python-docs-samples/appengine/standard_python3/hello_world (qwiklabs-gcp-01-6ea725a46545)$ docker build -t test-python . [+] Building 24.5s (9/9) FINISHED docker:default => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 217B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load metadata for docker.io/library/python:3.7 0.9s => [1/5] FROM docker.io/library/python:3.7@sha256:eedf63967cdb57d8214db38ce21f105003ed4e4d0358f02bedc057341bcf92a0 18.2s => => resolve docker.io/library/python:3.7@sha256:eedf63967cdb57d8214db38ce21f105003ed4e4d0358f02bedc057341bcf92a0 0.0s => => sha256:eedf63967cdb57d8214db38ce21f105003ed4e4d0358f02bedc057341bcf92a0 1.86kB / 1.86kB 0.0s => => sha256:2011a37d2a08fe83dd9ff923e0f83bfd7290152e2e6afe359bde1453170d9bdc 2.01kB / 2.01kB 0.0s => => sha256:16d93ae3411be3db255b6b52fdfc155a0dff0f697c2e4e3d862caf8d978830b2 8.13kB / 8.13kB 0.0s => => sha256:b47a222d28fa95680198398973d0a29b82a968f03e7ef361cc8ded562e4d84a3 24.03MB / 24.03MB 0.3s => => sha256:debce5f9f3a9709885f7f2ad3cf41f036a3b57b406b27ba3a883928315787042 64.11MB / 64.11MB 0.9s => => sha256:167b8a53ca4504bc6aa3182e336fa96f4ef76875d158c1933d3e2fa19c57e0c3 49.56MB / 49.56MB 0.7s => => sha256:1d7ca7cd2e066ae77ac6284a9d027f72a31a02a18bfc2a249ef2e7b01074338b 211.04MB / 211.04MB 2.9s => => sha256:ff3119008f58beef8f336fa833707b0fe914db94ca6b7bb55abe3e1bf2b1ad56 6.39MB / 6.39MB 1.0s => => extracting sha256:167b8a53ca4504bc6aa3182e336fa96f4ef76875d158c1933d3e2fa19c57e0c3 2.9s => => sha256:e1c98ca4926a91839805ce76d76a70225e303007331ee60f45dfabbbf55fd8c8 244B / 244B 1.0s => => sha256:c2423a76a32b7ffb2ee7bb6d1e0c74bb1811237eddcb3200594daf7a52d4f378 14.70MB / 14.70MB 1.3s => => sha256:3b62c8e1d79b6554a8bffcf196ff5dd822858c179f1f8dc6f0c74a288859a6fb 2.85MB / 2.85MB 1.2s => => extracting sha256:b47a222d28fa95680198398973d0a29b82a968f03e7ef361cc8ded562e4d84a3 0.7s => => extracting sha256:debce5f9f3a9709885f7f2ad3cf41f036a3b57b406b27ba3a883928315787042 3.0s => => extracting sha256:1d7ca7cd2e066ae77ac6284a9d027f72a31a02a18bfc2a249ef2e7b01074338b 8.2s => => extracting sha256:ff3119008f58beef8f336fa833707b0fe914db94ca6b7bb55abe3e1bf2b1ad56 0.3s => => extracting sha256:c2423a76a32b7ffb2ee7bb6d1e0c74bb1811237eddcb3200594daf7a52d4f378 0.6s => => extracting sha256:e1c98ca4926a91839805ce76d76a70225e303007331ee60f45dfabbbf55fd8c8 0.0s => => extracting sha256:3b62c8e1d79b6554a8bffcf196ff5dd822858c179f1f8dc6f0c74a288859a6fb 0.3s => [internal] load build context 0.0s => => transferring context: 3.16kB 0.0s => [2/5] WORKDIR /app 1.5s => [3/5] COPY . . 0.0s => [4/5] RUN pip install gunicorn 2.8s => ERROR [5/5] RUN pip install -r requirements.txt 0.9s ------ > [5/5] RUN pip install -r requirements.txt: 0.784 ERROR: Ignored the following versions that require a different python version: 2.3.0 Requires-Python >=3.8; 2.3.1 Requires-Python >=3.8; 2.3.2 Requires-Python >=3.8; 2.3.3 Requires-Python >=3.8; 3.0.0 Requires-Python >=3.8 0.785 ERROR: Could not find a version that satisfies the requirement Flask==3.0.0 (from versions: 0.1, 0.2, 0.3, 0.3.1, 0.4, 0.5, 0.5.1, 0.5.2, 0.6, 0.6.1, 0.7, 0.7.1, 0.7.2, 0.8, 0.8.1, 0.9, 0.10, 0.10.1, 0.11, 0.11.1, 0.12, 0.12.1, 0.12.2, 0.12.3, 0.12.4, 0.12.5, 1.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 2.0.0rc1, 2.0.0rc2, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.2.4, 2.2.5) 0.785 ERROR: No matching distribution found for Flask==3.0.0 0.795 0.795 [notice] A new release of pip is available: 23.0.1 -> 23.3.1 0.795 [notice] To update, run: pip install --upgrade pip ------ Dockerfile:5 -------------------- 3 | COPY . . 4 | RUN pip install gunicorn 5 | >>> RUN pip install -r requirements.txt 6 | ENV PORT=8080 7 | CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 main:app -------------------- ERROR: failed to solve: process "/bin/sh -c pip install -r requirements.txt" did not complete successfully: exit code: 1 student_01_9988df4b28aa@cloudshell:~/python-docs-samples/appengine/standard_python3/hello_world (qwiklabs-gcp-01-6ea725a46545)$
Norbert N. · 评论10 months之前
Akshaya R. · 评论10 months之前
Auth error did not work
Lori P. · 评论10 months之前
MOHD A. · 评论10 months之前
Iris Mabelle C. · 评论10 months之前
Their is an issue with Flask dependency. ERROR: No matching distribution found for Flask==3.0.0
Anshul K. · 评论10 months之前
Erasmo A. · 评论10 months之前
Sumit V. · 评论10 months之前
Ricardo V. · 评论10 months之前
Ricardo V. · 评论10 months之前
Anntinu J. · 评论10 months之前
Diogo K. · 评论10 months之前
This tutorial is buggy. The Dockerfile instructions will result in an error (2023/11/22) because the Flask version is not available for the Python version used. In Task 2, the instructions state to click the Navigation Menu and choose App Engine, though that service isn't displayed in the Navigation Menu by default. The timing of 20:00 is too short to be able to finish this tutorial on time.
Maarten V. · 评论10 months之前
Yosua K. · 评论10 months之前
Jyotshna M. · 评论10 months之前
Sudesh K. · 评论10 months之前
徹也 沖. · 评论10 months之前
Python version is incorrect on the guide
Mio A. · 评论10 months之前
Ganesh B. · 评论10 months之前
Hugo R. · 评论10 months之前
Juvy Marie I. · 评论10 months之前
Ganesh B. · 评论10 months之前
UDYOT V. · 评论10 months之前
Jyotshna M. · 评论10 months之前
我们无法确保发布的评价来自已购买或已使用产品的消费者。评价未经 Google 核实。