Skip to content

Commit

Permalink
fixup!chore(github-action): build cnb image - fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
o-orand committed Oct 1, 2024
1 parent d6f1a10 commit 93612e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e
cat vcap-service.env
echo "Starting sample app"
container_name="cnb-app-container"
container_id=$(docker run -d --rm --link -e PORT=80 -p 8080:80 --env-file vcap-service.env --name "$container_name" ${CNB_IMAGE_NAME})
container_id=$(docker run -d --rm -e PORT=80 -p 8080:80 --env-file vcap-service.env --name "$container_name" ${CNB_IMAGE_NAME})

echo "Cnb app started (id: $container_id)"
echo "Waiting to ensure app is up and running"
Expand Down
6 changes: 3 additions & 3 deletions start-cnd-app-locally.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/usr/bin/env bash
set -e

source local.env
source ./setup-prerequisite.sh

for c in cnb-app-container redis-service;do
if docker container stop $c;then
docker container rm -f $c
fi
done

source local.env
source ./setup-prerequisite.sh
./run-tests.sh


Expand Down

0 comments on commit 93612e6

Please sign in to comment.