shaal / DrupalPod

Start Drupal contributions with 1 click.
https://shaal.github.io/DrupalPod
MIT License
163 stars 55 forks source link

Clicking just the big drupalpod icon is unsuccessful "Your docker-compose version does not exist or is set to an invalid version" #128

Open rfay opened 1 year ago

rfay commented 1 year ago

Is there an existing issue for this?

Output of ddev debug test

Expand `ddev debug test` diagnostic information ``` [COPY-PASTE HERE THE OUTPUT OF `ddev debug test`] ```

Expected Behavior

Clicking the big drupalod icon should do a basic install

Actual Behavior

Could not open a connection to your authentication agent.
.gitpod/drupal/drupalpod-setup.sh: line 15: export: `': not a valid identifier

 TIP OF THE DAY                                                              
 Try `ddev share` so collaborators anywhere can see your current project.    
 https://ddev.readthedocs.io/en/latest/users/topics/sharing/                 

Starting DrupalPod... 
Downloading https://github.com/docker/compose/releases/download/v2.21.0/docker-compose-linux-x86_64 ... 
docker-compose 0 B / 56.78 MiB [---------------------------------------]   0.00%Starting DrupalPod... 
Downloading https://github.com/docker/compose/releases/download/v2.21.0/docker-compose-linux-x86_64 ... 
docker-compose 56.78 MiB / 56.78 MiB [==============================] 100.00% 0s
Download complete. 
Your docker-compose version does not exist or is set to an invalid version.
Please use the built-in docker-compose.
Fix with 'ddev config global --required-docker-compose-version="" --use-docker-compose-from-path=false': fork/exec /home/gitpod/.ddev/bin/docker-compose: text file busy 
Download complete. 
gitpod /workspace/DrupalPod (main) $  Container ddev-ssh-agent  Recreate 
 Container ddev-ssh-agent  Recreated 
 Container ddev-ssh-agent  Started 
ssh-agent container is running: If you want to add authentication to the ssh-agent container, run 'ddev auth ssh' to enable your keys. 
 Container ddev-DrupalPod-db  Recreate 
 Container ddev-DrupalPod-chromedriver  Created 
 Container ddev-DrupalPod-web  Recreate 
 Container ddev-DrupalPod-db  Recreated 
 Container ddev-DrupalPod-web  Recreated 
 Container ddev-DrupalPod-chromedriver  Started 
 Container ddev-DrupalPod-db  Started 
 Container ddev-DrupalPod-web  Started 
Successfully started DrupalPod 
Project can be reached at https://8080-shaal-drupalpod-82ck6dkbmqk.ws-us105.gitpod.io 

There seem to be a set of errors there.

Steps To Reproduce

I clicked the big drupalpod icon using the ddltest github user (and gitpod user)

Full output: https://gist.github.com/rfay/d0a9c1e35266696bbd2dbd3136cfda1c

The full output showed that something went wrong with the docker-compose installation.

There was no composer.json in the root of the repo.

Final result was this:

image

Anything else?

No response

rfay commented 1 year ago

It looks like the first problem is that this doesn't work in that context: https://github.com/shaal/DrupalPod/blob/1400d9fac091327ccf6487e8fef7040ce61c8a60/.gitpod/drupal/drupalpod-setup.sh#L15

rfay commented 1 year ago

It's still unsuccessful, but now it's because no project is created (ddev composer create) so there's no composer.json, no code. Just comes up with a 403 because there's no index.php:

image