Skip to content

Commit

Permalink
fixup!test: setup mongodb server - debug logs - 3
Browse files Browse the repository at this point in the history
  • Loading branch information
o-orand committed Sep 25, 2024
1 parent 2a05a74 commit 605aa71
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-using-cnb-buildpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@ jobs:
cat vcap-services-template.sh|envsubst >vcap-service.env
cat vcap-service.env
echo "Starting sample app"
docker run -d -e PORT=80 --env-file vcap-service.env -p 8080:80 --name "cnb-app-container" ${{env.CNB_IMAGE_NAME}}
container_id=$(docker run -d -e PORT=80 --env-file vcap-service.env -p 8080:80 --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-a &> cnb-app-container.log &
docker logs -f cnb-app-container &> cnb-app-container.log &
docker logs mongodb
cat /etc/hosts
docker ps -a
Expand Down

0 comments on commit 605aa71

Please sign in to comment.