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 }