Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker fails to install php composer dependencies #1156

Closed
jrvosse opened this issue Apr 8, 2021 · 4 comments
Closed

docker fails to install php composer dependencies #1156

jrvosse opened this issue Apr 8, 2021 · 4 comments
Assignees
Labels
bug size-medium 2 hours to 2 days
Milestone

Comments

@jrvosse
Copy link
Contributor

jrvosse commented Apr 8, 2021

At which URL did you encounter the problem?

root url

What steps will reproduce the problem?

  1. start with docker-compose up -d
  2. visit localhost:9090

What is the expected output? What do you see instead?

Expected: home page of skosmos
Instead I get
Error: Dependencies managed by Composer missing. Please run "php composer.phar install".
Error goes away if I manually (by running bash in the skosmos container) install composer and run the command above.

What browser did you use? (eg. Firefox, Chrome, Safari, Internet explorer)

Chrome

@osma
Copy link
Member

osma commented Apr 8, 2021

Hi @jrvosse , was this with the recent 2.10 release or an earlier version?

Docker support was completely redone in the 2.10 release. It's documented in the wiki and in the dockerfiles directory.

@osma
Copy link
Member

osma commented Apr 8, 2021

Ah, now I think I understand what's wrong here. We changed the way the Docker image is built several times during the development of the new Dockerfile, and the current version copies all files from the Skosmos directory inside the image. This means that Composer must be run outside the container, before building the image. That's not ideal - I think Composer should be run within the container as it's being built, and probably the vendor directory etc. should be excluded while copying so that Composer has a clean starting point. @kinow do you have any ideas?

@osma osma added the bug label Apr 8, 2021
@osma osma added this to the Next Tasks milestone Apr 8, 2021
@kinow
Copy link
Collaborator

kinow commented Apr 8, 2021

Ah, your analysis is correct @osma ! And good catch @jrvosse , we missed that part in the review as we always had the composer dependencies installed, sorry! I think at one point we had composer running, but as @osma said changes during development removed it.

Let me take a look at #1157, I think that's safe to merge, but will confirm it won't change host files (it shouldn't I think, the composer dependencies should be installed in the container only).

Bruno

@joelit joelit added the size-medium 2 hours to 2 days label May 18, 2021
@osma osma self-assigned this May 20, 2021
@osma
Copy link
Member

osma commented May 20, 2021

Fixed by PRs #1157 and #1162

@osma osma closed this as completed May 20, 2021
@osma osma modified the milestones: Next Tasks, 2.11 May 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug size-medium 2 hours to 2 days
Projects
None yet
Development

No branches or pull requests

4 participants