Get the App
SLTechnology News&Howtos  ›  Servers  › 

Kepler Cloud platform: how to configure gitlab and Jenkins

Shulou Source: shulou.com Published: 2022-06-02 00:39:49 10月03日 Update

What is Kplcloud?

Kplcloud is a lightweight PaaS platform based on Kubernetes, which manages applications through a visual interface to reduce the accuracy of application containerization, thus reducing the time cost of application containerization.

Kplcloud has been running steadily for nearly two years in Yixin, Fortune and other teams. At present, the platform has run hundreds of applications and nearly 1000 containers in the production environment.

1.1 Quick launch Clone $mkdir-p $GOPATH/src/github.com/kplcloud$ cd $GOPATH/src/github.com/kplcloud$ git clone https://github.com/kplcloud/kplcloud.git$ cd kplcloud configuration file prepares to put the kubeconfig file connected to Kubernets into the project directory app.cfg file configuration is also placed in the project directory app.cfg configuration (see GitHub repository see configuration file) Docker startup $cd install/docker-compose$ docker-compose upmake startup $make run II, configure gitlab and Jenkins

The source code of the application is pulled from the git server to the jenkins server through jenkins to compile, so we need to give the jenkins service access to the git service.

The following is how to give jenkins access to gitlab and github configuration.

2.1 gitlab configure login Jenkins server to cd ~ / .ssh / find cat id_rsa.pub if not, execute the following command to generate: $ssh-keygen-o-t rsa-b 4096-C paste the content to your gitlab

2.2 configuration login Jenkins server on jenkins enter cd ~ / .ssh / find cat id_rsa if not, execute the following command to generate: $ssh-keygen-o-t rsa-b 4096-C enter http://{your jenkins server} / credentials/store/system/domain/_/

Click "add credentials"

Paste the privateKey into the privateKey block so that the jenkins server can access the gitlab service.

2.3 install maven

Java application construction needs to install the maven plug-in

Search for the maven plug-in, check to install it directly, and check to restart jenkins automatically after installation.

2.4 configure maven

Enter the global tool configureTools/

Select the new maven and configure the version. If you have your own maven, configure the path according to your own needs.

Open source address: Github: https://github.com/kplcloud/kplcloudDocument: https://docs.nsini.comDemo: https://kplcloud.nsini.com

Author: pleasant Jinke-Wealth Technology Department-Innovation team

Tags: Configuration services applications servers files containers platforms pleasant commands teams plug-ins permissions directories wealth projects generation login warehouse author global Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi vpn Linux Apple Huawei