From 4b2a56807050ba7cf2108d5d36a9225de39abc2f Mon Sep 17 00:00:00 2001 From: Olivier ORAND Date: Thu, 26 Sep 2024 10:12:04 +0000 Subject: [PATCH] fixup!chore(github-action): build cnb image - cannot use link as not on default network - reformat --- .github/workflows/build-using-cnb-buildpack.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-using-cnb-buildpack.yml b/.github/workflows/build-using-cnb-buildpack.yml index 3f541e2..f512a1c 100644 --- a/.github/workflows/build-using-cnb-buildpack.yml +++ b/.github/workflows/build-using-cnb-buildpack.yml @@ -85,14 +85,14 @@ jobs: redis_container_name="$(docker ps -f "ancestor=$SERVICE_IMAGE" --format "{{.Names}}")" docker inspect $redis_container_name echo "Starting sample app" -# container_id=$(docker run -d --link $redis_container_name -e PORT=8080 --env-file vcap-service.env --name "cnb-app-container" ${{env.CNB_IMAGE_NAME}}) + # container_id=$(docker run -d --link $redis_container_name -e PORT=8080 --env-file vcap-service.env --name "cnb-app-container" ${{env.CNB_IMAGE_NAME}}) container_id=$(docker run -d -e PORT=8080 --env-file vcap-service.env --name "cnb-app-container" ${{env.CNB_IMAGE_NAME}}) echo "Cnb app started (id: $container_id)" #docker inspect -f '{{.HostConfig.LogConfig.Type}}' $container_id # docker run -e PORT=80 --env-file vcap-service.env -p 8080:80 --name "cnb-app-container" ${{env.CNB_IMAGE_NAME}} docker logs -f cnb-app-container &> cnb-app-container.log & docker ps -a -# env|sort + # env|sort export APP="http://127.0.0.1:8080" exit_status=0 if nc -vz 127.0.0.1 8080;then echo "port 8080 available";else echo "port 8080 UNAVAILABLE";exit_status=1;fi