* init * bad copy/paste * move to top level * Revert "move to top level" This reverts commitaca3534d38. * attempt to wire up connector builder frontend to server * copy from octaviacli * fix connection to builder server * update * delete * Update * delete python-version * Revert "delete python-version" This reverts commitf9258a7755. * setup python * install python * rename * kube stuff * Install python * missing kube file * rename * Update files * Update bumpversion * install python * try with different entrypoint * rename container * point to docker-compose.yaml file * derp * copy acceptance_test.sh * copy from acceptance tests * delete cruft * update * remove application env * reset * reset to master * update * skip comprehensive incremental tests * Revert "skip comprehensive incremental tests" This reverts commit9cee657596. * reset to master * remove cruft * delete superfluous steps * update port to 8003 * reset to master * Update publish docker * move openapi spec to airbyte-connector-builder * point to openapi spec * dont expose the connector builder to localhost * reset FE components to master * Don't deploy the connector-builder * Revert "Don't deploy the connector-builder" This reverts commit3d157494cf. * Revert "Revert "Don't deploy the connector-builder"" This reverts commitbeac3d48f0. * comment out more things related to connector builder server * more attempts at removing the connector builder * comment out more things * Apply suggestions from code review Co-authored-by: Lake Mossman <lake@airbyte.io> * Update airbyte-webapp/src/config/configProviders.ts Co-authored-by: Lake Mossman <lake@airbyte.io> * update * rename * indent * Revert "move openapi spec to airbyte-connector-builder" This reverts commit57dda04723. * Revert "rename" This reverts commitb2d802b8fa. * Revert "Revert "rename"" This reverts commit91db24fd4a. * point to wrong file in case it fixes the build * point to right openapi file * Revert "Revert "move openapi spec to airbyte-connector-builder"" This reverts commite46a837454. * point to moved file * fix path * Update from master * newline * Add failing test * Revert "Add failing test" This reverts commited9fea09b5. * comment * update commented requires * Add a comment * 2022 * rename to connector-builder-server * typo Co-authored-by: lmossman <lake@airbyte.io>
62 lines
1.6 KiB
Bash
Executable File
62 lines
1.6 KiB
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
# List of directories without "airbyte-" prefix.
|
|
projectDir=(
|
|
"bootloader"
|
|
"config/init"
|
|
"container-orchestrator"
|
|
"cron"
|
|
"connector-builder-server"
|
|
"db/db-lib"
|
|
"metrics/reporter"
|
|
"proxy"
|
|
"server"
|
|
"temporal"
|
|
"webapp"
|
|
"workers"
|
|
)
|
|
|
|
# Set default values to required vars. If set in env, values will be taken from there.
|
|
# Primarily for testing.
|
|
JDK_VERSION=${JDK_VERSION:-17.0.4}
|
|
ALPINE_IMAGE=${ALPINE_IMAGE:-alpine:3.14}
|
|
POSTGRES_IMAGE=${POSTGRES_IMAGE:-postgres:13-alpine}
|
|
|
|
# Iterate over all directories in list to build one by one.
|
|
# metrics-reporter are exception due to wrong artifact naming
|
|
for workdir in "${projectDir[@]}"
|
|
do
|
|
case $workdir in
|
|
"metrics/reporter")
|
|
artifactName="metrics-reporter"
|
|
;;
|
|
|
|
"config/init")
|
|
artifactName="init"
|
|
;;
|
|
|
|
"workers")
|
|
artifactName="worker"
|
|
;;
|
|
|
|
*)
|
|
artifactName=${workdir%/*}
|
|
;;
|
|
esac
|
|
|
|
echo "Publishing airbyte/$artifactName..."
|
|
sleep 1
|
|
|
|
docker buildx create --use --name $artifactName && \
|
|
docker buildx build -t "airbyte/$artifactName:$VERSION" \
|
|
--platform linux/amd64,linux/arm64 \
|
|
--build-arg VERSION=$VERSION \
|
|
--build-arg ALPINE_IMAGE=$ALPINE_IMAGE \
|
|
--build-arg POSTGRES_IMAGE=$POSTGRES_IMAGE \
|
|
--build-arg JDK_VERSION=$JDK_VERSION \
|
|
--push \
|
|
airbyte-$workdir/build/docker
|
|
docker buildx rm $artifactName
|
|
done
|