🎥 Make videos programmatically with React
instructions for Cloud Run
Matt Mcgillivray743be084ebe6
diff --git a/packages/gcp/readme.md b/packages/gcp/readme.mdindex 50e15f56bd..82cdde4aeb 100644--- a/packages/gcp/readme.md+++ b/packages/gcp/readme.md@@ -1,4 +1,16 @@-`pnpm run start` will trigger a build command, which will compile the typescript into dist folder as javascript. It will then start the server.+`pnpm run buildlambda` will trigger a build command, which will bundle all the required code into one index.js file, and place it in `./container/dist/index.js`.-In the Dockerfile, adding Chromium via `ADD ./chromium-x64 /opt/bin/chromium`-in index.ts, `readdirSync('/opt/bin/chromium/bin').forEach(` lists all the files as expected, so we know the binary is being copied in there.\ No newline at end of file++the `/container` folder contains a package.json that lists functions-framework as a dependency, and a Dockerfile that will build a container. Functions-framework is a nodejs framework that allows you to run nodejs code in a containerized environment.++This container can be built and run locally, using+`docker build -t umungobungo/gcp-bundle-0.0.3 .`++Or, it can be deployed to Cloud Run. Cloud Run is a serverless container platform that allows you to run containers in a managed environment.++### Push image to Google Container Registry+To start, you need to create a project in the Google Cloud Console, and create a repository in the Google Container Registry, and push the container to the registry using+`gcloud builds submit --tag australia-southeast1-docker.pkg.dev/remotion-lambda/repo1/docker:0.0.1`++### Deploy to Cloud Run+Navigate to Cloud Run, and click "Create Service". Select "Container Registry", and select the image you just pushed. You can select `Allow unauthenticated invocations` to ignore security for now. Click "Create".