Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 61fd331

Browse files
authored
Force docker compose to run serially (#137)
1 parent 8ec8e98 commit 61fd331

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ jobs:
4040
- run: curl -LO "https://github.com/protocolbuffers/protobuf/releases/download/v22.2/protoc-22.2-linux-x86_64.zip"
4141
- run: unzip protoc-22.2-linux-x86_64.zip -d /tmp/grpc
4242
- run: echo "/tmp/grpc/bin" >> $GITHUB_PATH
43-
- run: curl -L "https://github.com/docker/compose/releases/download/v2.36./docker-compose-$(uname -s)-$(uname -m)" -o ./docker-compose
44-
- run: chmod 700 ./docker-compose
45-
- run: export PATH=$PWD:$PATH
4643
# install project deps
4744
- run: npm install
4845
# run tests

.github/workflows/release.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ jobs:
3535
- run: curl -LO "https://github.com/protocolbuffers/protobuf/releases/download/v22.2/protoc-22.2-linux-x86_64.zip"
3636
- run: unzip protoc-22.2-linux-x86_64.zip -d /tmp/grpc
3737
- run: echo "/tmp/grpc/bin" >> $GITHUB_PATH
38-
- run: curl -L "https://github.com/docker/compose/releases/download/v2.36./docker-compose-$(uname -s)-$(uname -m)" -o ./docker-compose
39-
- run: chmod 700 ./docker-compose
40-
- run: export PATH=$PWD:$PATH
4138
- run: npm install
4239
# run unit tests
4340
- run: COHERENCE_VERSION=22.06.11 npm run test-cycle

bin/docker-utils.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ echo ${TYPE}
1616

1717
function coh_up() {
1818
echo "Starting test containers ..."
19-
DOCKER_REGISTRY="${REGISTRY}" COHERENCE_VERSION="${VERSION}" COHERENCE_TYPE="${TYPE}" docker compose -f etc/docker-compose-2-members.yaml up --force-recreate --renew-anon-volumes -d
19+
DOCKER_REGISTRY="${REGISTRY}" COHERENCE_VERSION="${VERSION}" COHERENCE_TYPE="${TYPE}" docker compose --parallel 1 -f etc/docker-compose-2-members.yaml up --force-recreate --renew-anon-volumes -d
2020
SECONDS=0
2121
echo "Waiting for Coherence to be healthy (within 60s) ..."
2222
while [ ${SECONDS} -le 60 ]; do
@@ -29,7 +29,7 @@ function coh_up() {
2929
done
3030
node_version=$(node -v)
3131
filename="logs-startup-${VERSION}-${node_version}.txt"
32-
DOCKER_REGISTRY="${REGISTRY}" COHERENCE_VERSION="${VERSION}" COHERENCE_TYPE="${TYPE}" docker compose -f etc/docker-compose-2-members.yaml logs --no-color > "${filename}"
32+
DOCKER_REGISTRY="${REGISTRY}" COHERENCE_VERSION="${VERSION}" COHERENCE_TYPE="${TYPE}" docker compose --parallel 1 -f etc/docker-compose-2-members.yaml logs --no-color > "${filename}"
3333
echo "Coherence failed to become healthy. See ${filename} for details."
3434
coh_down
3535
exit 1

0 commit comments

Comments
 (0)