Skip to content
This repository was archived by the owner on Mar 11, 2022. It is now read-only.

Commit 9017aae

Browse files
committed
Add tck script
1 parent ba4783f commit 9017aae

2 files changed

Lines changed: 24 additions & 28 deletions

File tree

tck.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/env bash
2+
3+
# Run Python shoppingcart here
4+
python shoppingcart/shopping_cart.py &
5+
pid=$!
6+
echo "Start python shoppingcart user-function with pid $pid"
7+
sleep 3
8+
9+
# The host network usually doesn't work on MacOS systems
10+
# so we should address this issue and use the docker's internal network when the system is Mac
11+
echo "Starting Cloudstate proxy in development mode via docker"
12+
docker run -d --name cloudstate-proxy --net=host -e USER_FUNCTION_PORT=8090 cloudstateio/cloudstate-proxy-dev-mode
13+
14+
echo "Starting TCK via docker"
15+
docker run --rm --name cloudstate-tck --net=host cloudstateio/cloudstate-tck
16+
status=$?
17+
18+
echo "Removing cloudstate-proxy docker image"
19+
docker rm -f cloudstate-proxy
20+
21+
echo "Stopping Shoppingcart user-function"
22+
kill -9 $pid
23+
24+
exit $status

tck/src/it/resources/application.conf

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)