-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from mozzy11/main
UPdate Docker installer
- Loading branch information
Showing
6 changed files
with
54 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
cd dockerImage | ||
gunzip -c OpenELIS-Global_DockerImage.tar.gz | docker load | ||
gunzip -c Postgres_DockerImage.tar.gz | docker load | ||
gunzip -c JPAServer_DockerImage.tar.gz | docker load | ||
gunzip -c AutoHeal_DockerImage.tar.gz | docker load | ||
gunzip -c NGINX_DockerImage.tar.gz | docker load | ||
gunzip -c ReactFrontend_DockerImage.tar.gz | docker load | ||
gunzip -c Certs_DockerImage.tar.gz | docker load | ||
|
||
cd .. | ||
|
||
# Check Docker version | ||
docker_version=$(docker --version | awk '{print $3}' | sed 's/,//') | ||
major_version=$(echo "$docker_version" | cut -d'.' -f1) | ||
|
||
# Check if major version is 20 or higher (Docker CLI v2.x+) | ||
if [[ "$major_version" -ge 20 ]]; then | ||
# Use "docker compose" (no dash) | ||
compose_command="docker compose" | ||
else | ||
# Use "docker-compose" (with dash) | ||
compose_command="docker-compose" | ||
fi | ||
|
||
# Run docker-compose up -d or docker compose up -d based on version | ||
$compose_command up -d | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ gunzip -c ReactFrontend_DockerImage.tar.gz | docker load | |
gunzip -c Certs_DockerImage.tar.gz | docker load | ||
|
||
|
||
|