basyx-python-sdk icon indicating copy to clipboard operation
basyx-python-sdk copied to clipboard

server: compatibility issues between `build` and `docker-compose`

Open Frosty2500 opened this issue 2 years ago • 3 comments

There seems to be some kind of compatibility issue with the way we build our docker image in server. When we built it using $ docker buildx build -t basyx-python-sdk-http-server . it can not be run using docker-compose even thoug that should be possible. Only by explicitly declaring in the compose.yaml file which image to run like this image: basyx-python-sdk-http-server, or by using docker-compose build to build the image can the image be run using docker-compose.

Frosty2500 avatar Nov 16 '24 16:11 Frosty2500

I'm not sure what you mean. If I want to run the docker compose file, the correct syntax should be docker compose up. It should then take care of building the image if necessary and running it. There should not be the need to manually build first.

Could you maybe post here which version of docker and the docker compose plugin you're using?

docker --version
docker compose version

s-heppner avatar Nov 17 '24 18:11 s-heppner

It seems like I had a line ending issue which I misunderstood as a docker-compose issue 😅 . I'll change the README.md to recommend using jsut docker-compose up.

Frosty2500 avatar Nov 17 '24 20:11 Frosty2500

No worries :) Can you use docker compose up in the README, as it is the newer syntax and replaced docker-compose up? At some point the old syntax might become deprecated.

s-heppner avatar Nov 17 '24 21:11 s-heppner