Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Latest commit

 

History

History
42 lines (24 loc) · 1.19 KB

README.md

File metadata and controls

42 lines (24 loc) · 1.19 KB

Docker Setup for Underscore Book Builds

NOTE: THIS HAS BEEN REPLACED BY THE DOCKER TEMPLATE IN
https://github.com/underscoreio/underscore-ebook-template

This Dockerfile defines a container with all dependencies required to build Underscore's books, such as Creative Scala

Usage

To use this template you should:

  • install Docker Compose (brew install docker-compose on OS X; or download from docker.com);
  • copy docker-compose.yml to the directory where the book source is checked out;
  • run docker-compose run book bash.

This will setup a shared filesystem so the material on your local filesystem can be seen by the Docker container and turned into a book, and give a bash prompt to interact with the Docker container.

Within the bash prompt you most likely want to run sbt to build the book. For example, running

sbt pdf

to generate a PDF version of the book you're working on.

Building

To create a new version of this container

docker build -t underscore/book .

Once it is built, login and push it to Docker Hub

docker login 
docker push underscore/book:latest