Saturday, November 16, 2024
Google search engine
HomeGuest BlogsHow To Install JFrog Artifactory on Ubuntu 20.04

How To Install JFrog Artifactory on Ubuntu 20.04

.tdi_3.td-a-rec{text-align:center}.tdi_3 .td-element-style{z-index:-1}.tdi_3.td-a-rec-img{text-align:left}.tdi_3.td-a-rec-img img{margin:0 auto 0 0}@media(max-width:767px){.tdi_3.td-a-rec-img{text-align:center}}

JFrog Artifactory is one of the most advanced repository management applications which integrate seamlessly with continuous integration and delivery tools. It helps you have a single source of truth for all your packages, container images and Helm charts. This guide will walk you through the installation of JFrog Artifactory on Ubuntu 20.04.

With JFrog Artifactory, you use your favorite orchestration tools to manage your application deployments using different configuration packages and application artifacts managed in Artifactory, such as Docker and Helm. It offers a variety of storage solutions that let your repositories scale as your business grows.

Install JFrog Artifactory on Ubuntu 20.04

We will be installing the JFrog’s Artifactory open source edition created to speed up development cycles using binary repositories. You can choose to install JFrog Artifactory on Ubuntu 20.04 from the Debian packages or using Docker container images.

.tdi_2.td-a-rec{text-align:center}.tdi_2 .td-element-style{z-index:-1}.tdi_2.td-a-rec-img{text-align:left}.tdi_2.td-a-rec-img img{margin:0 auto 0 0}@media(max-width:767px){.tdi_2.td-a-rec-img{text-align:center}}

Our installation method is from the debian packages provided in an APT repository. Add the repository to your Ubuntu system by running the following commands.

Step 1: Import repository GPG Key

Start by importing the GPG key used for signing the debian packages.

sudo apt update
wget -qO - https://releases.jfrog.io/artifactory/api/gpg/key/public | sudo apt-key add -

Step 2: Add JFrog Artifactory to Ubuntu 20.04

After confirming the importation of GPG key, you can now add the JFrog Artifactory to Ubuntu 20.04.

echo "deb https://jfrog.bintray.com/artifactory-debs focal main" | sudo tee /etc/apt/sources.list.d/jfrog.list

Update APT index:

sudo apt update

Step 3: Install JFrog Artifactory on Ubuntu 20.04

Use the apt package manager to install JFrog Artifactory on Ubuntu 20.04:

sudo apt install jfrog-artifactory-oss

Installation will start immediately.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  jfrog-artifactory-oss
0 upgraded, 1 newly installed, 0 to remove and 36 not upgraded.
Need to get 422 MB of archives.
After this operation, 767 MB of additional disk space will be used.
Get:1 https://jfrog.bintray.com/artifactory-debs bionic/main amd64 jfrog-artifactory-oss amd64 7.27.9 [434 MB]
Fetched 422 MB in 6s (74.2 MB/s)                
....

Start and enable the service:

sudo systemctl start artifactory.service
sudo systemctl enable artifactory.service

Confirm service status:

$ systemctl status artifactory.service
● artifactory.service - Artifactory service
     Loaded: loaded (/lib/systemd/system/artifactory.service; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2020-05-28 01:24:19 CEST; 1min 0s ago
   Main PID: 8385 (java)
      Tasks: 0 (limit: 4567)
     Memory: 1.6M
     CGroup: /system.slice/artifactory.service
             ‣ 8385 /opt/jfrog/artifactory/app/third-party/java/bin/java -Djava.util.logging.config.file=/opt/jfrog/artifactory/app/artifactory/tomcat/>

May 28 01:24:18 ubuntu su[8692]: pam_unix(su:session): session opened for user artifactory by (uid=0)
May 28 01:24:19 ubuntu su[8692]: pam_unix(su:session): session closed for user artifactory
May 28 01:24:19 ubuntu su[8814]: (to artifactory) root on none
May 28 01:24:19 ubuntu su[8814]: pam_unix(su:session): session opened for user artifactory by (uid=0)
May 28 01:24:19 ubuntu su[8814]: pam_unix(su:session): session closed for user artifactory
May 28 01:24:19 ubuntu su[8951]: (to artifactory) root on none
May 28 01:24:19 ubuntu su[8951]: pam_unix(su:session): session opened for user artifactory by (uid=0)
May 28 01:24:19 ubuntu su[8951]: pam_unix(su:session): session closed for user artifactory
May 28 01:24:19 ubuntu systemd[1]: Started Artifactory service.
...

Step 4: Access Artifactory Web Interface

Artifactory can be accessed using the following URL:

http://SERVERIP_OR_DOMAIN:8081/artifactory

You should see Artifactory welcome page.

install jfrog artifactory ubuntu 01

The default logins are:

Username: admin
Password: password

Click the “Get Started” button.

install jfrog artifactory ubuntu 02

Reset admin password by setting a new one.

install jfrog artifactory ubuntu 03

Provide base URL for your JFrog.

install jfrog artifactory ubuntu 04

Select the repositories to be created during installation.

install jfrog artifactory ubuntu 05

You now have JFrog Artifactory installed on Ubuntu 20.04 Linux machine.

install jfrog artifactory ubuntu 06

Reference:

Valid Books:

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

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

$19.95
$12.99

 in stock

Amazon.com

as of August 16, 2023 3:18 pm
Continuous Delivery for Java Apps: Build a CD Pipeline Step by Step Using Kubernetes, Docker, Vagrant, Jenkins, Spring, Maven and Artifactory

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 August 16, 2023 3:18 pm
.tdi_4.td-a-rec{text-align:center}.tdi_4 .td-element-style{z-index:-1}.tdi_4.td-a-rec-img{text-align:left}.tdi_4.td-a-rec-img img{margin:0 auto 0 0}@media(max-width:767px){.tdi_4.td-a-rec-img{text-align:center}}

RELATED ARTICLES

Most Popular

Recent Comments