Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

iHat

iHat is a pure-API conversion service that allows applications to convert from and to an array of formats. It’s built to support Tahi’s needs of converting manuscripts.

iHat follows the JSON API standard.

Traditional install:

Dependencies

PostgreSQL

Create a role for the iHat PosgreSQL user:

   createuser -s ihat

Create the database:

    rake db:setup
    rake db:setup RAILS_ENV=test

Bundle:

   bundle

Config:

   cp .env-sample .env
  • update .env with your current configuration

Install with Docker

Dependencies

Docker

Install Docker

brew cask install boot2docker

Instructions for boot2docker:

  boot2docker init
  boot2docker up

Configure boot2docker

for zsh:

  echo "export DOCKER_HOST=tcp://$(boot2docker ip):2376" >> $HOME/.zshrc
  echo "export DOCKER_CERT_PATH=$HOME/.boot2docker/certs/boot2docker-vm" >> $HOME/.zshrc
  echo "export DOCKER_TLS_VERIFY=1" >> $HOME/.zshrc
  echo '$(boot2docker shellinit 2>/dev/null)' >> $HOME/.zshrc

for bash:

  echo "export DOCKER_HOST=tcp://$(boot2docker ip):2376" >> $HOME/.bashrc
  echo "export DOCKER_CERT_PATH=$HOME/.boot2docker/certs/boot2docker-vm" >> $HOME/.bashrc
  echo "export DOCKER_TLS_VERIFY=1" >> $HOME/.bashrc
  echo '$(boot2docker shellinit 2>/dev/null)' >> $HOME/.bashrc

Fig

Install Fig

  curl -L https://github.com/docker/fig/releases/download/1.0.1/fig-`uname -s`-`uname -m` > /usr/local/bin/fig; chmod +x /usr/local/bin/fig

or

  sudo pip install -U fig

Build the docker image

  fig build
  fig run web rake db:setup

Run the image

  fig up

Open it:

  open http://$(boot2docker ip):3000

Supported Formats

It currently supports the following format conversions:

Roadmap

Along with adding more formats and renderers, here’s the list of features on the roadmap:

  • Background Jobs
  • Heuristics
  • Sanitization
  • Webhook support
  • Docker for easy deployment

Download the slides that started it all.

Docker Pull Command
Owner
tahi
Source Repository

Comments (0)