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

[Docker] Unable to setup Docker containers in Macbook pro m1 #4

Open
josephmachado opened this issue Feb 11, 2023 · 4 comments
Open

Comments

@josephmachado
Copy link
Owner

josephmachado commented Feb 11, 2023

Describe the bug
I have a macbook pro m1 pro and when i am trying to follow the setup instructions for I keep getting the following message when i do make up for invoking docker container. Please help:

To Reproduce
Steps to reproduce the behavior:

  1. Run make up on a Macbook pro m1

Expected behavior
All the required containers must spin up.

Screenshots

Screenshot 2023-02-11 at 1 41 23 PM

Desktop (please complete the following information):

  • OS: [e.g. iOS] Macbook Pro M1
@josephmachado
Copy link
Owner Author

josephmachado commented Feb 11, 2023

If you are running this in Macbook M1, please replace this line

image: 'bitsondatadev/hive-metastore:latest'

with image: 'ghcr.io/bitsondatadev/hive-metastore:latest@sha256:5b633299a2b1136d3e8b22d26a38a246534144f87baa4f2a906b929d5cf68b63'

@danieltomasz
Copy link

Hi I just wrote email, probably about this issue;
Would be better/more reproducible to have 2 docker compose and concatenate them when running on m1 - this could be separate command in makefile

docker-compose -f docker-compose.yml -f docker-compose2.yml up

@josephmachado
Copy link
Owner Author

TY, That's a really good point @danieltomasz from a usability perspective. I will re-open this issue and figure out a way to have a single command for both intel and m1 mac processors.

@josephmachado josephmachado reopened this Jun 20, 2023
@danieltomasz
Copy link

danieltomasz commented Jun 20, 2023

uname -m should give info about platform, then maybe conditional in the makefile command might be used
https://www.gnu.org/software/make/manual/html_node/Conditional-Example.html

then maybe separate yaml but only with the part that are OS dependent;
concating yaml with macos specifig config should override the previous params https://docs.docker.com/compose/compose-file/13-merge/case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants