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

Legacy Docker file to build Underscore books. Replaced by underscore-ebook-template.

License

Notifications You must be signed in to change notification settings

underscoreio/book-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Legacy Docker file to build Underscore books. Replaced by underscore-ebook-template.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published