diff --git a/Dockerfile b/Dockerfile index 12db1b452f..0b95883070 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 - \ diff --git a/deploy/docker/entrypoint.sh b/deploy/docker/entrypoint.sh index 291d7e7797..697188bda6 100644 --- a/deploy/docker/entrypoint.sh +++ b/deploy/docker/entrypoint.sh @@ -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() {