DEVOPS technical practices _10: installation deployment Artifactory

A mechanism is needed to store all of the binary code (build, packages, third-party plugins, etc.) to the system is similar to a version control system.

Like Git, SVN store code, they store is often the source code, not binary files. Artifactory or Nexus Jenkins and is tightly integrated binary file repository system.

The following benefits:
Track build (build who triggered Who?)
Dependence
deployment history

jfrog artifactory is a binary storage management tools to manage the build tools (eg: maven, gradle) and so rely on binary warehouse, in order to facilitate the management of third-party libraries and publishing destination repository, thereby improving the efficiency of software development. It provides integration between a large number of different tools and plug-ins to facilitate internal use rights management more secure, and support for high concurrency, and so on characteristics.

The following diagram depicts the binary library tool and Jenkins together how to store artifacts.

1 install JAVA

[root@node4 ~]# yum install java-1.8.0-openjdk-devel.x86_64

[root@node4 logs]# vi /etc/profile

[root@node4 logs]# source /etc/profile

export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.222.b10-0.el7_6.x86_64/
export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin

[root@node4 ~]# java -version

 

By way zip package mounting jfrog

jfrog mounted in two ways, the first embodiment is installed by zip package, the second is mounted by way yum or rpm.

Here we introduce install zip packet mode, you can view information about the zip package via the following URL:

https://bintray.com/jfrog/artifactory/jfrog-artifactory-oss-zip

After more connections open

 

2 Copy link address, and download

[root@node4 ~]# cd /usr/local/src/

[root@node4 src]# wget https://bintray.com/jfrog/artifactory/download_file?file_path=jfrog-artifactory-oss-6.13.1.zip

[root@node4 src]# unzip -q download_file\?file_path\=jfrog-artifactory-oss-6.13.1.zip -d /usr/local/

[root@node4 src]# mv /usr/local/artifactory-oss-6.13.1 /usr/local/jfrog

[root@node4 src]# ll /usr/local/jfrog

-rw-r--r-- 1 root root 67681 Oct  8 13:36 Access-Third-Parties-Usage-About-Box.html
drwxr-xr-x 3 root root   307 Oct  8 14:04 bin
-rw-r--r-- 1 root root 31780 Oct  8 13:36 COPYING.AFFERO
drwxr-xr-x 2 root root   136 Oct  8 13:36 etc
drwxr-xr-x 2 root root     6 Oct  8 14:04 logs
drwxr-xr-x 6 root root    94 Oct  8 14:04 misc
-rw-r--r-- 1 root root   195 Oct  8 13:36 README.txt
-rw-r--r-- 1 root root 51256 Oct  8 13:36 Third-Parties-Usage-About-Box.html
drwxr-xr-x 8 root root   148 Oct  8 14:04 tomcat
drwxr-xr-x 2 root root    47 Oct  8 14:04 webapps

3 Start

[root@node4 src]# /usr/local/jfrog/bin/artifactoryctl start

Found java executable in JAVA_HOME (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.222.b10-0.el7_6.x86_64/)
Using CATALINA_BASE:   /usr/local/jfrog/tomcat
Using CATALINA_HOME:   /usr/local/jfrog/tomcat
Using CATALINA_TMPDIR: /usr/local/jfrog/tomcat/temp
Using JRE_HOME:        /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.222.b10-0.el7_6.x86_64/
Using CLASSPATH:       /usr/local/jfrog/tomcat/bin/bootstrap.jar:/usr/local/jfrog/tomcat/bin/tomcat-juli.jar
Using CATALINA_PID:    /usr/local/jfrog/run/artifactory.pid
Existing PID file found during start.
Removing/clearing stale PID file.
Tomcat started.

[root@node4 logs]# ps -ef |grep java

root        2353       1  99  11 : 49 pts / 1     00 : 00 : 54 / usr / Libya / JVM / illustration 1.8 . 0 -openjdk- 1.8 . 0,222 .b10- 0 .el7_6.x86_64 //bin/java -Djava.util.logging.config.file=/usr/local/jfrog/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -server -Xms512m -Xmx4g -Xss256k -XX:+UseG1GC -XX:OnOutOfMemoryError=kill -9 %p -Djruby.compile.invokedynamic=false -Dfile.encoding=UTF8 -Dartdist=zip -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true -Djava.security.egd=file:/dev/./urandom -Dartifactory.home=/usr/local/jfrog -Dfile.encoding=UTF8 -Djruby.bytecode.version=1.8 -Djruby.compile.invokedynamic=false -Djfrog.join.key.paths=/usr/local/jfrog -Dignore.endorsed.dirs= -classpath /usr/local/jfrog/tomcat/bin/bootstrap.jar:/usr/local/jfrog/tomcat/bin/tomcat-juli.jar -Dcatalina.base=/usr/local/jfrog/tomcat -Dcatalina.home=/usr/local/jfrog/tomcat -Djava.io.tmpdir=/usr/local/jfrog/tomcat/temp org.apache.catalina.startup.Bootstrap start

[Root @ node4 logs] # ps -ef | grep jfrog

root       2353      1 99 11:49 pts/1    00:01:14 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.222.b10-0.el7_6.x86_64//bin/java -Djava.util.logging.config.file=/usr/local/jfrog/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -server -Xms512m -Xmx4g -Xss256k -XX:+UseG1GC -XX:OnOutOfMemoryError=kill -9 %p -Djruby.compile.invokedynamic=false -Dfile.encoding=UTF8 -Dartdist=zip -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true -Djava.security.egd=file:/dev/./urandom -Dartifactory.home=/usr/local/jfrog -Dfile.encoding=UTF8 -Djruby.bytecode.version=1.8 -Djruby.compile.invokedynamic=false -Djfrog.join.key.paths=/usr/local/jfrog -Dignore.endorsed.dirs= -classpath /usr/local/jfrog/tomcat/bin/bootstrap.jar:/usr/local/jfrog/tomcat/bin/tomcat-juli.jar -Dcatalina.base=/usr/local/jfrog/tomcat -Dcatalina.home=/usr/local/jfrog/tomcat -Djava.io.tmpdir=/usr/local/jfrog/tomcat/temp org.apache.catalina.startup.Bootstrap start

By the figure, we can clearly see jfrog started normally, and can also be seen jfrog default port 8081 is listening.

http://192.168.132.134:8081/artifactory/webapp/#/login

jfrog default port is 8081, the default user name and password are: admin / password.

Log into the

 

The installation is complete

Guess you like

Origin www.cnblogs.com/zyxnhr/p/11780033.html