diff --git a/README.md b/README.md index 6151728..fc0a6a0 100644 --- a/README.md +++ b/README.md @@ -43,8 +43,15 @@ For offline Installtion,where theres no Intenet acess, 1. Move to directory of the Unziped OpenELIS-Global Docker Installer file cd OpenELIS-Global__docker_installer -1. Load the images and start the containers by running + +1. For installing OpenELIS-Global2 the first time ,Load the images and start the containers by running ./run.sh +1. For Upgrading OpenELIS-Global2 with an existing docker installer ,only Load the images in the new docker installer and re-satrt Global Global containers in your existing old Docker installer + + ./upgrade.sh + + + diff --git a/build.sh b/build.sh index a002784..19dbcf6 100755 --- a/build.sh +++ b/build.sh @@ -29,6 +29,7 @@ createLinuxInstaller() { mkdir -p ${INSTALLER_CREATION_DIR}/${installerName}/dockerImage mkdir -p ${INSTALLER_CREATION_DIR}/${installerName}/volumes cp ./install/run.sh ${INSTALLER_CREATION_DIR}/${installerName}/run.sh + cp ./install/upgrade.sh ${INSTALLER_CREATION_DIR}/${installerName}/upgrade.sh cp docker-compose.yml ${INSTALLER_CREATION_DIR}/${installerName}/docker-compose.yml cp -r volumes/* ${INSTALLER_CREATION_DIR}/${installerName}/volumes cp OpenELIS-Global_DockerImage.tar.gz ${INSTALLER_CREATION_DIR}/${installerName}/dockerImage/OpenELIS-Global_DockerImage.tar.gz diff --git a/docker-compose.yml b/docker-compose.yml index c51372d..207cada 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -51,7 +51,7 @@ services: - ./volumes/database/database.env volumes: # preserves the database between containers - - db-data:/var/lib/postgresql/data + - ./volumes/database/data:/var/lib/postgresql/data # files here will run on install - ./volumes/database/dbInit:/docker-entrypoint-initdb.d logging: *local-logging diff --git a/install/upgrade.sh b/install/upgrade.sh new file mode 100755 index 0000000..118b4ae --- /dev/null +++ b/install/upgrade.sh @@ -0,0 +1,12 @@ +#!/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 + + +