Commit graph

5 commits

Author SHA1 Message Date
Kosta Harlan
c27eda79a0 [docker] Use a .env file for setting the port and user
- allows for cleanly overriding host exposed port
- easier to override XDebug settings
- easier setup for Linux hosts

When wikimedia/fresh is updated with https://github.com/wikimedia/fresh/pull/18,
we can simplify the Selenium / API testing instructions too (removing the
`export` statements).

Bug: T246586
Bug: T246588
Change-Id: Ibd266411636ac144789617bb0999c33a83e9e652
2020-04-01 17:29:14 +02:00
jenkins-bot
f7c24dc564 Merge "[docker] Bump base image to 0.1.0" 2020-03-03 18:57:00 +00:00
Kosta Harlan
71ccea79f5 [docker] Set log directory by default
This seems like a good default to have rather than requiring a developer to
override it via docker-compose.override.yml

It won't be used unless DevelopmentSettings.php is required in
LocalSettings.php.

Bug: T246548
Change-Id: Ia1a95ab03f3f2af8ed3e1149e0f34124af5adf06
2020-02-29 21:43:59 +01:00
Kosta Harlan
4fe4bb5959 [docker] Bump base image to 0.1.0
* Add support for profiling with Tideways XHProf extension

Depends-On: Ic80a6e3a433bbb9535ec99caa82ef0b36f13b3f2
Bug: T246202
Change-Id: Ia7bf473e2807bb2d84af76ae7293e5d3a539573e
2020-02-26 11:25:58 +01:00
Kosta Harlan
89083ea868 Add configuration for Docker based development environment
This patch introduces a simple docker-compose based development environment
with the idea to allow most development use cases for beginning and
experienced MediaWiki developers.

- PHP and Apache container with XDebug enabled
- Support for overriding services with docker-compose override file
- Documentation for usage and a documented place for sharing docker-compose
  overrides and LocalSettings.php configuration snippets for e.g. MySQL,
	DB replication, Redis, etc

Depends-On: I50079cca6a286d8aaea8fd0785be48c80e80271c
Bug: T238224
Change-Id: I3b76c1599b1ff32174af5603aadc9f7c7634c98b
2020-02-21 10:09:48 +00:00