mirror of
https://github.com/avatao-content/test-tutorial-framework
synced 2024-11-12 22:37:17 +00:00
Make function declarations more portable in magic starter
This commit is contained in:
parent
30746b49e8
commit
ff13cf4dcd
@ -18,19 +18,19 @@ BACKEND_PORT="${BACKEND_PORT:-8888}"
|
||||
AVATAO_SECRET="${AVATAO_SECRET:-secret}"
|
||||
BUILD_CONTEXT="${BUILD_CONTEXT:-solvable}"
|
||||
|
||||
function run_frontend()
|
||||
run_frontend()
|
||||
{
|
||||
cd $FRONTEND_PATH
|
||||
yarn start
|
||||
}
|
||||
|
||||
function build_baseimage()
|
||||
build_baseimage()
|
||||
{
|
||||
cd $BASEIMAGE_PATH
|
||||
docker build -t $BASEIMAGE_NAME .
|
||||
}
|
||||
|
||||
function run_backend()
|
||||
run_backend()
|
||||
{
|
||||
cd $BACKEND_PATH
|
||||
docker build -t $IMAGE_NAME -f ${BUILD_CONTEXT}/Dockerfile --build-arg BUILD_CONTEXT=$BUILD_CONTEXT --build-arg NOFRONTEND=1 .
|
||||
|
Loading…
Reference in New Issue
Block a user