Skip to content

Commit

Permalink
🐛 Install arm64 emulator when building source_declarative_manifest (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
girarda committed Mar 6, 2024
1 parent 67c918b commit 349faed
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/publish-cdk-command-manually.yml
Expand Up @@ -223,7 +223,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: airbytehq/airbyte
ref: master
ref: ${{ github.event.inputs.gitref }}
- name: Install Java
uses: actions/setup-java@v3
with:
Expand All @@ -245,8 +245,6 @@ jobs:
command: |
docker login -u ${DOCKER_HUB_USERNAME} -p ${DOCKER_HUB_PASSWORD}
./tools/integrations/manage.sh publish airbyte-cdk/python false
attempt_limit: 3
attempt_delay: 5000 in # ms
- name: Post failure to Slack channel dev-connectors-extensibility
if: ${{ failure() }}
uses: slackapi/slack-github-action@v1.23.0
Expand Down
13 changes: 10 additions & 3 deletions tools/integrations/manage.sh
Expand Up @@ -231,11 +231,18 @@ cmd_publish() {
# Alternative local approach @ https://github.com/docker/buildx/issues/301#issuecomment-755164475
# We need to use the regular docker buildx driver (not docker container) because we need this intermediate contaiers to be available for later build steps


echo Installing arm64 docker emulation
docker run --privileged --rm tonistiigi/binfmt --install arm64

for arch in $(echo $build_arch | sed "s/,/ /g")
do
echo "building base images for $arch"
docker buildx build -t airbyte/integration-base:dev --platform $arch --load airbyte-integrations/bases/base
docker buildx build -t airbyte/integration-base-java:dev --platform $arch --load airbyte-integrations/bases/base-java
# These images aren't needed for the CDK
if [ "$path" != "airbyte-cdk/python" ]; then
echo "building base images for $arch"
docker buildx build -t airbyte/integration-base-java:dev --platform $arch --load airbyte-integrations/bases/base-java
docker buildx build -t airbyte/integration-base:dev --platform $arch --load airbyte-integrations/bases/base
fi

# For a short while (https://github.com/airbytehq/airbyte/pull/25034), destinations rely on the normalization image to build
# Thanks to gradle, destinstaions which need normalization will already have built base-normalization's "build" artifacts
Expand Down

0 comments on commit 349faed

Please sign in to comment.