Git Product home page Git Product logo

docker-munki's Introduction

docker-munki

A container that serves static files at http://munki/repo using nginx.

nginx expects the munki repo content to be located at /munki_repo. Use a data container and the --volumes-from option to add files.

Creating a Data Container:

Create a data-only container to host the Munki repo:
docker run -d --name munki-data --entrypoint /bin/echo nmcspadden/munki Data-only container for munki

For more info on data containers read Tom Offermann's blog post and the official documentation.

Run the Munki container:

If you have an existing Munki repo on the host, you can mount that folder directly by using this option instead of --volumes-from:

-v /path/to/munki/repo:/munki_repo

Otherwise, use --volumes-from the data container:
docker run -d --name munki --volumes-from munki-data -p 80:80 -h munki nmcspadden/munki

Populate the Munki server (optional):

The easiest way to populate the Munki server is to hook the munki-data volume up to a Samba container and share it out to a Mac, using my SMB-Munki container:

  1. docker pull nmcspadden/smb-munki
  2. docker run -d -p 445:445 --volumes-from munki-data --name smb nmcspadden/smb-munki
  3. You may need to change permissions on the mounted share, or change the samba.conf to allow for guest read/write permissions. One example:
    chown -R nobody:nogroup /munki_repo
    chmod -R ugo+rwx /munki_repo
  4. Populate the Munki repo using the usual tools - munkiimport, manifestutil, makecatalogs, etc.

docker-munki's People

Contributors

groob avatar nmcspadden 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.