drupal-docker
drupal-docker copied to clipboard
The Compose file './docker-compose.yml' is invalid because
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 [':', ':']
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?