You can easily create your own Breedbase site using this repo. For developers, the breedbase_dockerfile
repo is recommended.
As a prerequisite, you have to install docker
, docker compose
, and git
on your machine; follow the instructions appropriate for your operating system.
After the installation of the prerequisites, clone this repo and start the docker from within the repo directory, then enter the docker and run the db update script:
git clone https://github.com/solgenomics/breedbase_site
cd breedbase_site
docker compose up -d
# enter into the docker
docker exec -it breedbase_web bash
# run the db update script
db/run_all_patches.pl -h breedbase_db -u postgres -p postgres -d breedbase -e admin -s 150
A webpage should become accessible through a browser at localhost:8080
.
You can login using the following credentials:
username: admin
password: password
That's all there is to it!
To update the docker, run the following steps:
cd breedbase_site
docker pull breedbase/breedbase:latest
docker compose down
docker compose up -d
docker exec -it breedbase_web bash
db/run_all_patches.pl -h breedbase_db -u postgres -p postgres -d breedbase -e admin -s 150