Goal
Be able to host a production instance of imgproxy on Google Cloud within minutes.
First time installation
-
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
- Copy the sha (i.e.
sha256:12345...54321
)
-
Head to
Cloud Run
-
Create Service
- Enter your service name (i.e.
xxxxx-imgproxy-production
) - Click
Allow unauthenticated invocations
- Hit Next, click
Select
on the input and search for the desired image- Alternatively, manually build the url and paste the sha (or
gcr.io/xxxxx-public-assets/imgproxy@sha256:12345...54321
)
- Alternatively, manually build the url and paste the sha (or
- Enter your service name (i.e.
-
Add any environment variables like
IMGPROXY_KEY
andIMGPROXY_SALT
Updating the image
-
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
- Copy the sha (i.e.
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- Alternatively, manually build the url and paste the sha (or
gcr.io/xxxxx-public-assets/imgproxy@sha256:12345...54321
)
- Alternatively, manually build the url and paste the sha (or