- Add cd in script to allow external docker application dir call.

This commit is contained in:
Arnaud G. GIBERT 2025-08-06 10:07:00 +02:00
parent 925dda5d5b
commit 76d58b74a2
8 changed files with 28 additions and 2 deletions

View File

@ -1,8 +1,9 @@
------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/Docker Tools V 1.4.0 - A. GIBERT - 2025/04/XX
Rx3-Docker/Docker Tools V 1.4.0 - A. GIBERT - 2025/08/06
------------------------------------------------------------------------------------------------------------------------------------
- Add docker_network_up & docker_network_down scripts called by docker_start & docker_stop.
- Add docker_network_up & docker_network_down scripts called by docker_start & docker_stop,
- Add cd in script to allow external docker application dir call.

View File

@ -9,6 +9,9 @@ APPL_HOME_DIR="$(dirname "$(dirname "$0")")"
#-------------------------------------------------------------------------------
cd ${APPL_HOME_DIR}
sbin/docker_mk_env
docker compose build

View File

@ -9,4 +9,7 @@ APPL_HOME_DIR="$(dirname "$(dirname "$0")")"
#-------------------------------------------------------------------------------
cd ${APPL_HOME_DIR}
docker compose logs -f

View File

@ -3,6 +3,13 @@
#set -o errexit
APPL_HOME_DIR="$(dirname "$(dirname "$0")")"
#-------------------------------------------------------------------------------
cd ${APPL_HOME_DIR}
grep -e _LOG_ -e _LIB_ .env | grep -e _EXT= | while read line

View File

@ -9,6 +9,9 @@ APPL_HOME_DIR="$(dirname "$(dirname "$0")")"
#-------------------------------------------------------------------------------
cd ${APPL_HOME_DIR}
. .env
if [[ "${NETWORK_TABLE}" != "" ]]

View File

@ -9,6 +9,9 @@ APPL_HOME_DIR="$(dirname "$(dirname "$0")")"
#-------------------------------------------------------------------------------
cd ${APPL_HOME_DIR}
. .env
if [[ "${NETWORK_TABLE}" != "" ]]

View File

@ -9,6 +9,9 @@ APPL_HOME_DIR="$(dirname "$(dirname "$0")")"
#-------------------------------------------------------------------------------
cd ${APPL_HOME_DIR}
sbin/docker_mk_env
docker compose pull

View File

@ -9,6 +9,9 @@ APPL_HOME_DIR="$(dirname "$(dirname "$0")")"
#-------------------------------------------------------------------------------
cd ${APPL_HOME_DIR}
docker compose down
sbin/docker_network_down