How to install JFrog Artifactory on CentOS 8

The
You can support us by downloading this article in PDF format through the following link.

Download the guide in PDF format

turn off
The

The
The

Today’s guide will guide you through the process of installing JFrog Artifactory on a CentOS 8 Linux server. JFrog Artifactory is an advanced repository management system for cloud-native deployment pipelines. With JFrog, you have the flexibility to use your favorite orchestration tools to manage application deployment through different configuration packages and application artifacts (such as Docker and Helm) managed in Artifactory.

Features of JFrog Artifactory:

  • Basic artifact management
  • On-demand Jar signature and Web Start application
  • Repository copy
  • Custom repository layout managed by non-Maven modules
  • Universal support for all major packaging formats
  • Suitable for powerful SSO integration of NTLM, Kerberos, etc.
  • Cloud storage – S3, Google Cloud Storage, Microsoft Azure Cloud Storage
  • High availability setting support
  • Integration with other JFrog products – JFrog Xray, JFrog Mission Control, JFrog Pipelines, JFrog Bintray and JFrog CLI
  • Integration with all leading CI servers
  • Promote, demote and clear build artifacts
  • Powerful REST API for release automation
  • Basic security – LDAP authentication, role-based authorization with teams and permissions
  • Advanced storage solution-file storage sharding

Install JFrog Artifactory on CentOS 8

We will install the open source version of JFrog’s Artifactory. If you have a budget, you can also choose the professional version. We will use Podman to run JFrog Artifactory in a container on CentOS 8.

Step 1: Update the system

Make sure your CentOS 8 system has been updated.

sudo dnf update

Step 2: Install Podman on CentOS 8

Install Podman and container tools on CentOS 8 Linux machine.

sudo dnf -y install podman buildah

Confirm the installation of Podman:

$ podman version
Version:            1.6.4
RemoteAPI Version:  1
Go Version:         go1.13.4
OS/Arch:            linux/amd64

$ podman info
host:
  BuildahVersion: 1.12.0-dev
  CgroupVersion: v1
  Conmon:
    package: conmon-2.0.6-1.module_el8.1.0+298+41f9343a.x86_64
    path: /usr/bin/conmon
    version: 'conmon version 2.0.6, commit: 2721f230f94894671f141762bd0d1af2fb263239'
  Distribution:
    distribution: '"centos"'
    version: "8"
  MemFree: 114774016
  MemTotal: 4031569920
  OCIRuntime:
    name: runc
    package: runc-1.0.0-64.rc9.module_el8.1.0+298+41f9343a.x86_64
    path: /usr/bin/runc
    version: 'runc version spec: 1.0.1-dev'
  SwapFree: 0
  SwapTotal: 0
  arch: amd64
  cpus: 2
  eventlogger: journald
  hostname: centos.computingforgeeks.com
  kernel: 4.18.0-147.8.1.el8_1.x86_64
  os: linux
  rootless: false
  uptime: 23m 53.29s
registries:
  blocked: null
  insecure: null
  search:
  - registry.access.redhat.com
  - registry.fedoraproject.org
  - registry.centos.org
  - docker.io
store:
  ConfigFile: /etc/containers/storage.conf
  ContainerStore:
    number: 1
  GraphDriverName: overlay
  GraphOptions: {}
  GraphRoot: /var/lib/containers/storage
  GraphStatus:
    Backing Filesystem: extfs
    Native Overlay Diff: "true"
    Supports d_type: "true"
    Using metacopy: "false"
  ImageStore:
    number: 1
  RunRoot: /var/run/containers/storage
  VolumePath: /var/lib/containers/storage/volumes

Step 2: Download JFrog Artifactory images

Download the JFrog Artifactory container image:

$ podman pull docker.bintray.io/jfrog/artifactory-oss:latest

Confirm that the image is available locally:

$ podman images
REPOSITORY                                TAG      IMAGE ID       CREATED       SIZE
docker.bintray.io/jfrog/artifactory-oss   latest   3ed8110393b1   4 weeks ago   805 MB

For the commercial version, please use:

$ podman pull docker.bintray.io/jfrog/artifactory-cpp-ce

Step 3: Run JFrog Artifactory on CentOS 8

Create a working directory for the JFrog container. JFrog Artifactory will store its data here.

sudo mkdir -p  /jfrog/artifactory
sudo chown -R 1030 /jfrog

Use the podman command-line tool to start an instance of JFrog Artifactory on CentOS 8:

podman run --name jfrog-artifactory 
  -d -p 8081:8081 -p 8082:8082 
  -v /jfrog/artifactory:/var/opt/jfrog/artifactory 
  docker.bintray.io/jfrog/artifactory-oss:latest

Check the container status:

$ podman ps
CONTAINER ID  IMAGE                                           COMMAND  CREATED         STATUS             PORTS                             NAMES
ac0e102f254a  docker.bintray.io/jfrog/artifactory-oss:latest           11 minutes ago  Up 11 minutes ago  0.0.0.0:8081-8082->8081-8082/tcp  artifactory

Configure firewalld to allow access to the main application port of JFrog Artifactory.

sudo firewall-cmd --add-port=8081/tcp --permanent
sudo firewall-cmd --add-port=8082/tcp --permanent
sudo firewall-cmd --reload

Step 3: Use Systemd to manage JFrog Artifactory on CentOS 8

As you can see, we are using podman command line to manage containers. Let us introduce systemd to it to ensure that the service can be started automatically when the system starts.

sudo tee /etc/systemd/system/artifactory.service<

Reload systemd:

sudo systemctl daemon-reload

Then use systemd to start the Artifactory container:

sudo systemctl start artifactory

Enable it to start when the system boots.

$ sudo systemctl enable artifactory
Created symlink /etc/systemd/system/multi-user.target.wants/artifactory.service → /etc/systemd/system/artifactory.service.

The status can be checked in the following ways:

$ systemctl status artifactory
● artifactory.service - Setup Systemd script for Artifactory Container
   Loaded: loaded (/etc/systemd/system/artifactory.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2020-05-29 13:29:56 CEST; 31s ago
 Main PID: 21183 (podman)
    Tasks: 10 (limit: 24408)
   Memory: 33.7M
   CGroup: /system.slice/artifactory.service
           └─21183 /usr/bin/podman run --name artifactory -p 8081:8081 -p 8082:8082 -v /jfrog/artifactory:/var/opt/jfrog/artifactory docker.bintray.io/>

May 29 13:30:24 centos.computingforgeeks.com podman[21183]: 2020-05-29T11:30:24.363Z [jfac ] [INFO ] [d032e08be45c6acc] [CertificateFileHandlerBase:331>
May 29 13:30:24 centos.computingforgeeks.com podman[21183]: 2020-05-29T11:30:24.372Z [jfac ] [INFO ] [d032e08be45c6acc] [CertificateFileHandlerBase:125>
May 29 13:30:24 centos.computingforgeeks.com podman[21183]: 2020-05-29T11:30:24.372Z [jfac ] [INFO ] [d032e08be45c6acc] [CertificateFileHandlerBase:108>
May 29 13:30:24 centos.computingforgeeks.com podman[21183]: 2020-05-29T11:30:24.551Z [jfac ] [INFO ] [d032e08be45c6acc] [CertificateFileHandlerBase:331>
May 29 13:30:24 centos.computingforgeeks.com podman[21183]: 2020-05-29T11:30:24.551Z [jfac ] [INFO ] [d032e08be45c6acc] [CertificateFileHandlerBase:125>
May 29 13:30:24 centos.computingforgeeks.com podman[21183]: 2020-05-29T11:30:24.775Z [jfac ] [INFO ] [d032e08be45c6acc] [b.AccessServerBootstrapImpl:42>
May 29 13:30:26 centos.computingforgeeks.com podman[21183]: 2020-05-29T11:30:26.780Z [jfrt ] [INFO ] [35b2e6e932c70fb6] [ritiesStorageServiceFactory:25>
May 29 13:30:27 centos.computingforgeeks.com podman[21183]: 2020-05-29T11:30:27.093Z [jfac ] [INFO ] [d032e08be45c6acc] [o.j.a.s.r.s.GrpcServerImpl:65 >
May 29 13:30:27 centos.computingforgeeks.com podman[21183]: 2020-05-29T11:30:27.655Z [jfac ] [INFO ] [d032e08be45c6acc] [o.j.a.s.r.s.GrpcServerImpl:84 >
May 29 13:30:27 centos.computingforgeeks.com podman[21183]: 2020-05-29T11:30:27.731Z [jfac ] [INFO ] [d032e08be45c6acc] [o.j.a.s.s.JoinKeyAccess:166   

Step 5: Access the Artifactory web interface

Confirm that the service is listening and binding.

#  ss -tunelp | egrep '8081|8082'
tcp   LISTEN  0       128                   0.0.0.0:8081          0.0.0.0:*      users:(("conmon",pid=11018,fd=5)) ino:75048 sk:4 <->                           
tcp   LISTEN  0       128                   0.0.0.0:8082          0.0.0.0:*      users:(("conmon",pid=11018,fd=6)) ino:75049 sk:5 <->  

Artifactory can be accessed using the following URL:

http://SERVERIP_OR_DOMAIN:8081/artifactory

-- OR --
http://SERVERIP_OR_DOMAIN:8082/ui

You should see the Artifactory welcome page.

The default login name is:

Username: admin
Password: password

Click "start using"Button.

How to install JFrog Artifactory on CentOS 8

Reset the administrator password by setting a new password.

How to install JFrog Artifactory on CentOS 8

Provide the base URL of your JFrog.

How to install JFrog Artifactory on CentOS 8

Select the repository to be created during installation.

How to install JFrog Artifactory on CentOS 8

You have now installed JFrog Artifactory on the CentOS 8 Linux machine.

How to install JFrog Artifactory on CentOS 8

reference:

  • JFrog User Guide

Similar guidelines:

How to install JFrog Artifactory on Ubuntu

Related books:

Continuous delivery of Java applications: gradually build CD pipelines using Kubernetes, Docker, Vagrant, Jenkins, Spring, Maven, and Artifactory

Continuous delivery of Java applications: gradually build CD pipelines using Kubernetes, Docker, Vagrant, Jenkins, Spring, Maven, and Artifactory

$ 9.90

In stock

1 new
From $ 9.90

Buy now
How to install JFrog Artifactory on CentOS 8Amazon.com

As of June 28, 2020 at 10:30 PM

feature

Is an adult product
Release date2017-12-14T21: 21: 22.000Z
LanguageEnglish language
Pages587
Release date2017-12-14T21: 21: 22.000Z
formatKindle eBook

Liquid Software: How to get reliable continuous updates in the DevOps world

Liquid Software: How to get reliable continuous updates in the DevOps world

$19.95 $12.99

In stock

1 new
From $ 12.99

Buy now
How to install JFrog Artifactory on CentOS 8Amazon.com

As of June 28, 2020 at 10:30 PM

feature

Is an adult product
LanguageEnglish language
Release date2019-04-03T02: 05: 16Z
formatUncut

The
The

The
You can support us by downloading this article in PDF format through the following link.

Download the guide in PDF format

turn off
The

The
The

Sidebar