We are committed to provide service 24 X 7

Deals, Shopping, Training, Tools

Learn how to – Install JFrog Artifactory on CentOS 8 | Rocky Linux 8

Learn how to – Install JFrog Artifactory on CentOS 8 | Rocky Linux 8.

Today’s guide will walk you through the installation of JFrog Artifactory on CentOS 8 | Rocky Linux 8 Linux server. JFrog Artifactory is an advanced repository management system fit for cloud-native deployment pipelines. With JFrog you have the flexibility of using your favorite orchestration tools to manage your application deployments using different configuration packages and application artifacts managed in Artifactory, such as Docker and Helm.

Features of JFrog Artifactory:

  • Basic Artifact Management
  • On Demand Jar Signing and Web Start Application
  • Repository Replication
  • Custom repository layout for non-Maven module management
  • Universal support for all major package formats
  • Powerful SSO integration for NTLM, Kerberos, etc.
  • Cloud Storage – S3, Google Cloud Storage, Microsoft Azure Cloud Storage
  • High Availability Setup support
  • Integration with Other JFrog Products – JFrog Xray, JFrog Mission Control, JFrog Pipelines, JFrog Bintray and JFrog CLI
  • Integration with all leading CI-servers
  • Promotion, demotion and cleanup of build artifacts
  • Powerful REST API for Release Automation
  • Basic Security – LDAP Authentication, Role-based authorization with teams and permissions
  • Advanced Storage Solutions – Filestore Sharding

Install JFrog Artifactory on CentOS 8 | Rocky Linux 8

We will be installing the JFrog’s Artifactory open source edition. You can as well go with the pro edition if you have the budget. We will run JFrog Artifactory on CentOS 8 | Rocky Linux 8 in containers using Podman.

Step 1: Update System

Ensure your CentOS 8 | Rocky Linux 8 system is updated.

sudo dnf update -y

Step 2: Install Podman on CentOS 8 | Rocky Linux 8

Install Podman and container tools on CentOS 8 | Rocky Linux 8 Linux machine.

sudo dnf -y install podman buildah

Confirm installation of Podman:

$ podman version
Client:       Podman Engine
Version:      4.2.0
API Version:  4.2.0
Go Version:   go1.18.9
Built:        Tue Feb 21 18:16:34 2023
OS/Arch:      linux/amd64

Step 2: Download JFrog Artifactory image

Download the JFrog Artifactory container image:

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

Confirm 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 edition, use:

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

Step 3: Run JFrog Artifactory on CentOS 8 | Rocky Linux 8

Create a working directory for JFrog container. This is where JFrog Artifactory will store its data.

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 | Rocky Linux 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 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 JFrog Artifactory main application port.

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

Step 3: Manage JFrog Artifactory on CentOS 8 | Rocky Linux 8 with Systemd

As you’ve seen, we’re managing the container with the podman command line. Let’s introduce systemd to the mix to ensure the service can be started automatically at system boot.

sudo tee /etc/systemd/system/artifactory.service<<EOF
[Unit]
Description=Setup Systemd script for Artifactory Container
After=network.target

[Service]
Restart=always
ExecStartPre=-/usr/bin/podman kill artifactory
ExecStartPre=-/usr/bin/podman rm artifactory
ExecStart=/usr/bin/podman run --name artifactory -p 8081:8081 -p 8082:8082 
  -v /jfrog/artifactory:/var/opt/jfrog/artifactory 
  docker.bintray.io/jfrog/artifactory-oss:latest
ExecStop=-/usr/bin/podman kill artifactory
ExecStop=-/usr/bin/podman rm artifactory

[Install]
WantedBy=multi-user.target
EOF

Reload systemd:

sudo systemctl daemon-reload

Then start Artifactory container with systemd:

sudo systemctl start artifactory

Enable it to start at system boot.

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

Status can be checked with:

$ 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.ownyourlife.com.ng podman[21183]: 2020-05-29T11:30:24.363Z [jfac ] [INFO ] [d032e08be45c6acc] [CertificateFileHandlerBase:331>
May 29 13:30:24 centos.ownyourlife.com.ng podman[21183]: 2020-05-29T11:30:24.372Z [jfac ] [INFO ] [d032e08be45c6acc] [CertificateFileHandlerBase:125>
May 29 13:30:24 centos.ownyourlife.com.ng podman[21183]: 2020-05-29T11:30:24.372Z [jfac ] [INFO ] [d032e08be45c6acc] [CertificateFileHandlerBase:108>
May 29 13:30:24 centos.ownyourlife.com.ng podman[21183]: 2020-05-29T11:30:24.551Z [jfac ] [INFO ] [d032e08be45c6acc] [CertificateFileHandlerBase:331>
May 29 13:30:24 centos.ownyourlife.com.ng podman[21183]: 2020-05-29T11:30:24.551Z [jfac ] [INFO ] [d032e08be45c6acc] [CertificateFileHandlerBase:125>
May 29 13:30:24 centos.ownyourlife.com.ng podman[21183]: 2020-05-29T11:30:24.775Z [jfac ] [INFO ] [d032e08be45c6acc] [b.AccessServerBootstrapImpl:42>
May 29 13:30:26 centos.ownyourlife.com.ng podman[21183]: 2020-05-29T11:30:26.780Z [jfrt ] [INFO ] [35b2e6e932c70fb6] [ritiesStorageServiceFactory:25>
May 29 13:30:27 centos.ownyourlife.com.ng 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.ownyourlife.com.ng 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.ownyourlife.com.ng podman[21183]: 2020-05-29T11:30:27.731Z [jfac ] [INFO ] [d032e08be45c6acc] [o.j.a.s.s.JoinKeyAccess:166   

Step 5: Access Artifactory Web Interface

Confirm that the service is listening and bound.

$ sudo 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 Artifactory welcome page.

The default logins are:

Username: admin
Password: password

Click the “Get Started” button.

Reset admin password by setting a new one.

Provide base URL for your JFrog.

Select the repositories to be created during installation.

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

Reference:

Similar guides:

How To Install JFrog Artifactory on Ubuntu

Relevant Books:

Continuous Delivery for Java Apps: Build a CD Pipeline Step by Step Using Kubernetes, Docker, Vagrant, Jenkins, Spring, Maven and Artifactory

$9.90
 in stock

Amazon.com

as of May 10, 2023 8:25 pm

Liquid Software: How to Achieve Trusted Continuous Updates in the DevOps World

$19.95
$12.99

 in stock

Amazon.com

as of May 10, 2023 8:25 pm

Cart

Your Cart is Empty

Back To Shop