Be able to host a production instance of imgproxy on Google Cloud within minutes.
Open the Cloud Terminal
Follow the Before you begin
section listed here (https://cloud.google.com/container-registry/docs/pushing-and-pulling)
$ sudo usermod -a -G docker ${USER}
$ gcloud auth configure-docker
Pull the latest docker image (https://docs.imgproxy.net/#/installation)
$ docker pull darthsim/imgproxy:latest
Tag the container
$ docker tag darthsim/imgproxy gcr.io/xxxxx-public-assets/imgproxy
Push the container
$ docker push gcr.io/xxxxx-public-assets/imgproxy
sha256:12345...54321
)Head to Cloud Run
Create Service
xxxxx-imgproxy-production
)Allow unauthenticated invocations
Select
on the input and search for the desired image
gcr.io/xxxxx-public-assets/imgproxy@sha256:12345...54321
)Add any environment variables like IMGPROXY_KEY
and IMGPROXY_SALT
Open the Cloud Terminal
Follow the Before you begin
section listed here (https://cloud.google.com/container-registry/docs/pushing-and-pulling)
$ sudo usermod -a -G docker ${USER}
$ gcloud auth configure-docker
Pull the latest docker image (https://docs.imgproxy.net/#/installation)
$ docker pull darthsim/imgproxy:latest
Tag the container
$ docker tag darthsim/imgproxy gcr.io/xxxxx-public-assets/imgproxy
Push the container
$ docker push gcr.io/xxxxx-public-assets/imgproxy
sha256:12345...54321
)Head to Cloud Run
Click on the name of the service you wish to update (i.e. xxxxx-imgproxy-production
)
Click Edit & Depoly New Revision
at the top of the page
Slick Select
on the input and search for the desired image
gcr.io/xxxxx-public-assets/imgproxy@sha256:12345...54321
)