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
Describe the bug
Cannot run a container using image from docker hub on linux/amd64 platform.
To Reproduce docker run --rm clevy/csml-engine:latest
exec /bin/sh: exec format error
Expected behavior
Supposed to launch csml engine.
Additional context
It looks like you are copying compiled binaries in Dockerfile instead of building it inside docker image, and you copied arm binary and not amd version.
The text was updated successfully, but these errors were encountered:
Hi,
I had no answer, project seems to be dead, the solution I used (probably not the best) is to build my own docker image with pre compiled binaries, and add a script to select binary to execute depending on architecture.
#!/bin/bash
set -e
if [ "$TARGETPLATFORM" == "linux/amd64" ] ; then
mv ./bin/csml-server-linux-amd64 server
rm -rf bin
elif [ "$TARGETPLATFORM" == "linux/arm64" ] ; then
mv ./bin/csml-server-linux-aarch64 server
rm -rf bin
else
echo "Invalid target platform: $TARGETPLATFORM"
exit 1
fi
Describe the bug
Cannot run a container using image from docker hub on linux/amd64 platform.
To Reproduce
docker run --rm clevy/csml-engine:latest
Expected behavior
Supposed to launch csml engine.
Additional context
It looks like you are copying compiled binaries in Dockerfile instead of building it inside docker image, and you copied arm binary and not amd version.
The text was updated successfully, but these errors were encountered: