Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add workaround for BuildKit issue on Apple M1 hardware #1027

Merged
merged 1 commit into from
Oct 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions bin/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
#!/usr/bin/env bash
set -eux

# if on Apple M1
# https://stackoverflow.com/a/65259353/358804
if [[ $(uname -m) == 'arm64' ]]; then
# workaround for an issue in BuildKit causing dependent builds (specifically the dev image) to fail
# https://github.com/docker/compose/issues/8449#issuecomment-1125761231
export DOCKER_BUILDKIT=0
fi

docker compose build --pull client

docker compose build dev
Expand Down