chore: update entrypoint to deploy appsmith on cloudrun (#23829)
Fixes: [23522](https://github.com/appsmithorg/appsmith/issues/23522) --------- Co-authored-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
This commit is contained in:
parent
8830c6d1fc
commit
a25e02b621
|
|
@ -13,7 +13,7 @@ ENV LC_ALL C.UTF-8
|
|||
RUN apt-get update \
|
||||
&& apt-get upgrade --yes \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --yes \
|
||||
supervisor curl cron certbot nginx gnupg wget netcat openssh-client \
|
||||
supervisor curl cron nfs-common certbot nginx gnupg wget netcat openssh-client \
|
||||
software-properties-common gettext \
|
||||
python3-pip python3-requests python-setuptools git ca-certificates-java \
|
||||
&& wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | apt-key add - \
|
||||
|
|
|
|||
|
|
@ -21,6 +21,20 @@ if [[ -n ${APPSMITH_SEGMENT_CE_KEY-} ]]; then
|
|||
|| true
|
||||
fi
|
||||
|
||||
if [[ -n "${FILESTORE_IP_ADDRESS-}" ]]; then
|
||||
|
||||
## Trim APPSMITH_FILESTORE_IP and FILE_SHARE_NAME
|
||||
FILESTORE_IP_ADDRESS="$(echo "$FILESTORE_IP_ADDRESS" | xargs)"
|
||||
FILE_SHARE_NAME="$(echo "$FILE_SHARE_NAME" | xargs)"
|
||||
|
||||
echo "Running appsmith for cloudRun"
|
||||
echo "Mounting File Sytem"
|
||||
mount -t nfs -o nolock "$FILESTORE_IP_ADDRESS:/$FILE_SHARE_NAME" /appsmith-stacks
|
||||
echo "Mounted File Sytem"
|
||||
echo "Setting HOSTNAME for Cloudrun"
|
||||
export HOSTNAME="cloudrun"
|
||||
fi
|
||||
|
||||
stacks_path=/appsmith-stacks
|
||||
|
||||
function get_maximum_heap() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user