soenkeliebau commented on a change in pull request #57: TRAINING-24: Add a 
Dockerfile with diagram tools.
URL: https://github.com/apache/incubator-training/pull/57#discussion_r338096023
 
 

 ##########
 File path: tools/Dockerfile
 ##########
 @@ -0,0 +1,135 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+#############################################################################
+# Dockerfile with many of the tools necessary for diagram generation
+#
+# A comprehensive list of asciidoctor diagramming tools and their
+# requirements can be found at:
+# - https://github.com/asciidoctor/asciidoctor-diagram
+#
+# You can find examples in the tools/maven-revealjs-asciidocter-template/
+# presentation. A typical presentation will not use ALL of these tools.
+#
+# To build this image:
+#
+# docker image build --build-arg USER_ID=$(id -u ${USER}) --build-arg 
GROUP_ID=$(id -g ${USER}) -t training-build .
+#
+# (Passing the `USER_ID` and `GROUP_ID` is useful to build presentations with
+# the same user and permissions inside the docker container.)
+#
+# To build a presentation using this image:
+#
+# cd incubator-training/tools/maven-revealjs-asciidocter-template/
+# docker run -it --rm --volume $PWD:/opt/workdir training-build:latest -c "mvn 
clean package"
+#
+# Alternatively, you can include a reference to your local .m2 to speed up the 
build:
+#
+# docker run -it --rm --volume $HOME/.m2:/home/docker-user/.m2 --volume 
$PWD:/opt/workdir training-build:latest
+#
+# To run the presentation using jetty:
+#
+# docker run -it --rm --publish 58080:8080/tcp --volume 
$HOME/.m2:/home/docker-user/.m2 --volume $PWD:/opt/workdir 
training-build:latest -c "mvn jetty:run-exploded"
+#
+# Alternatively, you can serve the pages in the target/generated-slides/
+# directory using any web server:
+#
+# docker run -d --name my-tmp-httpd -p 58080:80 -v 
$PWD/target/generated-slides/:/usr/local/apache2/htdocs/:ro httpd:2.4
+#
+
+# Start bt building some tools using a multistage docker.
 
 Review comment:
   Typo?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to