Giter VIP home page Giter VIP logo

docker-present's Introduction

Docker Present

This project is a simple Dockerfile that does a go get for the present tool and makes it easy to run the present tool anywhere.

Examples

Running it directly

Run it directly by mounting a volume with the location of your .slide files docker run -d -p 3999:3999 -v /mylocalslides:/app mkboudreau/go-present

If you need to run it on a host that has a different externalized host/ip, then pass you can pass in the environment variable EXTERNAL_HOST and it will set the value into the go present tool.

Running with the EXTERNAL HOST variable docker run -d -p 3999:3999 -v /mylocalslides:/app -e "EXTERNAL_HOST=10.222.1.50" mkboudreau/go-present

Baking your presentation

If you'd like to bake in your slides and make them really portable, all you have to do is put a Dockerfile alongside your slides. Your Dockerfile only needs one line: FROM mkboudreau/go-present:latest-onbuild

docker build -t <yourrepo>/<yourtag> .

Then just run your baked presentation with or without the -d docker run -d -p 3999:3999 <yourrepo>/<yourtag>

Customizing the bake

If you need more control over your prebaking, if your slides are in some nested directory or something, simply use FROM mkboudreau/go-present:latest instead of onbuild and then use COPY <your actual dir> /app

docker-present's People

Contributors

mkboudreau avatar

Watchers

 avatar

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.