Skip to content

Commit

Permalink
Replace create with up --no-start in docker tests (bugfix) (#1061)
Browse files Browse the repository at this point in the history
replace create with up --no-start

Here --no-start was used because removing --no-start and the subsequent start
seems to hang the test
  • Loading branch information
Hook25 authored Mar 13, 2024
1 parent 2202949 commit c192174
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions providers/docker/units/docker.pxu
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ command:
EOF
)
echo "$yml" | {compose_command} -f - pull
echo "$yml" | {compose_command} -f - create
echo "$yml" | {compose_command} -f - up --no-start
echo "$yml" | {compose_command} -f - start
ID=$(echo "$yml" | {compose_command} -f - ps -q test)
[ `docker inspect -f {status} $ID` != running ] && exit 1
Expand Down Expand Up @@ -446,11 +446,11 @@ command:
set -ex
compose_file={root_dir}/docker-compose-california-0.6.1.yml
wget https://raw.githubusercontent.com/edgexfoundry/developer-scripts/04c933f2c03bb9b212e1035505fed0a386f4d43e/compose-files/docker-compose-california-0.6.1.yml -O $compose_file
for svc in volume config-seed mongo logging notifications metadata data command scheduler export-client export-distro rulesengine device-virtual; do
for svc in volume config-seed mongo logging notifications metadata data command scheduler export-client export-distro rulesengine device-virtual; do
{compose_command} --file $compose_file up -d $svc
sleep 60
done
for svc in volume mongo logging notifications metadata data command scheduler export-client export-distro device-virtual; do
for svc in volume mongo logging notifications metadata data command scheduler export-client export-distro device-virtual; do
status=$(docker inspect -f '{status}' $({compose_command} --file $compose_file ps -q $svc))
if [ "$status" != "running" ]; then
echo "service $svc is supposed to be running, but currently has status: $status"
Expand Down

0 comments on commit c192174

Please sign in to comment.