Every time a team builds an application, it is troublesome and error-prone to export the war package through eclipse/sts, then upload it to the server, copy it to Tomcat, and manually stop/start the Tomcat service.
I used Gitlab, MAVEN, Docker tools, plus a shell script, to make a simple automated build tool.
1. First install JDK version 64, MAVEN, modify/etc/profile file as follows:
java_home=/home/git/jdk1.8.0_161
jre_home= $JAVA _home/jre
#CLASSPAT
The current program is Gitlab + Jenkins + Docker + Kubernetes.The workflow for the scenario is as follows: First, the developer submits the code code, and then the GITLAB automatically triggers the Jenkins job,jenkins job to build the corresponding image, placed in a kubernetes pod; The Kubernetes pod will include other dependencies that the module needs in its internal (such as MySQL, Redis, MongoDB, etc.)
There are many articles on the Internet that introduce SSH-free login, the steps are as follows:1. Generate SSH Key
Ssh-keygen-t rsa-c "[Email protected]"
By default, the Id_rsa and id_rsa.pub two files are generated under the corresponding path (/your_home_path), at which point the terminal displays:
Generating public/private RSA key pair. Enter file in which to save the key (/YOUR_HOME_PATH/.SSH/ID_RSA):
Continuous carriage return, you may also enter a password, pas
Install and configure GitLab on CentOS
GitLab uses Ruby on Rails as an open-source version management system to implement a self-hosted Git project repository. It can access public or private projects through the Web interface. It has similar functions as Github, allowing you to browse source code, manage defects, and annotate.Install
Follow the online Installation Guide.Https://about.gitlab.com/downloads/#
First of all, I have been so busy these days that I have been doing projects from morning to night so that I haven't updated my blog for months. In fact, there are a lot of things worth sharing, but because of the time problem stranded, and now also forget what has, it is a pity ...This article is written mainly out of a personal view of the more common phenomenon, is that many developers are using GIT to manage the project, but most people are only "fool" in the use, and often do not know what
Clone remote repository in actual project directory clone GitlabWebHookForPHP configure Gitlab project Webhooksgithub. combravistgi...
Clone a remote repository in the actual project directory
Clone from Project directoryGitlab Web Hook For PHP
Configure Gitlab project Webhooks
Https://github.com/bravist/gi...
Reply content:
Clone a remote repository in the actual project directory
Clone f
Background: Gravatar Service has not been accessible recently, many services have been suffered, although not affected by the use but very unsightly. Recently, I was trying to Omnibus the Gitlab, I would like to see if it can be solved, found that the combination of common online duoshuo CDN way is relatively easy, recorded as follows: Normal version Gitlab:Edit gitlab.yml , find the following section: # # Gravatargravatar: enabled:true
The company's Gitlab server backup, and the backup rsync to the offsite room, because the backup file is too large, so here to cut into multiple files, multi-threaded transmission.#!/usr/bin/envperl################ #filename: gitback.pl #version :1.0 #author :zzq #date :20160705 #function:the transmissionofgitlabbackupfilestotheremotehost #########################usestrict;use threads;usethread::queue;usefile::rsync; usethreads::shared;useFile::Find;
Prerequisite: The Gitlab service is installed on the virtual machine, and the machine can access the Gitlab of the virtual machineUpload your own native project to Gitlab1. Set up the project on Gitlab firstCopy Project Address:Http://192.168.1.105/liaoliao/ttms1.0.git2. Under the local folder, use Git bash1). Git init2) Git Remote add Origin http://192.168.1.105
With the recent intensification of continuous integration, a scenario needs to pass the configuration to an ASP. NET Core application through the GITLAB-CI environment variable (Variables, CI/CD, Settings, Settings).The configuration in Appsettings.json is like this{" ossclient": { "Accesskeyid": "", "Accesskeysecret": "" }}The question before you is how to pass the above configuration through an environment variable, without modifying the cod
This article is used to record the problems encountered when Jenkins integration;
Reference documentation 1:http://www.jianshu.com/p/ed0edb93e234
Problem Description: Jenkins specify the source code on Gitlab, the prompt does not have permission
Problem reason: You need to use the Jenkins user generated SSH key, place the key in Jenkins, and put the public key in Git.
The method is as follows:
1. In installing Jenkins Linux machine, add Jenkins User,
Recently need to upgrade the framework of an old project, in order not to affect the previous code, the old code is copied and modified to complete, now you need to upload the code to the company's Gitlab, the following steps:
1. First need to install the local need to install Git
2. Create a project on Gitlab, as shown below, click on the plus sign on the top right corner to create a project page, fill i
git-1.9.5-preview201412171. Install git and open "Git Bash" from the program directory2. Type the command: ssh-keygen-t rsa-c "[Email protected]""[Email protected]" is Gitlab account3. Remind you to enter the name of the key, such as Id_rsa4. Generate two files under C:\Users\Administrator\.ssh: Id_rsa and Id_rsa.pub5. Open the Id_rsa.pub file with Notepad, copy the content, on the gitlab.com website to SSH Key Management page, add a new public key, j
The computer installed a virtual machine, want to establish a secure SSH connection with Gitlab, the steps are as follows1. Native SSH key generationSystem Environment: LinuxLog in with the root user, execute the command: ssh-keygen-t rsa-c "[email protected]", the default carriage return is OK, the command will create a hidden. SSH folder with 2 files in the folder: Id_rsa (private key) and id_ Rsa.pub (public key), use command: VI id_rsa.pub to view
The company project group uses Gitlab, the group members are assigned to have a fixed git personal account, different members have different editing rights of the module, need to configure the local git before use. For the side dishes that have been using SVN, this still needs a little bit of configuration to be used. To configure the Githost process:
Add the host address specified by the project group to the local host file, then access the
ProblemThis is the case, recently with a few colleagues engaged in some things, plan to build a warehouse in Gitlab, and then co-development.I built the warehouse, added several other colleagues, the role assigned to develop.After the initial code is submitted to the master branch, they are developed after using Sourcetree to pull the replacement code, and then submit the discovery cannot be submitted , prompting no permissions .As follows:
E
Like English not to squirtEnvironment: RPM One-click installation environmentPatch pack has been uploaded in the attachment, select the same patch as your own versionStop GitlabGitlab-ctl stopApply Chinese patchcd/opt/gitlab/embedded/service/gitlab-rails/LS 8.7.5.diffDownload Chinese patchgit apply 8.7.5.diff( install git early )Start GitlabGitlab-ctl start650) this.width=650; "Src=" Http://s3.51cto.com/wyf
The company's version control software is git, usually by its own mailbox or user name registered Gitlab, and then create a new project:Click Project to test your project connection:Next you need to add your own ssh to your git account:Take Ubuntu for example:To see if your virtual machine generated SSH key:Ls-al ~/.sshIf not, execute the following build SSH key:Ssh-keygen-t rsa-b 4096-c "[Email protected]"To add a proxy to a virtual machine:Eval $ (s
The company will learn how to use issue on Gitlab after migrating the project to Gitlab (for reference only)
Personal homepage: http://www.itit123.cn/More Dry Goods wait till you get it.
General developers.
The General Master Branch is locked by default and is designed to protect the branch.
1. Ordinary developers need to create issue after creating the corresponding branch and then to complete the task. Al
origin/master git clean -fgit pullgit checkout Masterecho "Changing permissions ..." Chown -r $WEB _user:$ Web_usergroup $WEB _pathecho "finished."
The next thing to do is to automatically call this script whenever there is a push.Second, the monitoring Web HooksGitHub and GitLab natively support Webhooks settings.The Payload URL is populated with the URL of the server that needs to be deployed, say http://dev.lovelucy.in
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.