mirror of
https://github.com/avatao-content/test-tutorial-framework
synced 2024-11-12 19:37:16 +00:00
Improve code formatting
This commit is contained in:
parent
797099086d
commit
30fa734711
14
hack/tfw.sh
14
hack/tfw.sh
@ -22,7 +22,9 @@ build_baseimage()
|
||||
{
|
||||
[ ! -d "$BASEIMAGE_PATH" ] && return || :
|
||||
cd $BASEIMAGE_PATH
|
||||
docker build -t "${BASEIMAGE_NAME}:$(baseimage_releasename)" -t "${BASEIMAGE_NAME}:latest" .
|
||||
docker build -t "${BASEIMAGE_NAME}:$(baseimage_releasename)" \
|
||||
-t "${BASEIMAGE_NAME}:latest" \
|
||||
.
|
||||
}
|
||||
|
||||
release_baseimage()
|
||||
@ -49,12 +51,18 @@ build_test()
|
||||
{
|
||||
build_baseimage
|
||||
cd $TEST_PATH
|
||||
docker build -t $IMAGE_NAME -f ${BUILD_CONTEXT}/Dockerfile --build-arg BUILD_CONTEXT=$BUILD_CONTEXT --build-arg NOFRONTEND=1 .
|
||||
docker build -t $IMAGE_NAME \
|
||||
-f ${BUILD_CONTEXT}/Dockerfile \
|
||||
--build-arg BUILD_CONTEXT=$BUILD_CONTEXT \
|
||||
--build-arg NOFRONTEND=1 \
|
||||
.
|
||||
}
|
||||
|
||||
run_test()
|
||||
{
|
||||
docker run --rm -p $TEST_PORT:$TEST_PORT -e AVATAO_SECRET=$AVATAO_SECRET $IMAGE_NAME
|
||||
docker run --rm \
|
||||
-p $TEST_PORT:$TEST_PORT \
|
||||
-e AVATAO_SECRET=$AVATAO_SECRET $IMAGE_NAME
|
||||
}
|
||||
|
||||
build_and_run_test()
|
||||
|
Loading…
Reference in New Issue
Block a user