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

Running on macOS #1

Open
msrocka opened this issue Aug 28, 2023 · 1 comment
Open

Running on macOS #1

msrocka opened this issue Aug 28, 2023 · 1 comment

Comments

@msrocka
Copy link
Member

msrocka commented Aug 28, 2023

In general it should work in the same way as for Linux. However, the native libraries for macOS need to be packaged then. I uploaded a Docker layer for macOS: https://github.com/GreenDelta/gdt-server/pkgs/container/gdt-server-native-macos

This can be used in the same way as the Linux library layer here: https://github.com/GreenDelta/olca-ipc-container/blob/main/Dockerfile#L8

It should work by replacing this line like this like this:

# native libraries
FROM ghcr.io/greendelta/gdt-server-native-macos AS native

However, these libraries only work with an x64 JVM. Thus, when building the Docker image, linux/amd64 (or darwin/amd64??) needs to be passed into the build command of the image like this:

docker build --platform linux/amd64 -t olca-ipc-server .
@francoislerall
Copy link
Member

I could not run the olca-ipc-server with the macOS library.
I think the reason is that Docker is running on a Linux VM on macOS, so we must use Linux libraries.
In fact, I was able to run the calculation by building the image with this Dockerfile and the over-mentioned command (docker build --platform linux/amd64 -t olca-ipc-server .). The container also needs to be started with the --platform linux/amd64 tag.

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