Public Repository

Last pushed: a month ago
Short Description
Custom domains for Go packages - https://gopherpit.com
Full Description

Supported tags and respective Dockerfile links

What is GopherPit?

GopherPit is a tool that allows you to have remote import paths for Go (programming language) packages with custom domains. That way packages are independent of the version control system provider, whether it is GitHub, Bitbucket or a private repository. You can change it whenever you like, and also keep the same import paths. Also, custom domains means better branding of your packages, if you care about it.

This service is meant for on-premises installation. A publicly available web service is hosted on https://gopherpit.com with the same functionalities.

GopherPit source code is hosted on GitHub.

How to use this image

Start with the default settings:

$ docker run \
         -d \
         -v "$PWD/gopherpit-storage":/storage \
         -v "$PWD/gopherpit-log":/log \
         -p 80:80 /
         -p 443:443 \
         gopherpit/gopherpit

Start with settings defined in JSON files in gopherpit-config directory:

$ docker run \
         -d \
         -v "$PWD/gopherpit-config":/config \
         -v "$PWD/gopherpit-storage":/storage \
         -v "$PWD/gopherpit-log":/log \
         -p 80:80 /
         -p 443:443 \
         gopherpit/gopherpit

Start with options defined as environment variables:

$ docker run \
         -d \
         -e "GOPHERPIT_DOMAIN=gopherpit.my-domain.com" \
         -e "GOPHERPIT_CONTACT_RECEPIENT_EMAIL=me@my-domain.com" \
         -e "GOPHERPIT_EMAIL_DEFAULT_FROM=noreply@my-domain.com" \
         -e "GOPHERPIT_GOOGLE_ANALYTICS_ID=UA-762xxxxx-1" \
         -v "$PWD/gopherpit-config":/config \
         -v "$PWD/gopherpit-storage":/storage \
         -v "$PWD/gopherpit-log":/log \
         -p 80:80 /
         -p 443:443 \
         gopherpit/gopherpit

To see what are available configuration options:

$ docker run --rm gopherpit/gopherpit config

Each section represents content of a file with the same name and .json extension under configuration directory, mounted to /config inside the container.

License

Unless otherwise noted, the GopherPit source files are distributed under the BSD-style license found in the LICENSE file.

Docker Pull Command
Owner
gopherpit

Comments (0)