Giter Site home page Giter Site logo

fviolette / dita-ot-project-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dita-community/dita-ot-project-docker

0.0 1.0 0.0 998 KB

Provides Docker image definitions for the DITA OT as released by the DITA OT project

Home Page: http://www.dita-community.org/dita-ot-project-docker

License: Apache License 2.0

dita-ot-project-docker's Introduction

DITA Open Toolkit Project Docker Configurations

Configuration files for Docker containers for the base DITA Open Toolkit as released by the DITA Open Toolkit project (http://dita-ot.org).

This project provides Docker configuration files (Dockerfile) for Docker containers that provide DITA Open Toolkit images that reflect the out-of-the-box DITA Open Toolkit.

See http://www.dita-community.org/dita-ot-project-docker/ for the full documentation on how to use and extend the DITA OT containers.

The dita-ot-base container provides an extendable container that can be used to create additional containers with additional plugins or other resources added.

The dita-ot container is a working container that provides the volumes needed by other containers to work with the Open Toolkit or use the container with files on the host machine. It cannot be used for extension (because the volume containing the Open Toolkit itself gets reset on subsequent layers once it's set in the Dockerfile).

The base container defines two volumes intended to be mount points for host directories:

  • VOLUME /opt/dita-ot/data - Mount directory containing the source data to process.
  • VOLUME /opt/dita-ot/out - Mount directory to hold output. This directory must be writable by the OT process. If you are using Docker for Mac or Docker for Windows, any directory under /Users should be fine.

In addition, working DITA OT containers should define the volume /opt/dita-ot/DITA-OT, which makes the DITA OT itself available to other containers via the --volumes-from Docker runtime parameter (for example, to access the OT-managed catalog-dita.xml master entity resolution catalog).

To generate the HTML5 version of the project Web site, do the following:

  1. If you haven't ready, make a new clone of the project and check out branch "gh-pages". This clone will be the target of the output
  2. Run the following Docker command (OS X version, for Windows add "/c" before "/Users" in the -v parameter):
docker run \
  -v /Users/ekimber/workspace-dita-community:/opt/dita/data dita4publishers/dita-ot \
  ant -Dargs.input /opt/dita/data/dita-ot-project-docker/docs/dita-ot-docker-guide.ditamap \
      -Doutput.dir /opt/dita/data/dita-ot-project-docker_gh-pages \
      -Dtranstype d4p-html5

Where "/Users/ekimber/workspace-dita-community" is the directory you have both clones of the project. This directory must be under the /Users directory. 3. Check the generated HTML in the gh-pages clone. If it's good, commit and push.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.