Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated docker scripts & loadbalancer config (#81)
* docker: added more params to wait script * docker: added rest app with load balancer config * docker: made docker start script more intelligent * docker: added wait script to all ui configs to ensure proper initialization * docker: updated docker start scripts * docker: updated docker configs * docker: added stop and remove all flowable containers script * Flowable REST: changed default container port: 8080
- Loading branch information
1 parent
cd30302
commit 65c1c0d
Showing
42 changed files
with
499 additions
and
99 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
DOCKER_COMPOSE_FILE="../modules/flowable-ui-admin/src/main/docker/app.yml" | ||
|
||
if [ -z "$1" ] | ||
then | ||
echo -e "Usage: \n${0##*/} start \n${0##*/} stop \n${0##*/} info" | ||
exit 1 | ||
fi | ||
|
||
if [ $1 == start ] | ||
then | ||
docker-compose -f $DOCKER_COMPOSE_FILE up -d | ||
STATUS=$? | ||
if [ $STATUS -eq 0 ] | ||
then | ||
echo -e "\nContainers starting in background \nFor log info: ${0##*/} info" | ||
else | ||
echo -e "\nFailed starting containers" | ||
fi | ||
elif [ $1 == stop ] | ||
then | ||
docker-compose -f $DOCKER_COMPOSE_FILE down | ||
STATUS=$? | ||
if [ $STATUS -eq 0 ] | ||
then | ||
echo -e "\nContainers successfully stopped" | ||
else | ||
echo -e "\nFailed stopping containers" | ||
fi | ||
elif [ $1 == info ] | ||
then | ||
docker-compose -f $DOCKER_COMPOSE_FILE logs --follow | ||
else | ||
echo -e "Usage: \n${0##*/} start \n${0##*/} stop \n${0##*/} info" | ||
exit 1 | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
version: '2' | ||
services: | ||
flowable-rest-app: | ||
image: flowable/flowable-rest | ||
depends_on: | ||
- flowable-db | ||
environment: | ||
- datasource.driver=org.postgresql.Driver | ||
- datasource.url=jdbc:postgresql://flowable-db:5432/flowable | ||
- datasource.username=flowable | ||
- datasource.password=flowable | ||
- rest.docs.swagger.enabled=false | ||
expose: | ||
- "9977" | ||
entrypoint: ["./wait-for-something.sh", "flowable-db", "5432", "PostgreSQL", "java", "-jar", "flowable-rest.jar", "-httpPort=9977", "-httpProtocol=org.apache.coyote.http11.Http11NioProtocol"] | ||
flowable-db: | ||
extends: | ||
file: postgres.yml | ||
service: flowable-postgres | ||
flowable-lb: | ||
image: dockercloud/haproxy | ||
links: | ||
- flowable-rest-app | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
environment: | ||
- STATS_AUTH=flowable:flowable | ||
ports: | ||
- 8080:80 | ||
- 8081:1936 |
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,33 @@ | ||
#!/bin/bash | ||
DOCKER_COMPOSE_FILE="../modules/flowable-ui-idm/flowable-ui-idm-app/src/main/docker/app.yml" | ||
|
||
if [ -z "$1" ] | ||
then | ||
echo -e "Usage: \n${0##*/} start \n${0##*/} stop \n${0##*/} info" | ||
exit 1 | ||
fi | ||
|
||
if [ $1 == start ] | ||
then | ||
docker-compose -f $DOCKER_COMPOSE_FILE up -d | ||
STATUS=$? | ||
if [ $STATUS -eq 0 ] | ||
then | ||
echo -e "\nContainers starting in background \nFor log info: ${0##*/} info" | ||
else | ||
echo -e "\nFailed starting containers" | ||
fi | ||
elif [ $1 == stop ] | ||
then | ||
docker-compose -f $DOCKER_COMPOSE_FILE down | ||
STATUS=$? | ||
if [ $STATUS -eq 0 ] | ||
then | ||
echo -e "\nContainers successfully stopped" | ||
else | ||
echo -e "\nFailed stopping containers" | ||
fi | ||
elif [ $1 == info ] | ||
then | ||
docker-compose -f $DOCKER_COMPOSE_FILE logs --follow | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#!/bin/bash | ||
DOCKER_COMPOSE_FILE="config/loadbalancer-rest-postgres.yml" | ||
|
||
if [ -z "$1" ] | ||
then | ||
echo -e "Usage: \n${0##*/} start \n${0##*/} stop \n${0##*/} scale [number-of-instances] \n${0##*/} info \n\nHAProxy statistics on http://localhost:8081 (flowable/flowable)" | ||
exit 1 | ||
fi | ||
|
||
if [ $1 == start ] | ||
then | ||
docker-compose -f $DOCKER_COMPOSE_FILE up -d | ||
STATUS=$? | ||
if [ $STATUS -eq 0 ] | ||
then | ||
echo -e "\nContainers starting in background \nFor log info: \n${0##*/} info" | ||
else | ||
echo -e "\nFailed starting containers" | ||
fi | ||
elif [ $1 == stop ] | ||
then | ||
docker-compose -f $DOCKER_COMPOSE_FILE down | ||
STATUS=$? | ||
if [ $STATUS -eq 0 ] | ||
then | ||
echo -e "\nContainers successfully stopped" | ||
else | ||
echo -e "\nFailed stopping containers" | ||
fi | ||
elif [ $1 == info ] | ||
then | ||
docker-compose -f $DOCKER_COMPOSE_FILE logs --follow | ||
elif [ $1 == scale ] | ||
then | ||
if [ -z "$2" ] | ||
then | ||
echo -e "Number of total instances missing; f.e.: \n${0##*/} scale 2" | ||
exit 1 | ||
else | ||
docker-compose -f $DOCKER_COMPOSE_FILE scale flowable-rest-app=$2 | ||
STATUS=$? | ||
if [ $STATUS -eq 0 ] | ||
then | ||
echo -e "\nServices scaling out in background \nFor log info: \n${0##*/} info" | ||
else | ||
echo -e "\nFailed scaling out services" | ||
fi | ||
fi | ||
else | ||
echo -e "Usage: \n${0##*/} start \n${0##*/} stop \n${0##*/} info" | ||
exit 1 | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
DOCKER_COMPOSE_FILE="../modules/flowable-ui-modeler/flowable-ui-modeler-app/src/main/docker/app.yml" | ||
|
||
if [ -z "$1" ] | ||
then | ||
echo -e "Usage: \n${0##*/} start \n${0##*/} stop \n${0##*/} info" | ||
exit 1 | ||
fi | ||
|
||
if [ $1 == start ] | ||
then | ||
docker-compose -f $DOCKER_COMPOSE_FILE up -d | ||
STATUS=$? | ||
if [ $STATUS -eq 0 ] | ||
then | ||
echo -e "\nContainers starting in background \nFor log info: ${0##*/} info" | ||
else | ||
echo -e "\nFailed starting containers" | ||
fi | ||
elif [ $1 == stop ] | ||
then | ||
docker-compose -f $DOCKER_COMPOSE_FILE down | ||
STATUS=$? | ||
if [ $STATUS -eq 0 ] | ||
then | ||
echo -e "\nContainers successfully stopped" | ||
else | ||
echo -e "\nFailed stopping containers" | ||
fi | ||
elif [ $1 == info ] | ||
then | ||
docker-compose -f $DOCKER_COMPOSE_FILE logs --follow | ||
else | ||
echo -e "Usage: \n${0##*/} start \n${0##*/} stop \n${0##*/} info" | ||
exit 1 | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
DOCKER_COMPOSE_FILE="config/modeler-task-idm-admin-postgres.yml" | ||
|
||
if [ -z "$1" ] | ||
then | ||
echo -e "Usage: \n${0##*/} start \n${0##*/} stop \n${0##*/} info" | ||
exit 1 | ||
fi | ||
|
||
if [ $1 == start ] | ||
then | ||
docker-compose -f $DOCKER_COMPOSE_FILE up -d | ||
STATUS=$? | ||
if [ $STATUS -eq 0 ] | ||
then | ||
echo -e "\nContainers starting in background \nFor log info: ${0##*/} info" | ||
else | ||
echo -e "\nFailed starting containers" | ||
fi | ||
elif [ $1 == stop ] | ||
then | ||
docker-compose -f $DOCKER_COMPOSE_FILE down | ||
STATUS=$? | ||
if [ $STATUS -eq 0 ] | ||
then | ||
echo -e "\nContainers successfully stopped" | ||
else | ||
echo -e "\nFailed stopping containers" | ||
fi | ||
elif [ $1 == info ] | ||
then | ||
docker-compose -f $DOCKER_COMPOSE_FILE logs --follow | ||
else | ||
echo -e "Usage: \n${0##*/} start \n${0##*/} stop \n${0##*/} info" | ||
exit 1 | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
DOCKER_COMPOSE_FILE="config/rest-idm-admin-postgres.yml" | ||
|
||
if [ -z "$1" ] | ||
then | ||
echo -e "Usage: \n${0##*/} start \n${0##*/} stop \n${0##*/} info" | ||
exit 1 | ||
fi | ||
|
||
if [ $1 == start ] | ||
then | ||
docker-compose -f $DOCKER_COMPOSE_FILE up -d | ||
STATUS=$? | ||
if [ $STATUS -eq 0 ] | ||
then | ||
echo -e "\nContainers starting in background \nFor log info: ${0##*/} info" | ||
else | ||
echo -e "\nFailed starting containers" | ||
fi | ||
elif [ $1 == stop ] | ||
then | ||
docker-compose -f $DOCKER_COMPOSE_FILE down | ||
STATUS=$? | ||
if [ $STATUS -eq 0 ] | ||
then | ||
echo -e "\nContainers successfully stopped" | ||
else | ||
echo -e "\nFailed stopping containers" | ||
fi | ||
elif [ $1 == info ] | ||
then | ||
docker-compose -f $DOCKER_COMPOSE_FILE logs --follow | ||
else | ||
echo -e "Usage: \n${0##*/} start \n${0##*/} stop \n${0##*/} info" | ||
exit 1 | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
DOCKER_COMPOSE_FILE="../modules/flowable-app-rest/src/main/docker/app.yml" | ||
|
||
if [ -z "$1" ] | ||
then | ||
echo -e "Usage: \n${0##*/} start \n${0##*/} stop \n${0##*/} info" | ||
exit 1 | ||
fi | ||
|
||
if [ $1 == start ] | ||
then | ||
docker-compose -f $DOCKER_COMPOSE_FILE up -d | ||
STATUS=$? | ||
if [ $STATUS -eq 0 ] | ||
then | ||
echo -e "\nContainers starting in background \nFor log info: ${0##*/} info" | ||
else | ||
echo -e "\nFailed starting containers" | ||
fi | ||
elif [ $1 == stop ] | ||
then | ||
docker-compose -f $DOCKER_COMPOSE_FILE down | ||
STATUS=$? | ||
if [ $STATUS -eq 0 ] | ||
then | ||
echo -e "\nContainers successfully stopped" | ||
else | ||
echo -e "\nFailed stopping containers" | ||
fi | ||
elif [ $1 == info ] | ||
then | ||
docker-compose -f $DOCKER_COMPOSE_FILE logs --follow | ||
else | ||
echo -e "Usage: \n${0##*/} start \n${0##*/} stop \n${0##*/} info" | ||
exit 1 | ||
fi |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.