forked from moqui/moqui-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'moqui:master' into master
- Loading branch information
Showing
72 changed files
with
2,666 additions
and
819 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#! /bin/bash | ||
|
||
if [[ ! $1 ]]; then | ||
echo "Usage: ./build-compose-up.sh <docker compose file> [<moqui directory like ..>] [<runtime image like eclipse-temurin:11-jdk>]" | ||
exit 1 | ||
fi | ||
|
||
COMP_FILE="${1}" | ||
MOQUI_HOME="${2:-..}" | ||
NAME_TAG=moqui | ||
RUNTIME_IMAGE="${3:-eclipse-temurin:11-jdk}" | ||
|
||
if [ -f simple/docker-build.sh ]; then | ||
cd simple | ||
./docker-build.sh ../.. $NAME_TAG $RUNTIME_IMAGE | ||
# shellcheck disable=SC2103 | ||
cd .. | ||
fi | ||
|
||
if [ -f compose-up.sh ]; then | ||
./compose-up.sh $COMP_FILE $MOQUI_HOME $RUNTIME_IMAGE | ||
fi |
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 |
---|---|---|
@@ -1,21 +1,33 @@ | ||
#! /bin/bash | ||
|
||
if [[ ! $1 ]]; then | ||
echo "Usage: ./compose-up.sh <docker compose file> [<moqui directory>]" | ||
echo "Usage: ./compose-up.sh <docker compose file> [<moqui directory like ..>] [<runtime image like eclipse-temurin:11-jdk>]" | ||
exit 1 | ||
fi | ||
|
||
COMP_FILE="${1}" | ||
MOQUI_HOME="${2:-..}" | ||
NAME_TAG=moqui | ||
RUNTIME_IMAGE="${3:-eclipse-temurin:11-jdk}" | ||
|
||
# Note: If you don't have access to your conf directory while running this: | ||
# This will make it so that your docker/conf directory no longer has your configuration files in it. | ||
# This is because when docker-compose provisions a volume on the host it applies the host's data before the image's data. | ||
# - change docker compose's moqui-server conf volume path from ./runtime/conf to conf | ||
# - add a top level volumes: tag with conf: below | ||
# - remove the next block of if statements from this file and you should be good to go | ||
search_name=opensearch | ||
if [ -d runtime/opensearch/bin ]; then search_name=opensearch; | ||
elif [ -d runtime/elasticsearch/bin ]; then search_name=elasticsearch; | ||
fi | ||
if [ ! -e runtime ]; then mkdir runtime; fi | ||
if [ ! -e runtime/conf ]; then cp -R $MOQUI_HOME/runtime/conf runtime/; fi | ||
if [ ! -e runtime/lib ]; then cp -R $MOQUI_HOME/runtime/lib runtime/; fi | ||
if [ ! -e runtime/classes ]; then cp -R $MOQUI_HOME/runtime/classes runtime/; fi | ||
if [ ! -e runtime/log ]; then cp -R $MOQUI_HOME/runtime/log runtime/; fi | ||
if [ ! -e runtime/txlog ]; then cp -R $MOQUI_HOME/runtime/txlog runtime/; fi | ||
if [ ! -e runtime/db ]; then cp -R $MOQUI_HOME/runtime/db runtime/; fi | ||
if [ ! -e runtime/elasticsearch ]; then cp -R $MOQUI_HOME/runtime/elasticsearch runtime/; fi | ||
if [ ! -e runtime/$search_name ]; then cp -R $MOQUI_HOME/runtime/$search_name runtime/; fi | ||
|
||
# set the project name to 'moqui', network will be called 'moqui_default' | ||
docker-compose -f $COMP_FILE -p moqui up -d | ||
docker compose -f $COMP_FILE -p moqui up -d |
Oops, something went wrong.