{"id":18465932,"url":"https://github.com/balder1840/gollum-docker","last_synced_at":"2025-10-26T18:37:06.671Z","repository":{"id":75682625,"uuid":"496865618","full_name":"Balder1840/gollum-docker","owner":"Balder1840","description":"A multi-platform docker build for gollum, with authentication and collapsable sidebar","archived":false,"fork":false,"pushed_at":"2023-06-03T11:29:51.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-30T01:09:00.702Z","etag":null,"topics":["aarch64","amd64","armv7","basic-auth","dockker","gollum","multi-platform"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/Balder1840.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-27T04:56:25.000Z","updated_at":"2023-07-23T05:22:52.000Z","dependencies_parsed_at":"2023-06-27T06:44:40.333Z","dependency_job_id":null,"html_url":"https://github.com/Balder1840/gollum-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balder1840%2Fgollum-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balder1840%2Fgollum-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balder1840%2Fgollum-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balder1840%2Fgollum-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Balder1840","download_url":"https://codeload.github.com/Balder1840/gollum-docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251608441,"owners_count":21616858,"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":["aarch64","amd64","armv7","basic-auth","dockker","gollum","multi-platform"],"created_at":"2024-11-06T09:14:31.834Z","updated_at":"2025-10-26T18:37:06.578Z","avatar_url":"https://github.com/Balder1840.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Features\n- target multi-platform for [gollum](https://github.com/gollum/gollum) by `docker buildx`\n- add [gollum-auth](https://github.com/bjoernalbers/gollum-auth) to do the basic authentication\n- use rackup to start\n- a customized collapsable sidebar\n\n## Contents\n\n### gollum\nthe modified gollum files\n- add activemodel to `gollum.gemspec` as the gollum-auth need it\n- in Dockerfile, install the self-build gem file `gollum-auth-0.7.1.gem`,\nas there is conflict issue when using docker build gollum with gollum-auth installed from gem sources \n\n### gollum-auth\nthe http basic authentication middleware for gollum\n- change the references to the latest gems, as it has conflicts with gollum\n\nuse docker to build the gem file:  \n`docker build -t gollum-auth .`\n\ncopy the file out:  \n`docker cp gollum-auth:/pkg/gollum-auth-0.7.1.gem ~/`\n\n### wiki\nthe customized js \u0026 css, and config.ru for rack, including the enhanced [NiceTOC](https://github.com/gollum/gollum/wiki/Custom-macros) as sidebar that can be collapsed\n\n## How to\n\n### usefull commands\n- `docker context ls`\n- `docker buildx ls`\n- `docker buildx create --use --name mybuilder #node-amd64`\n- `docker buildx inspect mybuilder --bootstrap`\n\n### build the image\n\n1. pull the latest gollum and use the modified files to override them\n2. build \u003cbr\u003e\n    - push to docker hub:  \n      `docker buildx build --platform=linux/amd64,linux/arm64,linux/arm/v7 --push -t balder1840/gollum:v5.3.0 .`  \n    - or output as local image:  \n      `docker buildx build --platform=linux/amd64,linux/arm64,linux/arm/v7 --output=type=image -t balder1840/gollum:v5.3.0 .`\n\n### use the image\n\n1. create a folder let's say ~/wiki\n2. move config.ru, costum.css, custom.js to ~/wiki and use git to check in \n3. run \n ```bash\n   docker run -d \\\n   --name gollum \\\n   -p 8080:4567 \\\n   -e GOLLUM_AUTHOR_USERNAME=xxx \\\n   -e GOLLUM_AUTHOR_EMAIL=xxx@google.com \\\n   -v ~/wiki:/wiki balder1840/gollum:tagname \\\n   --host 0.0.0.0 \\\n   --port 4567\n```\nor\n ```bash\n   docker run -d \\\n   --name gollum \\\n   -p 8080:4567 \\\n   -e GOLLUM_AUTHOR_USERNAME=xxx \\\n   -e GOLLUM_AUTHOR_EMAIL=xxx@google.com \\\n   -v ~/wiki:/wiki \\\n   -v ~/YourConfig.ru:/config.ru \\\n   balder1840/gollum:tagname \\\n   /config.ru \\\n   --host 0.0.0.0 \\\n   --port 4567\n```\n\n\u003e you can find a image here at [docker hub](https://hub.docker.com/r/balder1840/gollum)\n\n\n## Refs\n- [Docker Buildx](https://docs.docker.com/buildx/working-with-buildx/)\n- [docker buildx build](https://docs.docker.com/engine/reference/commandline/buildx_build/)\n- [Leverage multi-CPU architecture support](https://docs.docker.com/desktop/multi-arch/)\n- [Multi-Platform Docker Builds](https://www.docker.com/blog/multi-platform-docker-builds/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalder1840%2Fgollum-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbalder1840%2Fgollum-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalder1840%2Fgollum-docker/lists"}