A project which can build the entire DTU-Findit infrastructure
You need docker and docker-compose installed.
- Start by cloning this repo recursively which gets all the submodules.
git clone --recursive <repourl>
If you are not in the dtulibrary group you need:
./clone_all.sh
.. which asks if you want to clone via SSH (Default, only DTU members) or HTTPS (everyone else)
- Use Docker Compose to build and start all the containers.
docker-compose up
or:
./compose_start.sh
- The first time you need to create databases
./compose_first_run.sh
- Once in a while, to update the submodules you can do:
./update_submodules.sh
###Services and ports### Now you can visit
| Service | Port | Purpose |
|---|---|---|
| Findit | http://localhost:3000 | Findit frontend |
| Findit-Auth | http://localhost:3001 | Authentication system |
| DocDel | http://localhost:3002 | Document delivery |
| Getit | http://localhost:3003 | Link resolver proxy |
| Sendit | http://localhost:3004 | Communication server, sends emails |
| DocStore | http://localhost:3005 | Document store |
| http://localhost:3006 | A project management web application | |
| Alerting | http://localhost:3007 | |
| Covers | http://localhost:3008 | IIIF Compliant cover image service |
| http://localhost:3009 | ||
| http://localhost:3010 | ||
| http://localhost:3011 | ||
| http://localhost:3012 |
We added scripts to start Findit on the Swarm (docker-compose not needed)
- Start your (local) Swarm
docker swarm init
- Start a local registry
The Swarm requires you to put your images in a registry. For now we create our own registry:
./swarm_start_jenkins_registry
- Build images and put them in the registry
There is a script to build and push images to the registry, it accepts the project name as a parameter:
./swarm_build_and_push_to_registry.sh toshokan
If you want to build ALL projects do:
./swarm_build_and_push_to_registry.sh all
- Start services
./swarm_start_findit.sh
####Additional####
Here is a list of all the containers we are working on dockerizing.
Pull requests / issues welcome!