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.**
20 lines
617 B
Bash
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 |