hitobito / development

Setup your local machine for hitobito development
GNU Affero General Public License v3.0
19 stars 15 forks source link

fix docker-compose pull #30

Closed patrickuhlmann closed 1 year ago

patrickuhlmann commented 3 years ago

When executing docker-compose pull, I got the following error: unexpected character "," in variable name near "mailcatcher, port: 1025\nRAILS_SPHINX_HOST=sphinx\nDISABLE_ANNOTATE=true\n"

This error went away when I removed the additional whitespace in the rails.env file.

mtnstar commented 3 years ago

Hi @patrickuhlmann

thx for the PR!

when I try to start the rails container with your changes, then the following error occurs:

Psych::SyntaxError: (<unknown>): found unexpected ':' while scanning a plain scalar at line 1 column 3

so this seems somehow to break my setup.

maybe we have different docker versions, other os, ...

patrickuhlmann commented 3 years ago

Interesting.

$ docker-compose version
Docker Compose version 2.0.1

$ docker --version
Docker version 20.10.9, build c2ea9bc90b

$ uname -a
Linux xps13uhlme 5.14.14-arch1-1 #1 SMP PREEMPT Wed, 20 Oct 2021 21:35:18 +0000 x86_64 GNU/Linux
mtnstar commented 3 years ago

Hi Patrick

$ docker-compose version
docker-compose version 1.25.0

$ docker --version
Docker version 20.10.7, build f0df350

$ uname -a
Linux t490-ps 5.4.0-89-generic #100-Ubuntu SMP Fri Sep 24 14:50:10 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

we do have different versions. quite a few people are using this setup now without having any issues with the env vars.

would it help to put quotes around the values? I tried this, but this doesn't work.