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

Ensure graphviz support is enabled, automated dependency upgrades, restructured tests around docker image #20

Merged
merged 12 commits into from
Mar 16, 2022

Conversation

Ocramius
Copy link
Member

This patch:

  • ensures CI tests run with what is defined in our Dockerfile
  • automates composer, docker and npm dependency upgrades
  • reduces final docker image size

Fixes #19

Note: all tests already pass this way - the problem is that our CI tests install
all required dependencies independently of our `Dockerfile` (to be adjusted)
…build targets

Also added some multi-stage build improvements to:

 * have a common `composer-base-image` alias that we can upgrade from
 * install dependencies without filling `composer` cache
 * avoid having dev dependencies in the production image
 * better parallel execution time
…n the context of the provided `Dockerfile` (built image)
@Ocramius Ocramius added the enhancement New feature or request label Mar 16, 2022
@Ocramius Ocramius added this to the 1.2.0 milestone Mar 16, 2022
@Ocramius Ocramius self-assigned this Mar 16, 2022
…xport layers

Should fix this:

```
time="2022-03-16T13:03:07Z" level=warning msg="No output specified for docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load"
```

Ref: https://github.com/Roave/DocbookTool/runs/5570347931?check_suite_focus=true#step:4:225
This fixes the invalid shebang parsing when loading `vendor/bin/$tool` scripts in CI.

Fixes following:

```
Run docker run --rm --entrypoint=bash test-image vendor/bin/psalm
  docker run --rm --entrypoint=bash test-image vendor/bin/psalm
  shell: /usr/bin/bash -e {0}
vendor/bin/psalm: line 2: ?php: No such file or directory
vendor/bin/psalm: line 4: /app: Is a directory
vendor/bin/psalm: line 5: bin: command not found
vendor/bin/psalm: line 6: bin: command not found
vendor/bin/psalm: line 7: syntax error near unexpected token `('
vendor/bin/psalm: line 7: ` * This file includes the referenced bin path (../vimeo/psalm/psalm)'
```

Ref: https://github.com/Roave/DocbookTool/runs/5570444286?check_suite_focus=true#step:5:1
@Ocramius Ocramius marked this pull request as ready for review March 16, 2022 13:31
@Ocramius Ocramius requested a review from asgrim March 16, 2022 13:32
Dockerfile Show resolved Hide resolved
@asgrim asgrim merged commit 68a8fb5 into 1.2.x Mar 16, 2022
@Ocramius Ocramius deleted the feature/graphviz-support branch August 23, 2022 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Graphviz is missing
2 participants