Skip to content

Commit e42ea58

Browse files
chore(cloudrun): migrate region tags for dockerfiles and yaml from run folder - part 1 (#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

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

run/django/cloudmigrate.yaml

Lines 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

Lines 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

Lines 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

Lines 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)