You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
J. Fernando Sánchez 3f287c88b3 First commit 6 years ago
..
nginx First commit 6 years ago
README.md First commit 6 years ago
docker-compose.yml First commit 6 years ago

README.md

This deployment contains:

  • Gitlab for code and authentication. The omnibus image is an all-in-one package that contains:
    • Git (git.domain.com) and CI/CD
    • Docker registry (registry.domain.com)
    • Mattermost (slack clone, chat.domain.com)
    • Postgres db
  • Jupyterhub for multi-user computing (hub.domain.com)
  • Nginx as a reverse proxy

Instructions

Set the DOMAIN variable in a .env file and run this compose. After GitLab is loaded, create an OAuth application in Gitlab: https://docs.gitlab.com/ce/integration/oauth_provider.html The redirect URL is: https://hub.<your domain>/hub/oauth_callback. Click on API level and trusted.

Write the client ID and client secret to a .env file in this folder.

Then, update the Jupyter service.

Example .env file

DOMAIN=<YOUR DOMAIN>
GITLAB_CLIENT_ID=<YOUR ID>
GITLAB_CLIENT_SECRET=<YOUR SECRET>

Advanced configuration

GitLab's documentation is terrific. For a list of configuration options, see https://docs.gitlab.com/omnibus/docker/#install-gitlab-using-docker-compose .

Note

When run as part of the omnibus, mattermost should register an application automatically on Gitlab. I've had some issues with authentication, so if I've explicitly added the OAuth parameters in the compose file. This way, you can manually register mattermost on your instance. The process is similar to jupyter, and the callback URLs are:

https://chat.$DOMAIN/signup/gitlab/complete
https://chat.$DOMAIN/login/gitlab/complete