Skip to content

Commit

Permalink
From now on, download the JORE4 Docker Compose bundle from the
Browse files Browse the repository at this point in the history
"jore4-docker-compose-bundle" repository.
  • Loading branch information
jarkkoka committed Dec 20, 2024
1 parent f8bb503 commit 54a0627
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions development.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,22 @@ instruct_and_exit() {
}

download_docker_bundle() {
# based on https://github.com/HSLdevcom/jore4-tools#download-docker-bundlesh

echo "Downloading latest version of E2E docker-compose package..."
curl https://raw.githubusercontent.com/HSLdevcom/jore4-tools/main/docker/download-docker-bundle.sh | bash
# First, clean untracked files from `docker` directory even if they are
# git-ignored.
git clean -fx ./docker

echo "Downloading the latest version of the JORE4 E2E Docker Compose bundle..."

# Extract only the contents of the `docker-compose` directory inside the ZIP
# archive to the local `docker` directory. Includes a conditional option
# selection (--wildcards vs --include) because of the tar option differences
# between Linux (GNU) and macOS (BSD).
curl -L jore4-docker-compose-bundle.zip https://github.com/HSLdevcom/jore4-docker-compose-bundle/archive/refs/heads/main.zip \
| tar -xz \
-C ./docker \
--strip-components 2 \
$(if test $(uname) == 'Darwin'; then echo --include; else echo --wildcards; fi) \
'jore4-docker-compose-bundle-main/docker-compose/*'
}

start_all() {
Expand Down

0 comments on commit 54a0627

Please sign in to comment.