datahub
datahub copied to clipboard
docker-compose up --build failed on MacOS with M1 chip
Describe the bug When I tried to build everything using docker-compose locally, I got the following error. I am on MacOS with M1 chip.
#0 209.7 Execution failed for task ':datahub-web-react:nodeSetup'.
#0 209.7 > Could not resolve all files for configuration ':datahub-web-react:detachedConfiguration1'.
#0 209.7 > Could not find org.nodejs:node:16.8.0.
#0 209.7 Searched in the following locations:
#0 209.7 - https://plugins.gradle.org/m2/org/nodejs/node/16.8.0/node-16.8.0.pom
#0 209.7 - file:/root/.m2/repository/org/nodejs/node/16.8.0/node-16.8.0.pom
#0 209.7 - https://repo.maven.apache.org/maven2/org/nodejs/node/16.8.0/node-16.8.0.pom
#0 209.7 - https://packages.confluent.io/maven/org/nodejs/node/16.8.0/node-16.8.0.pom
#0 209.7 - https://linkedin.jfrog.io/artifactory/open-source/org/nodejs/node/16.8.0/node-16.8.0.pom
#0 209.7 - https://nodejs.org/dist/v16.8.0/node-v16.8.0-linux-aarch64.tar.gz
#0 209.7 Required by:
#0 209.7 project :datahub-web-react
To Reproduce Steps to reproduce the behavior:
- run
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 DATAHUB_MAPPED_MYSQL_PORT=53306 docker-compose \
-f docker-compose.yml \
-f docker-compose.override.yml \
-f docker-compose.m1.yml \
--verbose pull
- Run
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 DATAHUB_MAPPED_MYSQL_PORT=53306 docker-compose \
-f docker-compose.yml \
-f docker-compose.override.yml \
-f docker-compose.m1.yml \
up --build
- See error
Expected behavior The build should go through without failure.
Desktop (please complete the following information):
- OS: MacOS with M1 chip
- Version: 12.4
This issue is stale because it has been open for 30 days with no activity. If you believe this is still an issue on the latest DataHub release please leave a comment with the version that you tested it with. If this is a question/discussion please head to https://slack.datahubproject.io. For feature requests please use https://feature-requests.datahubproject.io
Hello @jinlintt
What version of docker
are you using?
I see you execute docker-compose
, could you instead try with docker compose
, note the space. The former is an old, deprecated version of docker-compose which has known issues with M1 Arm systems.
@pedro93 thank you! I will give it a try.
The doc used to ask us to use docker-compose
instead of docker compose
, which was why I ran that command.
You mentioned at the office hour earlier that now it is fully on docker compose v2, which is terrific.
This is probably a case of out-dated docs. Can you send me a link to the doc in question?
Please see below. https://datahubspace.slack.com/archives/CV2UVAPPG/p1658253771813039
https://datahubproject.io/docs/docker/development
This issue is stale because it has been open for 30 days with no activity. If you believe this is still an issue on the latest DataHub release please leave a comment with the version that you tested it with. If this is a question/discussion please head to https://slack.datahubproject.io. For feature requests please use https://feature-requests.datahubproject.io
This issue was closed because it has been inactive for 30 days since being marked as stale.