CoderDojo / cp-local-development

Local development tool for the Community Platform
MIT License
19 stars 56 forks source link

Error when running 'docker-compose up zen' after a clean setup_repo.sh & install_deps.sh run #83

Open pbackx opened 5 years ago

pbackx commented 5 years ago

Maybe important or not: This is on Windows 10. I'm running Ubuntu with the Windows Subsystem for Linux.

After successfully running the initial steps in the readme, I have the following error when running docker-compose zen up:

ERROR: In file C:\dev\cp-local-development\workspace-zen\cp-zen-platform\web\config\development.env: environment variable name 'export EVENTS_SERVICE' may not contains whitespace.

That file contains the following lines:

export EVENTS_SERVICE=events2
export EMAIL_SERVICE=email
export USERS_SERVICE=users
export CLUBS_SERVICE=clubs

After removing the exports in front of the variable definitions, it looks like the system is now starting.

So what I did to fix this is change the file to:

EVENTS_SERVICE=events2
EMAIL_SERVICE=email
USERS_SERVICE=users
CLUBS_SERVICE=clubs

So my questions:

Wardormeur commented 5 years ago

I can confirm the issue on Linux, this is not a Windows related issue, but a dodgy change in docker-compose (https://github.com/docker/compose/issues/6511). The fix seems to use a new upcoming flag --skip-env-file when running docker-compose. As far as I'm aware, those env var are only used for the unit tests of cp-zen-platform, locally and in CI. Didn't try if removing the "export" keyword works or not, though. :+1: for making a formal report