Before starting docker
- add config.local.neon to config folder (default configuration or ask colleague to send it to you)
- in config.local.neon edit host value in database parameter to db so the result will be mysql:host=db;dbname=xxxx
- in ./.docker/.env edit PROJECT_NAME environment
- upload sql to folder ./.docker/build/database name and extension is based on .env setting (needs to be same -> default is db.sql.gz)
- setup hosts
- windows: in C:\Windows\System32\drivers\etc (must have elevated privileges and set up privilege to edit it) add row "127.0.0.1 project.test www.project.test"
- linux/mac: in /etc/hosts (must have elevated privileges) add row "127.0.0.1 project.test www.project.test"
- download and install docker https://www.docker.com/
- run script from ./.docker/<your OS>/up.<OS extension> to start docker container
- do your work
- to end docker container run ./.docker/<your OS>/down.<OS extension>
- wait for the database to start up (in docker db log should be something like "Ready for connections")
Alternative way of running docker container
Alternatively to up and down files, you can use script inside of that files (it starts docker container the same way, but it is longer to write or copy to terminal)
To run that script properly, you need to run it in ./.docker/<your OS> folder.
Open project
After everything above done. Then open site project.test
Actually on esd-clevertex and conso (conso newer)