ols4 icon indicating copy to clipboard operation
ols4 copied to clipboard

./test_api.sh fails

Open henrietteharmse opened this issue 3 years ago • 6 comments
trafficstars

Docker version: 20.10.21, build baeda1f Docker-compose version: docker-compose version 1.25.0, build unknown

Here is the error msg: image

henrietteharmse avatar Nov 02 '22 10:11 henrietteharmse

I think your Docker Compose is old. I have:

docker-compose version 1.29.2, build 5becea4c

The latest version actually seems to be 2.12.2 so maybe I need to update too!

jamesamcl avatar Nov 02 '22 12:11 jamesamcl

We seem to be running Docker compose v1 and v2. Is that necessary or accidental?

See v2 use vs v1 use.

henrietteharmse avatar Nov 02 '22 14:11 henrietteharmse

Neither necessary nor accidental, just contemporary :D It looks like v2 only came out a few months ago, which is long after our Compose file was written. I'll give v2 a go and see if it works.

jamesamcl avatar Nov 02 '22 14:11 jamesamcl

Oh sorry I read your comment wrong. I see you mean that we use both.

When I started out I was using docker compose and then we changed it to docker-compose because it didn't work on your machine. I did not realise the former was v2 and the latter was v1, I thought it was an alias. I guess we should now consolidate on docker compose (v2).

jamesamcl avatar Nov 02 '22 14:11 jamesamcl

@udp Here is a reminder of this annoying issue on Linux. I will really appreciate your help with it. Currently running api tests on Linux is not working because docker causes output directories to become owned by root.

henrietteharmse avatar Nov 09 '22 16:11 henrietteharmse

This SO issue seems to deal with exactly this problem: https://stackoverflow.com/questions/51973179/docker-mount-volumes-as-root/69507070#69507070

henrietteharmse avatar Nov 17 '22 15:11 henrietteharmse