PromucFlow_constructor/deploy/docker/fs/opt/appsmith/pull_resource.sh
Shrikant Sharat Kandula c594699eac
chore: Use single COPY command in Dockerfile for constant/static files (#27127)
Move the files that are copied into the Docker image, into an `fs`
folder, that reflects the folder structure of that in the image. This
means two things right away:

1. A single `COPY` instruction in `Dockerfile` is enough to copy all the
files to their places.
2. The structure of files in the repo reflects that in the Docker image.
This makes working with the files/folders and troubleshooting with them
much easier.

 Note: **There's actually only 3 files changed, rest are just moved.**
2023-09-11 08:43:09 +05:30

20 lines
617 B
Bash

#!/bin/bash
install_dir="$1"
echo "Installing Appsmith to '$install_dir'"
if [[ -d "$install_dir" && -n "$(ls -A "$install_dir")" ]]; then
echo "***************** ERROR *****************"
echo "Directory "$install_dir" exists"
exit 1
else
mkdir -p "$install_dir"
mkdir -p "$install_dir/stacks/configuration"
mkdir -p "$install_dir/stacks/data/restore"
mkdir -p "$install_dir/stacks/letsencrypt"
fi
echo "Start pull docker-compose.yml"
cd "$install_dir"
curl -s https://raw.githubusercontent.com/appsmithorg/appsmith/release/deploy/aws_ami/docker-compose.yml --output docker-compose.yml