Skip to content

Commit

Permalink
chore(project): change docker compose command
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkelemen committed Aug 6, 2024
1 parent 5b7d54e commit 1157956
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ docker run -d --name camunda -p 8080:8080 -e SKIP_DB_CONFIG=true \

Starting the Camunda Platform Docker image requires the database to be already
available. This is quite a challenge when the database and Camunda Platform are
both docker containers spawned simultaneously, for example, by `docker-compose`
both docker containers spawned simultaneously, for example, by `docker compose`
or inside a Kubernetes Pod. To help with that, the Camunda Platform Docker image
includes [wait-for-it.sh](https://github.com/vishnubob/wait-for-it) to allow the
container to wait until a 'host:port' is ready. The mechanism can be configured
Expand Down
4 changes: 2 additions & 2 deletions test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )

cd ${DIR}
docker-compose up --force-recreate -d postgres mysql
docker compose up --force-recreate -d postgres mysql
./test-${DISTRO}.sh camunda
./test-${DISTRO}.sh camunda-mysql
./test-${DISTRO}.sh camunda-postgres
./test-${DISTRO}.sh camunda-password-file
./test-prometheus-jmx-${DISTRO}.sh camunda-prometheus-jmx
./test-debug.sh camunda-debug
docker-compose down -v
docker compose down -v
cd -
8 changes: 4 additions & 4 deletions test/test_helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ function _log {

function stop_container {
docker logs $(container_id)
docker-compose kill ${SERVICE}
docker-compose rm --force ${SERVICE}
docker compose kill ${SERVICE}
docker compose rm --force ${SERVICE}
}

function _exit {
Expand All @@ -18,11 +18,11 @@ function _exit {
}

function start_container {
docker-compose up -d --no-recreate ${SERVICE} || _exit 1 "Unable to start compose"
docker compose up -d --no-recreate ${SERVICE} || _exit 1 "Unable to start compose"
}

function container_id {
docker-compose ps -q ${SERVICE}
docker compose ps -q ${SERVICE}
}

function grep_log {
Expand Down

0 comments on commit 1157956

Please sign in to comment.