create stackpath in cloudrun based deployment (#24457)
This will complete: [23522](https://github.com/appsmithorg/appsmith/issues/23522) Currently, when we deploy appsmith on cloudrun we see this error. This commit will fix this issue ``` 2023-06-14 12:32:10.513 IST Mounting File Sytem 2023-06-14 12:32:10.521 IST mount.nfs: mount point /appsmith-stacks does not exist 2023-06-14 12:32:10.533 IST Container called exit(32). ```
This commit is contained in:
parent
29b255405a
commit
fe8ef07021
|
|
@ -1,6 +1,9 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
stacks_path=/appsmith-stacks
|
||||||
|
|
||||||
# ip is a reserved keyword for tracking events in Mixpanel. Instead of showing the ip as is Mixpanel provides derived properties.
|
# ip is a reserved keyword for tracking events in Mixpanel. Instead of showing the ip as is Mixpanel provides derived properties.
|
||||||
# As we want derived props alongwith the ip address we are sharing the ip address in separate keys
|
# As we want derived props alongwith the ip address we are sharing the ip address in separate keys
|
||||||
# https://help.mixpanel.com/hc/en-us/articles/360001355266-Event-Properties
|
# https://help.mixpanel.com/hc/en-us/articles/360001355266-Event-Properties
|
||||||
|
|
@ -28,6 +31,8 @@ if [[ -n "${FILESTORE_IP_ADDRESS-}" ]]; then
|
||||||
FILE_SHARE_NAME="$(echo "$FILE_SHARE_NAME" | xargs)"
|
FILE_SHARE_NAME="$(echo "$FILE_SHARE_NAME" | xargs)"
|
||||||
|
|
||||||
echo "Running appsmith for cloudRun"
|
echo "Running appsmith for cloudRun"
|
||||||
|
echo "creating mount point"
|
||||||
|
mkdir -p "$stacks_path"
|
||||||
echo "Mounting File Sytem"
|
echo "Mounting File Sytem"
|
||||||
mount -t nfs -o nolock "$FILESTORE_IP_ADDRESS:/$FILE_SHARE_NAME" /appsmith-stacks
|
mount -t nfs -o nolock "$FILESTORE_IP_ADDRESS:/$FILE_SHARE_NAME" /appsmith-stacks
|
||||||
echo "Mounted File Sytem"
|
echo "Mounted File Sytem"
|
||||||
|
|
@ -35,7 +40,6 @@ if [[ -n "${FILESTORE_IP_ADDRESS-}" ]]; then
|
||||||
export HOSTNAME="cloudrun"
|
export HOSTNAME="cloudrun"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
stacks_path=/appsmith-stacks
|
|
||||||
|
|
||||||
function get_maximum_heap() {
|
function get_maximum_heap() {
|
||||||
resource=$(ulimit -u)
|
resource=$(ulimit -u)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user