GithubHelp home page GithubHelp logo

lotusshaney / docker-margarita Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mscottblake/docker-margarita

0.0 1.0 0.0 18 KB

A Docker container for running Margarita, a web front-end for Reposado.

Dockerfile 62.80% Python 6.34% Shell 30.85%

docker-margarita's Introduction

docker-margarita

Build Status GitHub Stars Docker Stars Docker Pulls

A Docker container for running Margarita, a web front-end for Reposado.

Note

If you make a change and the blue bar never stops scrolling, you likely have a permissions problems. This could occur if you perform a repo_sync and it creates new files. Those files will not have the proper permissions. To fix this, run the following commands.

docker exec margarita chgrp -R www-data /reposado
docker exec margarita chmod -R g+wr /reposado

Usage Examples

Example #1 - Basic

docker run --name margarita -d -p 8089:8089 mscottblake/margarita

Example #2 - Using port 80

docker run --name margarita -d -p 80:8089 mscottblake/margarita

Example #3 - Custom preferences.plist

By default, LocalCatalogURLBase is empty, so the updates aren't really being downloaded, just their metadata. To host the updates on-site, you need to specify a value for this variable. Any optional keys (AppleCatalogURLs, PreferredLocalizations, etc.) need to be loaded in this manner as well.

docker run --name margarita -d -p 8089:8089 -v /path/to/reposado/preferences.plist:/margarita/preferences.plist mscottblake/margarita

Example #4 - Link to an existing reposado container

This example assumes the existence of a container named reposado from mscottblake/reposado.

docker run --name margarita --volumes-from reposado -d -p 8089:8089 -v /path/to/reposado/preferences.plist:/margarita/preferences.plist mscottblake/margarita

Example #5 - Add Basic Authentication

Authentication can be added by overriding /extras.conf with the -v flag. Contents of extras.conf:

<Location />
  AuthType Basic
  AuthName "Authentication Required"
  AuthUserFile "/margarita/.htpasswd"
  Require valid-user
</Location>
docker run --name margarita -d -p 8089:8089 -v /path/to/extras.conf:/extras.conf -v /path/to/valid-users:/margarita/.htpasswd mscottblake/margarita

Alternatively, the .htpasswd file could be created once the container has been created.

docker run --name margarita -d -p 8089:8089 -v /path/to/extras.conf:/extras.conf mscottblake/margarita

docker exec -it margarita htpasswd -c /margarita/.htpasswd USERNAME_1

docker exec -it margarita htpasswd /margarita/.htpasswd USERNAME_2

More examples of authentication blocks can be found in GitHub

Example #6 - Enabling SSL

SSL can be added by overriding /extras.conf with the -v flag. Contents of extras.conf:

SSLEngine on
SSLCertificateKeyFile /ssl/server.key
SSLCertificateFile /ssl/yourDomainName.crt

Make sure to include the certificate files.

docker run --name margarita -d -p 443:8089 -v /path/to/extras.conf:/extras.conf -v /path/to/server.key:/ssl/server.key -v /path/to/ssl/yourDomainName.crt:/ssl/yourDomainName.crt mscottblake/margarita

docker-margarita's People

Contributors

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