1
0
mirror of https://github.com/avatao-content/test-tutorial-framework synced 2024-11-15 02:17:16 +00:00

Implement TFW library hotreloading

This commit is contained in:
Kristóf Tóth 2018-04-19 17:01:26 +02:00
parent d39a861e1d
commit 3b0552f6d1

View File

@ -91,8 +91,14 @@ build_test_withfrontend()
run_test() run_test()
{ {
docker run --rm \ cd "$TAO_PATH"
-p $TEST_PORT:$TEST_PORT \ mount_baseimage="-v ${BASEIMAGE_PATH}/lib/tfw:/usr/local/lib/tfw"
mount_test="-v $TEST_PATH/solvable/src:/srv/app"
mount_volumes=""
[ "${HOTRELOAD:-0}" == "1" ] && mount_volumes="${mount_baseimage} ${mount_test}"
docker run --rm \
-p $TEST_PORT:$TEST_PORT \
${mount_volumes} \
-e AVATAO_SECRET=$AVATAO_SECRET $IMAGE_NAME -e AVATAO_SECRET=$AVATAO_SECRET $IMAGE_NAME
} }