Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.13 KB

BUILDING_MANUALLY.md

File metadata and controls

41 lines (31 loc) · 1.13 KB

Building Manually

There are DNS problems when running containers in Ubuntu within the TCD network. This can be resolved while on the TCD network by editing the Docker DNS config.

$ echo '{"dns": ["134.226.251.200", "134.226.251.100"]}' | sudo tee -a /etc/docker/daemon.json
$ sudo service docker restart

You should revert these settings when leaving the TCD network by running

$ sudo rm /etc/docker/daemon.json
$ sudo service docker restart
  1. Clone the Repo
$ git clone https://github.com/tom-and-the-toothfairies/pathways.git
  1. Build with Docker
$ cd pathways
$ sudo docker build -t tomtoothfairies/asclepius asclepius
$ sudo docker build -t tomtoothfairies/panacea panacea
$ sudo docker build -t tomtoothfairies/chiron chiron
$ sudo docker build -t tomtoothfairies/athloi athloi
  1. Run the tests
$ sudo docker run -t -e "MIX_ENV=test" tomtoothfairies/panacea mix test
$ sudo docker run -t tomtoothfairies/asclepius pytest
$ sudo docker-compose -f docker-compose.e2e.yml -p integration run athloi; sudo docker-compose -f docker-compose.e2e.yml -p integration down