This repository contains submodules for all of the services that compose Research Coder,
as well as a top-level orchestration with docker-compose.
Clone the repository with
git clone --recursive https://github.com/uab-energetics/rc-master
cd rc-masterIf you didn't use the --recursive switch, you can always clone all of the submodules with
git submodule update --init --recursiveYou may then wish to checkout a particular branch across all of the submodules (replacing master with the desired branch):
git submodule foreach git checkout master- Or just cd into a submodule directory and checkout whatever branch you want
Of course, you'll want docker and docker-compose. If you don't add your user to the docker group, you may have to prefix following commands with sudo.
Make your public and private authentication keys:
./scripts/generate-keys.shCreate the docker network research-coder:
./scripts/create-network.shYou'll first want to build and start all of the services:
docker-compose up -d --buildSome of our services require some additional database setup before they're ready. Run the following to get everything squared away:
./scripts/migrate-seed.shBy default, the source directories of each submodule will be mapped into their respective container, and will update in real-time. This allows for:
- developing locally without constantly rebuilding containers
- eliminates downloading dependencies just to make changes e.g.
vendorandnode_modules - this will only work if a service doesn't require a build step or has a file-watcher
- changing a service's dependencies requires a rebuild of the container