chore: Add BASE build arg to local_testing.sh
This commit is contained in:
parent
be63e1b404
commit
8d34a2ac28
|
|
@ -72,6 +72,11 @@ else
|
||||||
pretty_print "Local branch is now up to date. Starting server build ..."
|
pretty_print "Local branch is now up to date. Starting server build ..."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
edition=ce
|
||||||
|
if [[ "$(git remote get-url origin)" == *"/appsmith-ee"* ]]; then
|
||||||
|
edition=ee
|
||||||
|
fi
|
||||||
|
|
||||||
pretty_print "Starting server build ..."
|
pretty_print "Starting server build ..."
|
||||||
|
|
||||||
pushd app/server > /dev/null && ./build.sh -DskipTests > /dev/null && pretty_print "Server build successful. Starting client build ..."
|
pushd app/server > /dev/null && ./build.sh -DskipTests > /dev/null && pretty_print "Server build successful. Starting client build ..."
|
||||||
|
|
@ -83,7 +88,11 @@ popd
|
||||||
pushd app/client/packages/rts/ > /dev/null && ./build.sh > /dev/null && pretty_print "RTS build successful. Starting Docker build ..."
|
pushd app/client/packages/rts/ > /dev/null && ./build.sh > /dev/null && pretty_print "RTS build successful. Starting Docker build ..."
|
||||||
|
|
||||||
popd
|
popd
|
||||||
docker build -t appsmith/appsmith-ce:local-testing --build-arg APPSMITH_CLOUD_SERVICES_BASE_URL="${cs_url:-https://release-cs.appsmith.com}" . > /dev/null
|
docker build -t appsmith/appsmith-ce:local-testing \
|
||||||
|
--build-arg BASE="appsmith/base-$edition:release" \
|
||||||
|
--build-arg APPSMITH_CLOUD_SERVICES_BASE_URL="${cs_url:-https://release-cs.appsmith.com}" \
|
||||||
|
. \
|
||||||
|
> /dev/null
|
||||||
pretty_print "Docker image build successful. Triggering run now ..."
|
pretty_print "Docker image build successful. Triggering run now ..."
|
||||||
|
|
||||||
(docker stop appsmith || true) && (docker rm appsmith || true)
|
(docker stop appsmith || true) && (docker rm appsmith || true)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user