You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
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:
However, these libraries only work with an x64 JVM. Thus, when building the Docker image,
linux/amd64
(ordarwin/amd64
??) needs to be passed into the build command of the image like this:The text was updated successfully, but these errors were encountered: