|
|
# Development
|
|
|
|
|
|
To use development mode, we recommend to use docker-compose and, optionally, Makefile.
|
|
|
|
|
|
A quick setup of development:
|
|
|
```
|
|
|
KOHAENV=dev make provision
|
|
|
```
|
|
|
|
|
|
## Makefile
|
|
|
|
|
|
run `make help` for all targets.
|
|
|
|
|
|
Targets specific to development mode:
|
|
|
|
|
|
```
|
|
|
make dump_kohadb : Dumps Koha database to /tmp/kohadump.sql
|
|
|
restore_kohadb : Restores Koha database from /tmp/kohadump.sql
|
|
|
delete_mysql_server : Stops and removes mysql server
|
|
|
delete_kohadb : stop mysql_server and deletes Koha database entirely
|
|
|
load_testdata : Load optional test data
|
|
|
reset_git : Resets git by removing and doing new shallow clone
|
|
|
reset_git_hard : Resets git by removing and doing new shallow clone
|
|
|
patch : Apply patches from bugzilla, needs PATCHES="<bugid> <bugid> <bugid>"
|
|
|
```
|
|
|
|
|
|
## Docker compose
|
|
|
|
|
|
to get environment up and running
|
|
|
```
|
|
|
cd kohadev/docker-compose && source docker-compose.env && docker-compose -f common.yml -f dev.yml up -d
|
|
|
```
|
|
|
|
|
|
for more info on configuration and ENV vars available read |
|
|
\ No newline at end of file |