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

refresh global-binaries branch w/latest from main #229

Merged
merged 5 commits into from
Jul 24, 2023

Conversation

hawkeyetwolf
Copy link
Contributor

No description provided.

justafish and others added 5 commits July 11, 2023 20:07
Add the following to `composer.json` to add Tugboat configuration:

```json
{
    "extra": {
        "drainpipe": {
            "tugboat": {}
        }
    }
}
```

The following will be autodetected based on your `.ddev/config.yml`:
- Web server (nginx or apache)
- PHP version
- Database type and version
- nodejs version
- Redis (Obtained with `ddev get ddev/ddev-redis`)

Additionally, Pantheon Terminus can be added:
```json
{
    "extra": {
        "drainpipe": {
            "tugboat": {
              "terminus": true
            }
        }
    }
}
```

It is assumed the following tasks exist:
- `build`
- `sync`

The `build` and `sync` tasks can be overridden with a `build:tugboat` and
`sync:tugboat` task if required (you will need to re-run `composer install` to
regenerate the Tugboat scripts if you  are adding this task to your
`Taskfile.yml` for the first time).

```
  sync:
    desc: "Fetches a database from Pantheon and imports it"
    cmds:
      - task: pantheon:fetch-db
      - task: drupal:import-db
  sync:tugboat:
    desc: "Fetches a database from Pantheon and imports it in Tugboat"
    cmds:
      - task: pantheon:fetch-db
        vars:
          DB_DIR: /var/lib/tugboat/files/db
      - task: drupal:import-db
        vars:
          DB_DIR: /var/lib/tugboat/files/db
```

>>>
💡
`composer install` should be re-run if any changes are made to the DDEV
configuration.
>>>

You can hook into the `init` step of images by adding them to your
`Taskfile.yml`, e.g.

```
tugboat:php:init:
  cmds:
    - apt-get install -y libldap2-dev
    - docker-php-ext-install ldap
```

---------

Co-authored-by: Andrew Berry <[email protected]>
@hawkeyetwolf hawkeyetwolf merged commit 272d241 into 172--global-binaries Jul 24, 2023
26 of 29 checks passed
@github-actions github-actions bot had a problem deploying to pantheon-pr-229 July 24, 2023 18:28 Failure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants