-
Notifications
You must be signed in to change notification settings - Fork 14
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
Include binaries during ddev start #172 #207
Closed
Closed
Changes from all commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
f39b90c
Install go binaries globally in ddev #172
deviantintegral 0d4b874
Disable binaries when set in composer.json
deviantintegral bfd219d
Tests
deviantintegral fcace4a
Update CI to use global binaries
deviantintegral ccc440f
Use the local task for this test
deviantintegral 020e640
Remove asserts for global binaries in test not run in ddev
deviantintegral d417b04
Missed these ones
deviantintegral e7263f9
Remove local-php-security-checker as it is a drainpipe-dev dependency
deviantintegral 17ce53d
Fix wrong deprecation version
deviantintegral c34b353
Use the binary name in the warning message
deviantintegral f904ab7
Merge branch 'main' into 172--global-binaries
deviantintegral 7788519
Update production build test and add note to README to make task a gl…
justafish ca4a349
Configure path to Drainpipe
justafish 7bac73c
Configure path to Drainpipe
justafish 700fbeb
Add missing composer.json
justafish 092c251
Restart DDEV
justafish d937e1d
tmate
justafish 601e3ac
tmate
justafish 5255f57
fix php project type not including drush
deviantintegral ee1d514
Merge branch 'main' into 172--global-binaries
deviantintegral c6992c3
Merge branch 'main' into 172--global-binaries
deviantintegral 272d241
Merge remote-tracking branch 'origin/main' into 172--global-binaries
09e276b
Merge tag 'v3.1.2' of github.com:Lullabot/drainpipe into 172--global-…
deviantintegral c0fff90
Fix wrong path to task
deviantintegral 50b4fe8
Merge remote-tracking branch 'origin/main' into 172--global-binaries
elvism-lullabot 0e0f4ae
Update path to task command in test file
deviantintegral c23e8a2
Merge branch 'main' of github.com:Lullabot/drainpipe into 172--global…
deviantintegral 1ec70a2
Make task path configurable in tugboat
deviantintegral 85a6c9a
Fix not creating settings.ddev.php
deviantintegral 81573ca
Log commands as they are run
deviantintegral ea1d9dc
Fix missing ? for null coalesce
deviantintegral 233ff3d
Add missing check
deviantintegral 94ed49e
Need more espresso apparently
deviantintegral 1924dc2
Restore default paths
deviantintegral 90319b3
Print composer.json for debugging
deviantintegral 36f06cf
Fix race condition between cat and tee
deviantintegral e52e8b0
Use build and update command vars
deviantintegral 94e2ad8
Merge branch 'main' into 172--global-binaries
justafish 6d18309
Merge branch 'main' into 172--global-binaries
deviantintegral e28747f
Merge branch 'main' into 172--global-binaries
justafish 664d1e9
Merge branch 'main' into 172--global-binaries
deviantintegral 90fd0df
Merge branch 'main' into 172--global-binaries
deviantintegral ca13661
Install task globally if needed in review apps jobs
deviantintegral 3629af0
Task version updated in main
deviantintegral 719adcf
Merge branch 'main' into 172--global-binaries
davereid e4c8696
Fix help text for migrating
deviantintegral 31a7d46
Show warning even if entire extra section is missing
deviantintegral 88bf648
Merge branch 'main' into 172--global-binaries
mrdavidburns eb8b403
Merge tag 'v3.5.0' of github.com:Lullabot/drainpipe into 172--global-…
deviantintegral 502309f
Move test fixture back to match main
deviantintegral b4fda8e
Revert "Move test fixture back to match main"
deviantintegral 71e2048
Instead update the path we use for the cp
deviantintegral 7cf6505
We need this absolute path, or use a checkout dir
deviantintegral b5b7f2c
Merge remote-tracking branch 'origin' into 172--global-binaries
leonel-lullabot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,6 +56,17 @@ for a Drupal site, including: | |
```sh | ||
composer config extra.drupal-scaffold.gitignore true | ||
composer config --json extra.drupal-scaffold.allowed-packages "[\"lullabot/drainpipe\", \"lullabot/drainpipe-dev\"]" | ||
composer config --json extra.drainpipe.global-binaries.task "true" | ||
composer config --json extra.drainpipe.global-binaries.local-php-security-checker "true" | ||
``` | ||
|
||
If using DDEV (highly recommended!), additionally set `task` to be a global binary: | ||
```sh | ||
ddev composer config extra.drainpipe.global-binaries.task true | ||
``` | ||
Comment on lines
+63
to
+66
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this duplicate the lines above? |
||
|
||
Finally, require `drainpipe` and `drainpipe-dev` | ||
```sh | ||
composer require lullabot/drainpipe | ||
composer require lullabot/drainpipe-dev --dev | ||
``` | ||
|
@@ -72,7 +83,7 @@ Task is just a single binary and has no other dependencies. It's also | |
cross-platform with everything running through the same [shell interpreter](https://github.com/mvdan/sh). | ||
|
||
You can see what tasks are available after installation by running | ||
`./vendor/bin/task --list` or `ddev task --list` if you're running DDEV. To get | ||
`task --list` or `ddev task --list` if you're running DDEV. To get | ||
more information on a specific task e.g. what parameters it takes, you can run | ||
`task [task name] --summary`. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
## Usage: task | ||
## Example: "ddev task build" | ||
|
||
./vendor/bin/task "$@" | ||
task "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
COPY install-task.sh /usr/local/bin | ||
RUN chmod +x /usr/local/bin/install-task.sh | ||
# Also update .github/workflows/ValidateTaskfile.yml if changing version. | ||
RUN install-task.sh -b /usr/local/bin -d v3.28.0 | ||
deviantintegral marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
COPY install-local-php-security-checker.sh /usr/local/bin | ||
RUN chmod +x /usr/local/bin/install-local-php-security-checker.sh | ||
RUN install-local-php-security-checker.sh -b /usr/local/bin -d v2.0.6 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shellcheck recommends to remove the cat
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did it indicate an possible bug, or just using the shell instead of cat?
I would like to keep the
tee
call just because it helps to see what the generated file is in the build logs.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a warning…
This might also work: