[root@gitlab home]# pwd
/home
[root@gitlab home]# git clone https://github.com/callicoder/spring-security-react-ant-design-polls-app.git
[root@gitlab home]# ll
total 0
drwxr-xr-x 6 root root 192 Aug 25 23:51 spring-security-react-ant-design-polls-app
[root@gitlab spring-security-react-ant-design-polls-app]# ll
total 320
drwxr-xr-x 2 root root 123 Aug 25 23:51 deployments
-rw-r--r-- 1 root root 1962 Aug 25 23:51 docker-compose.yml
-rw-r--r-- 1 root root 75 Aug 25 23:51 minikube.txt
drwxr-xr-x 4 root root 212 Aug 25 23:51 polling-app-client
drwxr-xr-x 4 root root 108 Aug 25 23:51 polling-app-server
-rw-r--r-- 1 root root 2657 Aug 25 23:51 Readme.md
-rw-r--r-- 1 root root 314392 Aug 25 23:51 screenshot.png
gitlab
创建polling-app-server
[root@gitlab ~]# git clone git@192.168.48.52:test01/polling-app-server.git
Cloning into 'polling-app-server'...
warning: You appear to have cloned an empty repository.
[root@gitlab ~]# cd /home/spring-security-react-ant-design-polls-app/polling-app-server/
[root@gitlab polling-app-server]# ll -a
total 28
drwxr-xr-x 4 root root 108 Aug 25 23:51 .
drwxr-xr-x 6 root root 192 Aug 25 23:51 ..
-rw-r--r-- 1 root root 1038 Aug 25 23:51 Dockerfile
-rw-r--r-- 1 root root 419 Aug 25 23:51 .gitignore
drwxr-xr-x 3 root root 21 Aug 25 23:51 .mvn
-rwxr-xr-x 1 root root 6468 Aug 25 23:51 mvnw
-rw-r--r-- 1 root root 4994 Aug 25 23:51 mvnw.cmd
-rw-r--r-- 1 root root 2417 Aug 25 23:51 pom.xml
drwxr-xr-x 4 root root 30 Aug 25 23:51 src
[root@gitlab polling-app-server]# rm -rf .gitignore
[root@gitlab polling-app-server]# mv * /root/polling-app-server/
[root@gitlab ~]# git clone git@192.168.48.52:test01/polling-app-client.git
Cloning into 'polling-app-client'...
warning: You appear to have cloned an empty repository.
[root@gitlab polling-app-client]# cd /home/spring-security-react-ant-design-polls-app/polling-app-client/
[root@gitlab polling-app-client]# ll -a
total 832
drwxr-xr-x 4 root root 212 Aug 25 23:51 .
drwxr-xr-x 6 root root 192 Aug 25 23:51 ..
-rw-r--r-- 1 root root 548 Aug 25 23:51 config-overrides.js
-rw-r--r-- 1 root root 1036 Aug 25 23:51 Dockerfile
-rw-r--r-- 1 root root 24 Aug 25 23:51 .dockerignore
-rw-r--r-- 1 root root 285 Aug 25 23:51 .gitignore
-rw-r--r-- 1 root root 1898 Aug 25 23:51 nginx.conf
-rw-r--r-- 1 root root 561 Aug 25 23:51 package.json
-rw-r--r-- 1 root root 446289 Aug 25 23:51 package-lock.json
drwxr-xr-x 2 root root 64 Aug 25 23:51 public
-rw-r--r-- 1 root root 119004 Aug 25 23:51 README.md
drwxr-xr-x 8 root root 181 Aug 25 23:51 src
-rw-r--r-- 1 root root 258001 Aug 25 23:51 yarn.lock
[root@gitlab polling-app-client]# rm -rf .gitignore
[root@gitlab polling-app-client]# mv * /root/polling-app-client/
[root@gitlab ~]# cd /root/polling-app-client/
[root@gitlab polling-app-client]# ll
total 824
-rw-r--r-- 1 root root 548 Aug 25 23:51 config-overrides.js
-rw-r--r-- 1 root root 1036 Aug 25 23:51 Dockerfile
-rw-r--r-- 1 root root 1898 Aug 25 23:51 nginx.conf
-rw-r--r-- 1 root root 561 Aug 25 23:51 package.json
-rw-r--r-- 1 root root 446289 Aug 25 23:51 package-lock.json
drwxr-xr-x 2 root root 64 Aug 25 23:51 public
-rw-r--r-- 1 root root 119004 Aug 25 23:51 README.md
drwxr-xr-x 8 root root 181 Aug 25 23:51 src
-rw-r--r-- 1 root root 258001 Aug 25 23:51 yarn.lock
mysql> CREATE DATABASE polling_app CHARACTER SET utf8 COLLATE utf8_general_ci;
mysql> grant all privileges on *.* to 'root'@'%' identified by 'p@ssW0rd';
jenkins
nodejs 配置
[root@jenkins home]# ll
-rw-r--r-- 1 root root 13832768 Aug 19 12:58 node-v12.8.1-linux-x64.tar.xz
[root@jenkins home]# tar xvf node-v12.8.1-linux-x64.tar.xz
[root@jenkins ~]# vim /etc/profile
...
export NODE_HOME=/home/node-v12.8.1-linux-x64
export PATH=$NODE_HOME/bin:$PATH