Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Docker wont build due to composer and missing repository(s) #2388

Open
emrahtoy opened this issue Jan 21, 2021 · 2 comments
Open

Docker wont build due to composer and missing repository(s) #2388

emrahtoy opened this issue Jan 21, 2021 · 2 comments

Comments

@emrahtoy
Copy link

emrahtoy commented Jan 21, 2021

With the composer 2 release, docker build scripts are broken
hirak/prestissimo is not compatible with composer 2 and also not needed anymore ( composer 2 comes with parallel support )

while getting over it composer trying to clone https://github.com/directus/zend-db which is not exist anymore...

What can i use instead of that repository ?

Best regards

@rijkvanzanten
Copy link
Member

The latest composer.json and release doesn't rely on those packages anymore:

"repositories": [
{
"type": "path",
"url": "../packages/zend-db"
},
{
"type": "path",
"url": "../packages/oauth2-okta"
},
{
"type": "path",
"url": "../packages/proxy-detection"
},
{
"type": "path",
"url": "../packages/rate-limit"
}
],

https://github.com/directus/v8-archive/releases/tag/v8.8.1

I'd recommend using those

@emrahtoy
Copy link
Author

emrahtoy commented Feb 5, 2021

Thank you @rijkvanzanten but there are issues more than that.

  • package directory is out of docker build context so we need packages to moved or copied into context directory only after that we can use your soliton.
  • inside the Dockerfile you will see "composer reqiure composer require league/flysystem-aws-s3-v3" it should become "composer require composer require league/flysystem-aws-s3-v3:1.0.29" because version 2x is conflicted
  • inside the directus-steup file there is a line that install composer. But it download composer 2 as it is the most recent version thus conflicts hirak/pretissimo library. So the solution is using this line instead " php composer-setup.php --version=1.10.20 --filename=composer --install-dir /usr/local/bin --quiet"

with all those changes it should build without any problem.

Your help directed me to solution, thanks a lot.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants