Skip to content

Commit

Permalink
add support for docker compose v2 (fix #730)
Browse files Browse the repository at this point in the history
fix bugs in #1140

Signed-off-by: uniform64 <jiny2048@gmail.com>
  • Loading branch information
uniform641 authored and denyeart committed Dec 12, 2023
1 parent cdb126d commit 02d9f8c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test-network/addOrg3/addOrg3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export VERBOSE=false
. ../scripts/utils.sh

: ${CONTAINER_CLI:="docker"}
if command -v docker-compose > /dev/null 2>&1; then
if command -v ${CONTAINER_CLI}-compose > /dev/null 2>&1; then
: ${CONTAINER_CLI_COMPOSE:="${CONTAINER_CLI}-compose"}
else
: ${CONTAINER_CLI_COMPOSE:="${CONTAINER_CLI} compose"}
Expand Down
2 changes: 1 addition & 1 deletion test-network/network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ trap "popd > /dev/null" EXIT
. scripts/utils.sh

: ${CONTAINER_CLI:="docker"}
if command -v docker-compose > /dev/null 2>&1; then
if command -v ${CONTAINER_CLI}-compose > /dev/null 2>&1; then
: ${CONTAINER_CLI_COMPOSE:="${CONTAINER_CLI}-compose"}
else
: ${CONTAINER_CLI_COMPOSE:="${CONTAINER_CLI} compose"}
Expand Down
2 changes: 1 addition & 1 deletion test-network/scripts/createChannel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ BFT="$5"
: ${BFT:=0}

: ${CONTAINER_CLI:="docker"}
if command -v docker-compose > /dev/null 2>&1; then
if command -v ${CONTAINER_CLI}-compose > /dev/null 2>&1; then
: ${CONTAINER_CLI_COMPOSE:="${CONTAINER_CLI}-compose"}
else
: ${CONTAINER_CLI_COMPOSE:="${CONTAINER_CLI} compose"}
Expand Down
2 changes: 1 addition & 1 deletion test-network/scripts/deployCCAAS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ VERBOSE=${12:-"false"}
CCAAS_SERVER_PORT=9999

: ${CONTAINER_CLI:="docker"}
if command -v docker-compose > /dev/null 2>&1; then
if command -v ${CONTAINER_CLI}-compose > /dev/null 2>&1; then
: ${CONTAINER_CLI_COMPOSE:="${CONTAINER_CLI}-compose"}
else
: ${CONTAINER_CLI_COMPOSE:="${CONTAINER_CLI} compose"}
Expand Down

0 comments on commit 02d9f8c

Please sign in to comment.