forked from airbytehq/airbyte
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A honcharenko/multiarch build 801 (airbytehq#12570)
* added multiarch image publishing/modified dockerfiles * added new ami * changed version to test * rollback version * check version test * env vars temp fix * apt-utils error fix * disabled failed test * remove excluded tests * Excluded :airbyte-db:lib:test * Excluded :airbyte-db:lib:test * static jdk version for test * ok test * ok test * ok test * test vars * quemu issue fix * Returned version vars * Scripts update * Version vars change * Comment fix * Added comments, minor changes and comments in dockerfiles * Uncomment line to push images
- Loading branch information
1 parent
8d7e99f
commit 570770c
Showing
5 changed files
with
60 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# List of directories without "airbyte-" prefix. | ||
projectDir=( | ||
"workers" | ||
"cli" | ||
"webapp" | ||
"server" | ||
"temporal" | ||
"container-orchestrator" | ||
"config/init" | ||
"bootloader" | ||
"metrics/reporter" | ||
"db/lib" | ||
"scheduler/app" | ||
) | ||
|
||
# Set default values to required vars. If set in env, values will be taken from there. | ||
JDK_VERSION=${JDK_VERSION:-17.0.1} | ||
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 | ||
if [ $workdir = "metrics/reporter" ]; then | ||
artifactName="metrics-reporter" | ||
else | ||
artifactName=${workdir%/*} | ||
fi | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters