Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e42ea58

Browse filesBrowse files
chore(cloudrun): migrate region tags for dockerfiles and yaml from run folder - part 1 (GoogleCloudPlatform#13095)
* chore(cloudrun): create new region tags for run/django/cloudmigrate.py * chore(cloudrun): migrate region tags in run/hello-broken/Dockerfile * chore(cloudrun): migrate region tags in run/helloworld/Dockerfile * chore(cloudrun): migrate region tags in run/image-processing/Dockerfile
1 parent 128893b commit e42ea58
Copy full SHA for e42ea58

File tree

Expand file treeCollapse file tree

4 files changed

+8
-4
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+8
-4
lines changed

‎run/django/cloudmigrate.yaml

Copy file name to clipboardExpand all lines: run/django/cloudmigrate.yaml
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
# [START cloudrun_django_cloudmigrate_yaml_python]
1516
# [START cloudrun_django_cloudmigrate]
1617
steps:
1718
- id: "Build Container Image"
@@ -69,3 +70,4 @@ substitutions:
6970
images:
7071
- "${_IMAGE_NAME}"
7172
# [END cloudrun_django_cloudmigrate]
73+
# [END cloudrun_django_cloudmigrate_yaml_python]

‎run/hello-broken/Dockerfile

Copy file name to clipboardExpand all lines: run/hello-broken/Dockerfile
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
# [START cloudrun_broken_dockerfile_python]
1516
# [START cloudrun_broken_dockerfile]
16-
# [START run_broken_dockerfile]
1717

1818
# Use the official Python image.
1919
# https://hub.docker.com/_/python
@@ -41,5 +41,5 @@ COPY . ./
4141
# Timeout is set to 0 to disable the timeouts of the workers to allow Cloud Run to handle instance scaling.
4242
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app
4343

44-
# [END run_broken_dockerfile]
4544
# [END cloudrun_broken_dockerfile]
45+
# [END cloudrun_broken_dockerfile_python]

‎run/helloworld/Dockerfile

Copy file name to clipboardExpand all lines: run/helloworld/Dockerfile
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
# [START cloudrun_helloworld_dockerfile_python]
1516
# [START cloudrun_helloworld_dockerfile]
1617

1718
# Use the official lightweight Python image.
@@ -37,3 +38,4 @@ RUN pip install --no-cache-dir -r requirements.txt
3738
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app
3839

3940
# [END cloudrun_helloworld_dockerfile]
41+
# [END cloudrun_helloworld_dockerfile_python]

‎run/image-processing/Dockerfile

Copy file name to clipboardExpand all lines: run/image-processing/Dockerfile
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ COPY requirements.txt ./
2626
# Install production dependencies.
2727
RUN pip install -r requirements.txt
2828

29+
# [START cloudrun_imageproc_imagemagick_dockerfile_python]
2930
# [START cloudrun_imageproc_dockerfile_imagemagick]
30-
# [START run_imageproc_dockerfile_imagemagick]
3131
# Install Imagemagick into the container image.
3232
# For more on system packages review the system packages tutorial.
3333
# https://cloud.google.com/run/docs/tutorials/system-packages#dockerfile
3434
RUN set -ex; \
3535
apt-get -y update; \
3636
apt-get -y install imagemagick; \
3737
rm -rf /var/lib/apt/lists/*
38-
# [END run_imageproc_dockerfile_imagemagick]
3938
# [END cloudrun_imageproc_dockerfile_imagemagick]
39+
# [END cloudrun_imageproc_imagemagick_dockerfile_python]
4040

4141
# Copy local code to the container image.
4242
ENV APP_HOME /app

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.