ddev | Docker-based local PHP+Node.js web development environments | Continuous Deployment library

 by   drud Go Version: v1.21.5-alpha1 License: Apache-2.0

kandi X-RAY | ddev Summary

kandi X-RAY | ddev Summary

ddev is a Go library typically used in Devops, Continuous Deployment, Docker, Wordpress, Drupal applications. ddev has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

ddev is an open source tool that makes it simple to get local PHP development environments up and running in minutes. It's powerful and flexible as a result of its per-project environment configurations, which can be extended, version controlled, and shared. In short, ddev aims to allow development teams to use Docker in their workflow without the complexities of bespoke configuration.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              ddev has a medium active ecosystem.
              It has 1692 star(s) with 444 fork(s). There are 42 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 107 open issues and 2029 have been closed. On average issues are closed in 21 days. There are 9 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of ddev is v1.21.5-alpha1

            kandi-Quality Quality

              ddev has 0 bugs and 0 code smells.

            kandi-Security Security

              ddev has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              ddev code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              ddev is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              ddev releases are available to install and integrate.
              Installation instructions are available. Examples and code snippets are not available.
              It has 26701 lines of code, 999 functions and 275 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ddev
            Get all kandi verified functions for this library.

            ddev Key Features

            No Key Features are available at this moment for ddev.

            ddev Examples and Code Snippets

            No Code Snippets are available at this moment for ddev.

            Community Discussions

            QUESTION

            DDEV/docker-compose: Bind-mount a path with an absolute path
            Asked 2022-Mar-31 at 18:24

            I'm trying to define a volume in ddev like this:

            Filename: docker-compose.salesforce.yaml

            Contents:

            ...

            ANSWER

            Answered 2022-Mar-31 at 06:51

            You're trying to mount ~/JWT from the host into ~/JWT inside the container?

            The environment variables are evaluated on the host by docker-compose, which doesn't know anything about what's inside the container, so you'll need to use absolute paths for inside the container, as you already did.

            I think this might work for you on Linux or macOS:

            Source https://stackoverflow.com/questions/71683665

            QUESTION

            Corporate network: `ddev composer create` results in "ssl certificate error"
            Asked 2022-Mar-28 at 05:21

            I'm running ddev under wsl2. I'm behind the zscaler proxy. I was able to copy the zscaler cert to ubuntu "/usr/local/share/ca-certificates" and ran "sudo update-ca-certificates". After that i was able to install homebrew and ddev. However, when i created the drupal 9 site and use the command "ddev composer create "drupal/recommended-project" --no-install", it gave me "ubuntu curl: (60) ssl certificate problem: self signed certificate in certificate chain". I also tried to copy the zscaler cert into the web container but still got the same issue. How do I circumvent this issue?

            ...

            ANSWER

            Answered 2022-Mar-23 at 23:49

            This is a problem that you and your IT department will have to solve. I imagine you have not just a proxy but also the VPN you're using is likely doing deep packet inspection and has a replacement CA for the trusted CA that the rest of the internet uses.

            If you don't have a VPN, but only a proxy, then you need to properly configure docker for the proxy, see https://github.com/drud/ddev-contrib/tree/master/recipes/proxy - but since you're getting untrusted certs, it looks to me like there's more going on than just a proxy.

            If your IT department can provide you with a replacement CA crt you can put it into .ddev/web-build and add a .ddev/web-build/Dockerfile like this:

            Source https://stackoverflow.com/questions/71595327

            QUESTION

            `ddev magento` results in `permission denied: unknown`
            Asked 2022-Mar-23 at 17:45

            After running ddev start i cannot run magento commands from outside of the container.

            ...

            ANSWER

            Answered 2022-Mar-23 at 17:45

            You don't mention your environment but I imagine you're on macOS with Docker and have enabled experimental settings. Please turn them off... they don't really work right yet. See macOS DDEV drush command Permission denied (Experimental docker settings)

            Source https://stackoverflow.com/questions/71590413

            QUESTION

            Renaming a ddev project
            Asked 2022-Mar-22 at 21:24

            We are a group of developers that work on multiple ddev projects. Some of these projects have a "." in their name, which by now breaks the PhpStorm integration.

            Is there an easy way to rename a project and allow all other developers to tell ddev (after they pulled the new ddev config.yaml), what the previous project name was, so data (like database) could be migrated?

            ...

            ANSWER

            Answered 2022-Mar-22 at 21:24

            Please use the instructions in the DDEV FAQ "How can I change the name of a project?"

            Use this process:

            1. Export the database of the project: ddev export-db --file=/path/to/db.sql.gz
            2. ddev delete . By default this will make a snapshot, which is a nice safety valve.
            3. Rename the project, ddev config --project-name=
            4. ddev start
            5. ddev import-db --src=/path/to/db.sql.gz

            Source https://stackoverflow.com/questions/71578859

            QUESTION

            macOS DDEV drush command Permission denied (Experimental docker settings)
            Asked 2022-Mar-22 at 12:31

            When I updated ddev version 1.19.0 then drush command doesn't work.

            ...

            ANSWER

            Answered 2022-Mar-22 at 00:56

            You don't say much about your environment, but I imagine you're on macOS and you installed Docker Desktop 4.6.0+ and you enabled the experimental virtualization and VirtioFS features. Please uncheck them, they're not ready for prime time. For performance, I recommend enabling mutagen, people love it, https://ddev.readthedocs.io/en/latest/users/performance/#using-mutagen

            Source https://stackoverflow.com/questions/71565708

            QUESTION

            How do I reach a ddev site from LAN with docker-ce in an WSL2 enviroment?
            Asked 2022-Mar-15 at 13:11

            When configuring ddev with a project TLD it becomes unreachable when replacing "docker desktop" with "docker-ce".

            project_tld: testing

            How can I reach the project again from my local machine and from our company LAN?

            ...

            ANSWER

            Answered 2022-Mar-15 at 13:11

            The reason for the website becoming unreachable is that WSL2 only binds ports to the localhost and not to every interface.
            Docker desktop itself binds to every interface and forwards everything to WSL2 that is why it worked. For docker-ce a manual solution is required.
            The problem is documented in the wsl documentation and a solution is described.
            A script for discovering and setting the port forwarding automatically is found in an older WSL2 issue on github.

            With the localhostForwarding option set (documentation) for WSL2 the following commands work too:

            netsh interface portproxy add v4tov4 listenport=80 connectport=80 connectaddress=127.0.0.1
            netsh interface portproxy add v4tov4 listenport=443 connectport=443 connectaddress=127.0.0.1

            In some future version Microsoft may bring the bridged networking option back for WSL2 see issue discussion.

            Source https://stackoverflow.com/questions/71482848

            QUESTION

            Weird interference between two DDEV projects using PostgreSQL
            Asked 2022-Mar-14 at 00:27

            I am working on two Drupal (7 and 9) projects which use PostgreSQL (based on the procedure described here). I noticed errors when they are both running at the same time: Drupal 7 will complain the variable table does not exist, while Drupal 9 will disconnect me or display some kind of WSOD. Oddly enough, they can randomly work correctly or crash again on page reload. However, it gets perfectly fine when I turn one off.

            All this makes me think of some trouble with the way I configured PostgreSQL. Could you please help me find what might be wrong in my setup?

            Here is my configuration for Drupal 9. docker-compose.postgres.yaml:

            ...

            ANSWER

            Answered 2022-Mar-14 at 00:27

            Update for DDEV v1.19+

            1. Postgres is now available of the box with DDEV, so there is no need for an additional service/container.
            2. You no longer have to use an explicit name for the container, since the networking in DDEV is now more sophisticated.

            --------- Original Answer Below ----------

            You're using $host = "postgres";, please use the explicit name of the postgres container, ddev--postgres

            The hostname postgres is ambiguous inside the docker network when you're running more than one project that has a service named "postgres". So you're getting the behavior you see.

            A PR to the ddev-contrib recipe would be appreciated; this has been updated in lots of the ddev-contrib recipes since the problem was discovered a year or so ago, but apparently not this one.

            Source https://stackoverflow.com/questions/69943809

            QUESTION

            volume already exists but was not created by Docker Compose
            Asked 2022-Mar-12 at 00:02

            This is what i get after i use ddev start on new or any other projects. I clear all docker images, volumes, etc... and problem repeats again...

            Does anybody has the same problem, does it have any connection with versions:

            • Docker version 20.10.11
            • Docker Compose version 2.2.0
            • ddev version v1.18.0
            ...

            ANSWER

            Answered 2022-Mar-12 at 00:02

            This is worked around in DDEV v1.18.2+ (and v1.19+), please upgrade. It was a bug in docker-compose 2.2.0+ - please see https://github.com/drud/ddev/issues/3404 for context.

            Source https://stackoverflow.com/questions/70163785

            QUESTION

            Run ddev containers on port 80, solve port conflict
            Asked 2022-Feb-16 at 17:37

            Instead of using ddev share, I want to run ddev applications on a virtual server (Hetzner, Ubuntu installed, pre-installed docker ce).

            As docker already reserved port 80: Is there a way to forward a specific ddev port to the same port listening to docker?

            ...

            ANSWER

            Answered 2022-Feb-16 at 17:37

            Docker itself does not use ports 80 or 443, so you have something else running there (the most common offender is going to be apache). The docs at https://ddev.readthedocs.io/en/latest/users/troubleshooting/#webserver-ports-are-already-occupied-by-another-webserver explain how to debug this. Since it says docker-proxy is running there, it probably means that you have a docker container already running and bound to port 80.

            Try these things:

            • ddev poweroff (to make sure all ddev things are stopped)
            • docker ps -a will show you other containers that may be running
            • docker rm -f $(docker ps -aq) will stop all running containers.

            I think when you do these things you'll find docker not listening any more; now you just have to find out why it was listening.

            As you already know, the docs for various kinds of sharing are at https://ddev.readthedocs.io/en/latest/users/topics/sharing/ and you may also be interested in the general on-server approaches in https://ddev.readthedocs.io/en/latest/users/alternate-uses/#casual-project-webhosting-on-the-internet-including-lets-encrypt

            Source https://stackoverflow.com/questions/71145442

            QUESTION

            DDEV/Laravel/PHPUnit: Problems with setup in PhpStorm
            Asked 2021-Dec-29 at 16:32

            Using Laravel with DDEV/Docker on a Mac, I am stuck getting PhpStorm to run directly PHPUnit with coverage. I am following these instructions: https://ddev.readthedocs.io/en/stable/users/topics/phpstorm/

            I started the setup with

            ...

            ANSWER

            Answered 2021-Dec-29 at 10:26

            With composer version 2.2 the phpunit executable in vendor/bin is not a symlink anymore. It‘s a PHP file which includes the original executable with help of stream-wrapper, but including phpunit is not allowed: https://github.com/sebastianbergmann/phpunit/issues/4096#issuecomment-585900398

            The bug is solved in composer: https://github.com/composer/composer/issues/10387#issuecomment-1000246631

            Use the following to get the latest dev version until this fix was official released:

            Source https://stackoverflow.com/questions/70514078

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install ddev

            Read the Basics and Choose a CMS Quick Start Guide:. Having trouble? See our support options below. You might have trouble if another local development tool is already using port 80 or 443.
            Check System Requirements: We support recent versions of macOS, Windows 10, and Linux distributions that will run Docker (ddev requires Docker and docker-compose). (more info here).
            Install ddev: Options include macOS homebrew (recommended), an install script, or manual installation.
            Read the Basics and Choose a CMS Quick Start Guide: DDEV-Local Basics PHP (Generic Project) Quickstart WordPress Quickstart Drupal 6 and 7 Quickstart Drupal 8 Quickstart Drupal 9 Quickstart Backdrop Quickstart TYPO3 Quickstart Magento 1 Quickstart Magento 2 Quickstart Laravel Quickstart Shopware 6 Quickstart

            Support

            We love to hear from our users and help them be successful with ddev. Support options include:.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link