Proxy to provide GitHub-like API on top of Gitlab. Designed to use the JIRA DVCS connector.
170
Proxy to provide GitHub-like API on top of Gitlab. Especially designed to use the JIRA DVCS connector with Gitlab.
VERY IMPORTANT CONFIGURATION REQUIREMENTS:
NOTICE: The default Spring listen port is tcp/8080,
so specifying it again as a java argument is redundant,
but makes the problem explicit.
You can choose to setup a port forward in front of it,
or (not recommended) run the service as root so you can listen on tcp/80.
mvn spring-boot:run -DgitlabUrl="http://yourgitlabserver.yourcompany.com" -Dserver.port=8080
Alternatively, you can launch using Docker, and its resident service will proxy tcp/80 -> tcp/8080 for you:
docker build -t glghproxy .
docker run -p 80:8080 glghproxy
For the hostname (ie. glghproxy) you'll need to add a DNS entry or a /etc/hosts override.
However the latter will only work if glghproxy, JIRA, and the browser are operating on the same machine.
That can be nice for testing, (e.g., with a locally installed [containerized] trial version of JIRA) but
be aware that if you are using docker containers you'll need to ensure the hostname resolves to an IP that
is resolvable from all sides--in that case, the docker0 interface ip is recommended.
WARNING: By default, JIRA and glghproxy want to operate on the same tcp/8080 port. If you are not using containers, you'll have to resolve this conflict yourself.
Browse to your Gitlab Applications tab (/profile/applications)
On the Add New Application tab, fill in the Name field with your choice (ie. glghproxy)
Fill in the Redirect URI with the address you've chosen for this proxy service.
http://glghproxy/login/oauth/authorize_callback
Click the Save application button.
Make note of the Application Id and Secret on the following page.
/secure/admin/ConfigureDvcsOrganizations.jspa)Link Bitbucket Cloud or Github account button.Add New Account popup, select Github Enterprise from the Host dropdown menu.Team or User Account field with the name of the Gitlab group or username containing the repositories you want JIRA to integrate.Host URL with the address you've chosen for this proxy service. (ie. http://glghproxy)Client ID with the Application Id generated for you by Gitlab earlier.Client Secret with the Secret generated for you by Gitlab earlier.Auto Link New Repositories and Enable Smart Commits checkboxes are compatible and are safe to configure to your liking.Add button and then the Continue button when prompted.Connecting to Github Enterprise to configure your account....Linking new account ....Content type
Image
Digest
Size
67.9 MB
Last updated
over 7 years ago
docker pull jongpieter/gitlab-github-proxy