forked from airbytehq/airbyte
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore platform option in m1-specific docker compose file (airbytehq…
…#7188) * Revert "remove platform option temporarily to fix master build (airbytehq#7184)" This reverts commit d9e7bdc. * Test if docker compose works in github action * Use a dedicated docker compose file for m1 * Restore docker-compose command * Update comments * Fix docker compose filename * Add issue link
- Loading branch information
Showing
2 changed files
with
78 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# This file is exactly the same as docker-compose.build.yaml, except | ||
# that it specifies the platform. This is a temporary solution for M1 | ||
# Mac computers. The platform option is required for M1 users to build | ||
# the project. However, currently, our Github Action runner has an old | ||
# version of docker-compose, which does not support this option. Once | ||
# we upgrade the docker-compose in the runners, we should delete this file. | ||
# Issue: https://github.com/airbytehq/airbyte/issues/7191 | ||
|
||
version: "3.7" | ||
|
||
services: | ||
init: | ||
platform: linux/amd64 | ||
image: airbyte/init:${VERSION} | ||
build: | ||
dockerfile: Dockerfile | ||
context: airbyte-config/init | ||
labels: | ||
io.airbyte.git-revision: ${GIT_REVISION} | ||
db: | ||
platform: linux/amd64 | ||
image: airbyte/db:${VERSION} | ||
build: | ||
dockerfile: Dockerfile | ||
context: airbyte-db/lib | ||
labels: | ||
io.airbyte.git-revision: ${GIT_REVISION} | ||
scheduler: | ||
platform: ${DOCKER_BUILD_PLATFORM} | ||
image: airbyte/scheduler:${VERSION} | ||
build: | ||
dockerfile: Dockerfile | ||
args: | ||
JDK_VERSION: ${JDK_VERSION} | ||
context: airbyte-scheduler/app | ||
labels: | ||
io.airbyte.git-revision: ${GIT_REVISION} | ||
worker: | ||
platform: ${DOCKER_BUILD_PLATFORM} | ||
image: airbyte/worker:${VERSION} | ||
build: | ||
dockerfile: Dockerfile | ||
args: | ||
ARCH: ${DOCKER_BUILD_ARCH} | ||
JDK_VERSION: ${JDK_VERSION} | ||
context: airbyte-workers | ||
labels: | ||
io.airbyte.git-revision: ${GIT_REVISION} | ||
server: | ||
platform: ${DOCKER_BUILD_PLATFORM} | ||
image: airbyte/server:${VERSION} | ||
build: | ||
dockerfile: Dockerfile | ||
args: | ||
JDK_VERSION: ${JDK_VERSION} | ||
context: airbyte-server | ||
labels: | ||
io.airbyte.git-revision: ${GIT_REVISION} | ||
webapp: | ||
platform: linux/amd64 | ||
image: airbyte/webapp:${VERSION} | ||
build: | ||
dockerfile: Dockerfile | ||
context: airbyte-webapp | ||
labels: | ||
io.airbyte.git-revision: ${GIT_REVISION} | ||
migration: | ||
platform: ${DOCKER_BUILD_PLATFORM} | ||
image: airbyte/migration:${VERSION} | ||
build: | ||
dockerfile: Dockerfile | ||
args: | ||
JDK_VERSION: ${JDK_VERSION} | ||
context: airbyte-migration | ||
labels: | ||
io.airbyte.git-revision: ${GIT_REVISION} |