drupal-docker icon indicating copy to clipboard operation
drupal-docker copied to clipboard

The Compose file './docker-compose.yml' is invalid because

Open RalfEisler opened this issue 6 years ago • 1 comments

Trying to install a new environment on macOS High Sierra (10.13.6) following: https://www.drupal.org/node/2736447

After editing the Project/docker/environment file I enter ./starup.sh in the Terminal, which results in the following error:

environment: line 83: typeset: -u: invalid option typeset: usage: typeset [-afFirtx] [-p] name[=value] ... environment: line 84: typeset: -l: invalid option typeset: usage: typeset [-afFirtx] [-p] name[=value] ... env: environment: No such file or directory WARNING: The DB_IP variable is not set. Defaulting to a blank string. WARNING: The WWW_DOMAIN variable is not set. Defaulting to a blank string. WARNING: The WWW_IP variable is not set. Defaulting to a blank string. WARNING: The DB_DOMAIN variable is not set. Defaulting to a blank string. WARNING: The MAIL_IP variable is not set. Defaulting to a blank string. WARNING: The PMA_IP variable is not set. Defaulting to a blank string. ERROR: The Compose file './docker-compose.yml' is invalid because: services.php.extra_hosts contains non-unique items, please remove duplicates from [':', ':']

RalfEisler avatar Aug 17 '18 20:08 RalfEisler

Is anyone watching these?

I ran into the same issue, trying to use this in MacOS, same version.

I did figure out that the scripts all assume that "." is in your PATH. As a general security rule, that's a bad idea, but after doing a

export PATH=$PATH:.

things worked at least better. (Those "typeset" and "No such file or directory" errors went away. But all of those warnings about variables not set; still there. In fact DB_IP, WWW_DOMAIN, etc. are mentioned no place else in this repository.

I'm guessing that the author just had them set in his own environment. So what should they be set to?

dawillcox avatar Jan 25 '19 02:01 dawillcox