Skip to content

Commit

Permalink
Merge pull request #4 from s3lva-kumar/master
Browse files Browse the repository at this point in the history
master
  • Loading branch information
s3lva-kumar committed Oct 4, 2023
2 parents 193b53a + a482520 commit de914d9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -401,3 +401,11 @@
]
```

## Build the Docker Image:
- Once run the Terraform module it will setup the VPC connector, Filestore, and Cloud Run. Then, you get the filestore nfs mount ip with share file (like ip:/fileshare).
- Open the Dockerfile and add the following command alongwith the entrypoint or cmd " mount -o nolock FILESTORE_IP_ADDRESS:/FILE_SHARE_NAME MNT_DIR " (ex: like your CMD is "npm run start", you can add the mount command like this "CMD mount -o nolock $FILESTORE_IP_ADDRESS:/$FILE_SHARE_NAME $MNT_DIR && npm run start")
- Afterware, Build the docker image and push it to GCP Artifact hub
- Once pushed, replace that docker image link into the cloud run module and run again the terraform apply.
*Note: When we try to mount the filestore with cloudrun you have to choose the "Execution environment" is "
Second generation". on cloud run module*

0 comments on commit de914d9

Please sign in to comment.