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/docker-compose issue on M1 #111

Open
krishnaglodha opened this issue Jul 24, 2023 · 5 comments
Open

docker/docker-compose issue on M1 #111

krishnaglodha opened this issue Jul 24, 2023 · 5 comments

Comments

@krishnaglodha
Copy link

I tried running docker-compose as it is and got following error for keycloak

no matching manifest for linux/arm64/v8 in the manifest list entries

I was able to resolve it by running export DOCKER_DEFAULT_PLATFORM=linux/amd64 first

@krishnaglodha
Copy link
Author

should be mention such in the documentation ?

@francbartoli
Copy link
Member

yes please

@Youssef-Harby
Copy link
Member

Youssef-Harby commented Aug 22, 2023

@krishnaglodha , @francbartoli
I believe it is possible to run (natively) on arm64, i can investigate on it and add arm64 support

@francbartoli
Copy link
Member

Actually with these latest commit the build process is already in place but it is not documented. For example to build for arm64 is just about to run:

python scripts/docker/build.py --docker-platform linux/arm64

The build.py is a typer CLI:

python scripts/docker/build.py --help
                                                                                                                                                                              
 Usage: build.py [OPTIONS]                                                                                                                                                    
                                                                                                                                                                              
 Build the project's docker image.                                                                                                                                            
                                                                                                                                                                              
╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --base-image-name                         TEXT  [default: registry.gitlab.com/geobeyond/georoma-fastgeoapi]                                                                │
│ --build-context-path                      TEXT  [default: /Users/francbartoli/code/fastgeoapi]                                                                             │
│ --default-git-branch                      TEXT  Name of the git branch to use as the base for the docker cache [default: None]                                             │
│ --docker-platform                         TEXT  Docker architecture to use as the target platform for the build [default: linux/amd64]                                     │
│ --use-cache             --no-use-cache          Use Docker cache for the build [default: use-cache]                                                                        │
│ --install-completion                            Install completion for the current shell.                                                                                  │
│ --show-completion                               Show completion for the current shell, to copy it or customize the installation.                                           │
│ --help                                          Show this message and exit.                                                                                                │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Can somebody volunteer to add documentation for Docker build process?

@francbartoli francbartoli changed the title keycloak docker issue on M1 docker/docker-compose issue on M1 Aug 22, 2023
@krishnaglodha
Copy link
Author

I'm on it

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

3 participants