Skip to content

Dockerized TPC Documentation

goldturtle edited this page Jan 9, 2021 · 42 revisions

Build Images

Build ubuntu-tpc-hmm

  1. Clone the libtpc repository.
  2. Entering the libtpc directory, Change to the branch hmm.
  3. Build the image.

docker build --no-cache -t ubuntu-tpc-hmm .

Build tpc-full-hmm and tpc-lite-hmm

  1. Clone the docker-tpc-hmm repository.
  2. Clone the textpressocentral, tpctools and textpressoapi repositories. For all three repositories, switch to branch hmm.
  3. Entering the docker-tpc-hmm directory, build the tpc-full-hmm image.

docker build -f Dockerfile-full -t tpc-hmm-full .

  1. Edit build-lite.sh to point to the correct directories for the cloned repositories textpressocentral, tpctool and textpressoapi.
  2. Build the tpc-lite-hmm image

./build-lite.sh tpc-lite-hmm .

Build a Site

Start a tpc-full-hmm Instance

  1. Enter the docker-tpc-hmm directory
  2. Edit run_tpc_full.sh to point to the correct directories for the cloned repositories textpressocentral, tpctool and textpressoapi.
  3. Start the instance by typing

./run_tpc_full.sh <data directory> <port for website> <port for api>

Build Software, Start Postgres, Populate Database

Run Pipeline

Clone this wiki locally