Help setting up DDEV in CircleCI? #3219
-
|
Hi! There's a brief mention in the docs of using DDEV in CircleCI to spin up a site but no sample configuration; I'd love to try this approach so I can just re-use ddev to spin up the site in test environment, but need some help! I'm getting stuck on how to actually run ddev -- CircleCI seems to require you to run docker commands in a remote executor environment which doesn't have the same filesystem binding as a local docker instance would; so when I get to the
Here's what the circleci config looks like: version: 2
jobs:
build:
docker:
- image: cimg/php:7.4-browsers
steps:
- checkout
- setup_remote_docker:
version: 20.10.6
- run:
name: Install ddev
command: |
curl -LO https://raw.githubusercontent.com/drud/ddev/master/scripts/install_ddev.sh && bash install_ddev.sh
- run:
name: Start server running
command: |
ddev start -yAny thoughts on this? I'd be happy to post a sample working config so it can be linked in the docs once I get it working.. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
You have to use the |
Beta Was this translation helpful? Give feedback.
-
|
Just for posterity, and because I keep finding this thread when looking up "CircleCI ddev" - I'm leaving a working link here, for the last tagged release which included the CircleCI directory after which it was removed meaning the above link doesn't work anymore, but this does: https://github.com/ddev/ddev/tree/v1.24.10/.circleci |
Beta Was this translation helpful? Give feedback.
You have to use the
machineexecutor type. See ddev's own CircleCI setup, https://github.com/ddev/ddev/tree/v1.24.10/.circleci