This repo should remain private
Setting up your environement
- Clone this repository
- If required change dolibarr version in docker-compose file
cp .env.sample .env
- Edit .env (change DB password)
docker-compose up
- This will create 2 directories
dolibarr_src
: dolibarr code source and logs anddolibarr_db
: mysql files - Create a link to the dolibarr custom directory (where you should put your modules):
ln -s dolibarr_src/htdocs/custom/ src
-
sudo chown -R $(whoami):33 src/
to have the right to write your source files
Databases (For developpement)
There is a dumps/
directory in this repository holding dumps from dev the instances of Dolibarr we use
There is a dump from a database used for internal developpements. You can import it by running:
docker exec -i $(docker-compose ps -q mariadb) mysql -uroot -p'password-from.env' < dump.sql
You must set your mysql password to 7rU2//B7XEe[UrnPs6bPOWu[c]#}I>K-
after importing this dump
Troubleshooting
Cannot write my source files or cannot run git command on src/
The docker container reset the ownership of src/
to www-data (id 33), so you should run sudo chown -R $(whoami):33 src/
to regain access