Sign inSign up

knsit/gitpitch

By knsit

•Updated over 7 years ago

GitPitch in a basic version without PDF support

Image
3

3.4K

knsit/gitpitch repository overview

⁠GitPitch Container

This is an unofficial Docker container for the open-source GitPitch server. GitPitch itself now offers GitPitch Enterprise⁠, the official Docker container for GitPitch which runs the same enhanced server that runs on gitpitch.com⁠.

It's recommended to run the container with docker-compose because there are a few environment variables and it's easier to configure them all in one docker-compose.yml than passing them all in one docker run statement.

But if you want to, you could run the container like this:

docker run -d --rm --name gitpitch -e GP_GITHUB_AS_DEFAULT=true -p 9000:9000 knsit/gitpitch

This starts the container, enables the GitHub service and sets it as default.

To start the container and configure it for GitLab the call would look like this:

docker run -d --rm --name gitpitch -e GP_GITLAB_BASE=https://gitlab.com/ -e GP_GITLAB_API=https://gitlab.com/api/v4/ -e GP_GITLAB_AS_DEFAULT=true -p 9000:9000 knsit/gitpitch

This configuration enables the GitLab service and configures it for public repositories only. If you want to access private repositories you'll need a private token.

All other providers are configured equivalently. Have a look at the following section containing all available environment variables.

⁠Environment Variables

⁠Common

VariableExplanationExample
GP_HOSTHost bindinglocalhost or 192.168.0.2
GP_PORTPort publishing (used for CORS headers)9000 or 80 or 443
GP_APP_SECRETPlay Framework crypto secret (random will be created if not set)QCY?tAnfk?aZ?iwrNwnxIlR6CTf:G3gf:90Latabg@5241AB`R5W:1uDFN];Ik@n

⁠GitHub

VariableExplanationExample
GP_GITHUB_ACCESS_TOKENPrivate token for GitHubyour-github-access-token-here
GP_GITHUB_AS_DEFAULTSet GitHub as defaulttrue ( default true )

⁠GitLab

VariableExplanationExample
GP_GITLAB_BASEBase URL of the GitLab instancehttps://gitlab.com/⁠
GP_GITLAB_APIURL to the current API versionhttps://gitlab.com/api/v4/⁠
GP_GITLAB_ACCESS_TOKENPrivate token for GitLabyour-gitlab-access-token-here
GP_GITLAB_AS_DEFAULTSet GitLab as defaulttrue ( default false )

⁠Bitbucket

VariableExplanationExample
GP_BITBUCKET_BASEBase URL of the Bitbucket instancehttps://bitbucket.org/⁠
GP_BITBUCKET_APIURL to the current API versionhttps://api.bitbucket.org/2.0/⁠
GP_BITBUCKET_ACCESS_TOKENAccess token for Bitbucketyour-bitbucket-access-token-here
GP_BITBUCKET_AS_DEFAULTSet Bitbucket as defaulttrue (default false)

⁠Gitea

VariableExplanationExample
GP_GITEA_BASEBase URL of the Gitea instancehttps://localhost:3000/⁠
GP_GITEA_APIURL to the current API versionhttp://localhost:3000/api/v1/⁠
GP_GITEA_ACCESS_TOKENPrivate token for Giteayour-gitea-app-token-here
GP_GITEA_AS_DEFAULTSet Gitea as defaulttrue (default false)

⁠Gogs

VariableExplanationExample
GP_GOGS_BASEBase URL of the Gogs instancehttps://localhost:3000/⁠
GP_GOGS_APIURL to the current API versionhttp://localhost:3000/api/v1/⁠
GP_GOGS_ACCESS_TOKENPrivate token for Gogsyour-gogs-app-token-here
GP_GOGS_AS_DEFAULTSet Gogs as defaulttrue (default false)

⁠GitBucket

VariableExplanationExample
GP_GITBUCKET_BASEBase URL of the GitBucket instancehttp://localhost:8080/⁠
GP_GITBUCKET_APIURL to the current API versionhttp://localhost:8080/api/v3/⁠
GP_GITBUCKET_ACCESS_TOKENPrivate token for GitBucketyour-gitbucket-access-token-here
GP_GITBUCKET_AS_DEFAULTSet GitBucket as defaulttrue (default false)

⁠Docker-Compose

As already mentioned it's much easier to run the configuration with docker-compose. The equivalent to the docker run call above could look like this:

version: '3'
services:
  gitpitch:
    image: knsit/gitpitch:latest
    environment:
      - "GP_GITLAB_BASE=https://gitlab.com/"
      - "GP_GITLAB_API=https://gitlab.com/api/v4/"
      - "GP_GITLAB_AS_DEFAULT=true"
    ports:
      - 9000:9000

Tag summary

Content type

Image

Digest

Size

130.3 MB

Last updated

over 7 years ago

docker pull knsit/gitpitch