Git Jumphost is a Node.js-based tool that provides a bridge between cloud source code management (SCM) systems and enterprise systems that cannot be accessed publicly. The tool works by receiving a request from the cloud SCM via a webhook, fetching the repository from the cloud SCM, and pushing it to the private enterprise CMS.
These instructions will help you get a copy of the project up and running on your local machine for development and testing purposes.
Before you can use Git Jumphost, you need to have the following installed on your machine:
- Node.js
- npm (comes bundled with Node.js)
- A
.env
file that includes the following variables:PORT=8000 SOURCE_REPO_URL=gitlab.com/user/source.git TARGET_REPO_URL=gitlab.com/user/target.git SOURCE_GIT_USERNAME=source_token SOURCE_GIT_PASSWORD=password TARGET_GIT_USERNAME=target_token TARGET_GIT_PASSWORD=password # DEV | PROD ENVIRONMENT=DEV WEBHOOK_TOKEN=gitlab_token_123
To install Git Jumphost on your machine, follow these steps:
-
Clone the repository to your local machine:
git clone https://github.com/nafisrdn/git-jumphost.git
-
Navigate to the repository directory:
cd git-jumphost
-
Install the dependencies:
npm install
To deploy Git Jumphost in a production environment, follow these steps:
- Run production command:
npm run prod
- Nafis Ramadhan Fadhlurrohman - nafisrdn