datahub icon indicating copy to clipboard operation
datahub copied to clipboard

docker-compose up --build failed on MacOS with M1 chip

Open jinlintt opened this issue 2 years ago • 5 comments

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:

  1. 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
  1. 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
  1. 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

jinlintt avatar Jul 19 '22 23:07 jinlintt

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

github-actions[bot] avatar Aug 25 '22 02:08 github-actions[bot]

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 avatar Sep 19 '22 15:09 pedro93

@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.

jinlintt avatar Sep 20 '22 17:09 jinlintt

This is probably a case of out-dated docs. Can you send me a link to the doc in question?

pedro93 avatar Sep 20 '22 17:09 pedro93

Please see below. https://datahubspace.slack.com/archives/CV2UVAPPG/p1658253771813039

https://datahubproject.io/docs/docker/development

jinlintt avatar Sep 20 '22 18:09 jinlintt

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

github-actions[bot] avatar Oct 21 '22 02:10 github-actions[bot]

This issue was closed because it has been inactive for 30 days since being marked as stale.

github-actions[bot] avatar Nov 21 '22 02:11 github-actions[bot]