Giter VIP home page Giter VIP logo

docker-reposado's Introduction

docker-reposado

Docker container for Reposado.

To run this container:

Make a data-only container:
docker run -d --name reposado-data --entrypoint /bin/echo nmcspadden/reposado Data-only container for reposado

Configure preferences.plist with any custom settings you want. See the Reposado documentation for details.

Run the container itself:
docker run -d --name reposado --volumes-from reposado-data -h reposado nmcspadden/reposado

If you want to pass in a custom preferences.plist:
docker run -d --name reposado --volumes-from reposado-data -h reposado -v preferences.plist:/reposado/code/preferences.plist nmcspadden/reposado

If you want to map to a port other than port 80 (if, for example, you're already running Munki on port 80), use the -p option. This will map reposado to port 8080 on the host instead:
docker run -d --name reposado --volumes-from reposado-data -p 8080:80 -h reposado nmcspadden/reposado

Using Reposado:

Configuring a client can be done with:
defaults write com.apple.SoftwareUpdate CatalogURL http://docker_ip/content/catalogs/<catalogURL>
where docker_ip is the IP address of your Docker host, and <catalogURL> is one of the available catalogs.

This container includes automatic URL rewrites for "/index.sucatalog". You can simplify client configuration by pointing all clients to that central index:
defaults write com.apple.SoftwareUpdate CatalogURL http://docker_ip/index.sucatalog

From the Reposado URL rewrite documentation:, you can test out the URL rewrites using curl:
curl --user-agent "Darwin/11.4.0" http://docker_ip:8080/content/catalogs/index.sucatalog > /tmp/testing
where docker_ip is the IP address of your Docker host.

Then, check the catalog you downloaded to see the CatalogName key:
$ tail -5 /tmp/testing

	<key>_CatalogName</key>  
	<string>index-lion-snowleopard-leopard.merged-1_testing.sucatalog</string>  
</dict>  
</plist>

To sync the repo:
docker exec reposado python /reposado/code/repo_sync

See the Reposado documentation for reference on how to use repoutil, but all commands will be:
docker exec reposado python /reposado/code/repoutil <arguments>

docker-reposado's People

Contributors

nmcspadden avatar

Stargazers

 avatar

Watchers

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