Skip to content

Latest commit

 

History

History
54 lines (46 loc) · 1.59 KB

README.md

File metadata and controls

54 lines (46 loc) · 1.59 KB

Using Translation-Gummy via Docker (Docker Compose)

This directory contains docker-compose.yml and environment files (stored at env/) to make it easy to get up and running with Translation-Gummy via Docker Compose.

Installing Docker Compose

General installation instructions are on the Docker site.

Store Fonts

# Open these directory and Copy your favorite font to 'fonts' dir.
$ open /System/Library/Fonts
$ open /Library/Fonts
$ open $HOME/Library/Fonts
$ copy /path/to/font.ttf[ttc] fonts/

Running the container

I prepare Makefile to simplify docker-compose commands within make commands.

  • Build the container and translate journal.
    $ make bash
    (docker)> gummy-journal "https://www.nature.com/articles/ncb0800_500" \
                                            -G "useless" \
                                            -T "deepl" \
                                            -O .
  • Build the container and start a Jupyter Notebook.
    $ make notebook
  • Build the container and mount examples, then start a Jupyter Notebook.
    $ make examples
  • Build the container and start an iPython shell.
    $ make ipython
  • Build the container and start a bash.
    $ make bash
  • Mount a volume for external data sets.
    $ make DATA=~/mydata
  • Prints all make tasks.
    $ make help