From 3b0552f6d1c3d2436f626a047cf618ce4aace9d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Thu, 19 Apr 2018 17:01:26 +0200 Subject: [PATCH] Implement TFW library hotreloading --- hack/tfw.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/hack/tfw.sh b/hack/tfw.sh index 81d823f..96e1210 100755 --- a/hack/tfw.sh +++ b/hack/tfw.sh @@ -91,8 +91,14 @@ build_test_withfrontend() run_test() { - docker run --rm \ - -p $TEST_PORT:$TEST_PORT \ + cd "$TAO_PATH" + 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 }