{"id":24090998,"url":"https://github.com/mscottblake/docker-margarita","last_synced_at":"2025-07-12T06:34:09.920Z","repository":{"id":28329062,"uuid":"31842117","full_name":"MScottBlake/docker-margarita","owner":"MScottBlake","description":"A Docker container for running Margarita, a web front-end for Reposado.","archived":false,"fork":false,"pushed_at":"2020-09-28T01:21:30.000Z","size":21,"stargazers_count":12,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-06T22:36:30.793Z","etag":null,"topics":["apple","docker-container","docker-margarita","margarita","reposado","software-update","softwareupdate","sus"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MScottBlake.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-08T07:34:26.000Z","updated_at":"2025-04-20T16:21:08.000Z","dependencies_parsed_at":"2022-08-17T18:45:21.392Z","dependency_job_id":null,"html_url":"https://github.com/MScottBlake/docker-margarita","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/MScottBlake/docker-margarita","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MScottBlake%2Fdocker-margarita","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MScottBlake%2Fdocker-margarita/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MScottBlake%2Fdocker-margarita/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MScottBlake%2Fdocker-margarita/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MScottBlake","download_url":"https://codeload.github.com/MScottBlake/docker-margarita/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MScottBlake%2Fdocker-margarita/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264951610,"owners_count":23687974,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apple","docker-container","docker-margarita","margarita","reposado","software-update","softwareupdate","sus"],"created_at":"2025-01-10T06:55:37.454Z","updated_at":"2025-07-12T06:34:09.889Z","avatar_url":"https://github.com/MScottBlake.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-margarita\n[![Build Status](https://img.shields.io/docker/automated/mscottblake/margarita.svg)](https://hub.docker.com/r/mscottblake/margarita/builds/) [![GitHub Stars](https://img.shields.io/github/stars/mscottblake/docker-margarita.svg)](https://github.com/mscottblake/docker-margarita/stargazers) [![Docker Stars](https://img.shields.io/docker/stars/mscottblake/margarita.svg)](https://hub.docker.com/r/mscottblake/margarita) [![Docker Pulls](https://img.shields.io/docker/pulls/mscottblake/margarita.svg)](https://hub.docker.com/r/mscottblake/margarita)\n\n\nA Docker container for running [Margarita](https://github.com/jessepeterson/margarita), a web front-end for [Reposado](https://github.com/wdas/reposado).\n\n\n# Note\n\nIf 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.\n\n```bash\ndocker exec margarita chgrp -R www-data /reposado\n```\n```bash\ndocker exec margarita chmod -R g+wr /reposado\n```\n\n\n# Usage Examples\n\n## Example #1 - Basic\n\n```bash\ndocker run --name margarita -d -p 8089:8089 mscottblake/margarita\n```\n\n## Example #2 - Using port 80\n\n```bash\ndocker run --name margarita -d -p 80:8089 mscottblake/margarita\n```\n\n## Example #3 - Custom preferences.plist\n\nBy 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.\n\n```bash\ndocker run --name margarita -d -p 8089:8089 -v /path/to/reposado/preferences.plist:/margarita/preferences.plist mscottblake/margarita\n```\n\n## Example #4 - Link to an existing reposado container\n\nThis example assumes the existence of a container named `reposado` from [mscottblake/reposado](https://hub.docker.com/r/mscottblake/reposado).\n\n```bash\ndocker run --name margarita --volumes-from reposado -d -p 8089:8089 -v /path/to/reposado/preferences.plist:/margarita/preferences.plist mscottblake/margarita\n```\n\n## Example #5 - Add Basic Authentication\n\nAuthentication can be added by overriding `/extras.conf` with the `-v` flag. Contents of `extras.conf`:\n\n```conf\n\u003cLocation /\u003e\n  AuthType Basic\n  AuthName \"Authentication Required\"\n  AuthUserFile \"/margarita/.htpasswd\"\n  Require valid-user\n\u003c/Location\u003e\n```\n\n```bash\ndocker run --name margarita -d -p 8089:8089 -v /path/to/extras.conf:/extras.conf -v /path/to/valid-users:/margarita/.htpasswd mscottblake/margarita\n```\n\nAlternatively, the `.htpasswd` file could be created once the container has been created.\n\n```bash\ndocker run --name margarita -d -p 8089:8089 -v /path/to/extras.conf:/extras.conf mscottblake/margarita\n\ndocker exec -it margarita htpasswd -c /margarita/.htpasswd USERNAME_1\n\ndocker exec -it margarita htpasswd /margarita/.htpasswd USERNAME_2\n```\n\nMore examples of authentication blocks can be found in [GitHub](https://github.com/MScottBlake/docker-margarita/blob/master/extras.conf)\n\n## Example #6 - Enabling SSL\n\nSSL can be added by overriding `/extras.conf` with the `-v` flag. Contents of `extras.conf`:\n\n```conf\nSSLEngine on\nSSLCertificateKeyFile /ssl/server.key\nSSLCertificateFile /ssl/yourDomainName.crt\n```\n\nMake sure to include the certificate files.\n\n```bash\ndocker 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\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmscottblake%2Fdocker-margarita","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmscottblake%2Fdocker-margarita","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmscottblake%2Fdocker-margarita/lists"}