8000 GitHub - jhn/tobias: cv + rtb · GitHub
[go: up one dir, main page]

Skip to content
jhnPublic

About

cv + rtb

Resources

Stars

1 star

Watchers

3 watching

Forks

Latest commit

 

History

113 Commits

Folders and files

Repository files navigation

Tobias

A CV + RTB platform.

What it does

  1. Receives images with some environment information from the UI
  2. Sends images to the CV service to get some demographics
  3. Forwards demographic information to advertisers
  4. Advertisers bid, someone wins
  5. Sends winning bid image back to UI for displa 6755 y

Running it

Dependencies

Steps

Create standard uberjar, build the Docker image, run it like the wind.

  1. Create uberjar

    lein uberjar
    
  2. Build Docker image

    docker build -t tobias .
    
  3. Run image

    docker run \
      -d              # as daemon
      -p 80:3000 \    # internet:jetty
      -p 3001:3001 \  # internet:nrepl
      --name tobias   # container name
      tobias          # our image

If running somewhere else, before running the image either:

  1. Push Tobias to a Docker registry
  2. Pull Tobias from the registry

Or

  1. Save image as tar

    docker save -o tobias.tar tobias
    
  2. Copy image to target server

    scp tobias.tar user@host:path
    
  3. Load image in target

    docker load -i tobias.tar
    

About

cv + rtb

Resources

Stars

1 star

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages

0