Local Development with Docker
Preparation:
- Ensure the git-lfs is installed (GIt Large File System) - see https://git-lfs.github.com
- Checkout the source code via git
Powermail delivers two options for local development with docker:
- DDEV Support
- Native Docker Support (in2code Standard)
DDEV
Use DDEV as it is described in the DDEV documentation. Take care, that you use the latest version of DDEV.
- open the terminal in the root folder of the extension
- start the project with:
ddev start - import the test data:
ddev initialize(this step is only needed, if you start the project for the first time)
Native Docker Support
- open the terminal in the root folder of the extension
- Prepare the project with
make install-project - start the http proxy with
docker run -d - v / var/ run/ docker. sock:/ tmp/ docker. sock: ro - v ~/. dinghy/ certs:/ etc/ nginx/ certs - p 80: 80 - p 443: 443 - p 19322: 19322/ udp - e DNS_ IP=127. 0. 0. 1 - e CONTAINER_ NAME=http- proxy -- name http- proxy in2code/ http- proxy - Start the project with
make start - If you stop the project use
make stop
Tip: To stop the http-proxy use: docker stop $ docker rm http-
Note: You cannot run DDEV Setup next to the "native" docker setup