Skip to content

Commit

Permalink
container names with candigv2_*_1
Browse files Browse the repository at this point in the history
  • Loading branch information
daisieh committed Nov 22, 2024
1 parent 910bea0 commit b339d8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions post_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ ALL_MODULES="${MODULES}"

EXPECTED_CONTAINERS=""
for MODULE in $ALL_MODULES; do
services=$(cat lib/$MODULE/docker-compose.yml | yq -ojson '.services' | jq 'keys' | jq -r @sh | sed s/\'//g)
services=$(cat lib/$MODULE/docker-compose.yml | yq -ojson '.services' | jq 'keys' | jq -r @sh | sed s/^\'/candigv2_/g | sed s/\'$/_1/g | sed "s/\' \'/_1 candigv2_/g")
EXPECTED_CONTAINERS=$(echo $EXPECTED_CONTAINERS $services)
sc=$(cat lib/$MODULE/docker-compose.yml | yq -ojson '.services' | jq 'keys' | jq -r @sh | wc -w | tr -d ' ')
done

EXPECTED_COUNT=$(echo $EXPECTED_CONTAINERS | wc -w)

RUNNING_CONTAINERS=$(docker ps --format "{{.Names}}" | sed s/candigv2_//g | sed s/_1//g)
RUNNING_CONTAINERS=$(docker ps --format "{{.Names}}")
RUNNING_COUNT=$(echo $RUNNING_CONTAINERS | wc -w)

# figure out any containers that should've been there but aren't
Expand Down

0 comments on commit b339d8a

Please sign in to comment.