filmov
tv
HOW TO: Run Docker Container On Google Cloud Run 2023 (FREE*)
Показать описание
*FREE tier (see explanation below)
- CPU: First 180,000 vCPU-seconds free per month
- Memory: First 360,000 GiB-seconds free per month
- Requests: 2 million requests free per month
--------------------------------------------------------------------------------------
Steps:
• Create a repo on Docker hub
• Tag your existing image using the docker hub username and repo name:
`docker tag existing-image hub-user/repo-name[:tag]`
• Now you can push this repository to the registry designated by its name or tag.
`docker push hub-user/repo-name:tag`
• Public URL to the docker image is:
• Go to cloud run and click `Create Service`
• Enter the Container image URL:
• Enter port: 8501 (same as the one specified in Dockerfile)
• Select the region that will be closest to the intended customers’ location.
• Keep everything else as default.
• Click Deploy
• You will get an HTTPS URL.
--------------------------------------------------------------------------------------
Explanation about units in cloud run:
- Units: vCPU-seconds/month; GB-seconds/month; requests/month; GB egress/month
- For example, if you specified each machine to have 2 CPU cores with 1GB of RAM. And it serves for 150,000 seconds (counted only when it's processing something, which means you will not be billed when no one is making requests). That will be counted as 2x150,000 vCPU-seconds and 150,000 GB-seconds.
- Requests are the number of times the container was reached successfully.
- GB egress is the amount of outgoing data.
- CPU: First 180,000 vCPU-seconds free per month
- Memory: First 360,000 GiB-seconds free per month
- Requests: 2 million requests free per month
--------------------------------------------------------------------------------------
Steps:
• Create a repo on Docker hub
• Tag your existing image using the docker hub username and repo name:
`docker tag existing-image hub-user/repo-name[:tag]`
• Now you can push this repository to the registry designated by its name or tag.
`docker push hub-user/repo-name:tag`
• Public URL to the docker image is:
• Go to cloud run and click `Create Service`
• Enter the Container image URL:
• Enter port: 8501 (same as the one specified in Dockerfile)
• Select the region that will be closest to the intended customers’ location.
• Keep everything else as default.
• Click Deploy
• You will get an HTTPS URL.
--------------------------------------------------------------------------------------
Explanation about units in cloud run:
- Units: vCPU-seconds/month; GB-seconds/month; requests/month; GB egress/month
- For example, if you specified each machine to have 2 CPU cores with 1GB of RAM. And it serves for 150,000 seconds (counted only when it's processing something, which means you will not be billed when no one is making requests). That will be counted as 2x150,000 vCPU-seconds and 150,000 GB-seconds.
- Requests are the number of times the container was reached successfully.
- GB egress is the amount of outgoing data.
Комментарии