Note: This project is currently unmaintained. Please get in touch with me via this issue if you're interested in taking over maintenance.
This is a Buildpack for GitLab to be used in combination with the heroku-buildpack-ruby through heroku-buildpack-multi.
While the buildpack-gitlab will setup gitlab-shell and do some magic,
the heroku-buildpack-ruby will take care of gitlabhq itself.
- A PaaS like
- At least 1GB of RAM and swap enabled
- A
redis
and (postgres
ormariadb
) addon - Additional persistent storage
- Additional port forwarding for the SSH port
Tell your PaaS to use the multi buildpack:
BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git
with the buildpacks buildpack-gitlab and heroku-buildpack-ruby:
$ git checkout -b deployment
$ echo -e "https://github.com/amtrack/buildpack-gitlab.git\nhttps://github.com/heroku/heroku-buildpack-ruby.git" > .buildpacks
$ git add .buildpacks
$ git commit -m "prepare for deployment"
Depending on your PaaS, see the detailed instructions for
- creating the application
- managing required addons
- managing persistent storage and
- managing port forwarding
PaaS | Instructions |
---|---|
dokku | https://github.com/amtrack/buildpack-gitlab/wiki/dokku |
dokku-alt | https://github.com/amtrack/buildpack-gitlab/wiki/dokku-alt |
Setting the SMTP credentials in the syntax smtps://<user>:<password>@<smtp_url>/?domain=<domain>
Example:
SMTP_URL=smtps://john.doe:asdf1234@smtp.gmail.com/?domain=gmail.com
Specifying the gitlab-shell version.
Currently the default gitlab-shell
version will be read from the file GITLAB_SHELL_VERSION
.
If you want to use another version you can set the environment variable GITLAB_SHELL_VERSION
(mind prefixing the version number with a v in the environment variable).
Example:
GITLAB_SHELL_VERSION=v2.0.0
Most of the GitLab Installation stuff is borrowed from
This buildpack was generated with the Yeoman generator generator-buildpack
See here