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.

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.

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://api.bintray.com/orgs/jfrog/keys/gpg/public.key | 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 bionic 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 update
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.4.3 [422 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.

<img alt="" data-ezsrc="https://kirelos.com/wp-content/uploads/2020/05/echo/install-jfrog-artifactory-ubuntu-01-1024×589.png" data-ez ezimgfmt="rs rscb8 src ng ngcb8 srcset" src="data:image/svg xml,”>

The default logins are:

Username: admin
Password: password

Click the “Get Started” button.

<img alt="" data-ezsrc="https://kirelos.com/wp-content/uploads/2020/05/echo/install-jfrog-artifactory-ubuntu-02-1024×564.png" data-ez ezimgfmt="rs rscb8 src ng ngcb8 srcset" src="data:image/svg xml,”>

Reset admin password by setting a new one.

<img alt="" data-ezsrc="https://kirelos.com/wp-content/uploads/2020/05/echo/install-jfrog-artifactory-ubuntu-03-1024×469.png" data-ez ezimgfmt="rs rscb8 src ng ngcb8 srcset" src="data:image/svg xml,”>

Provide base URL for your JFrog.

<img alt="" data-ezsrc="https://kirelos.com/wp-content/uploads/2020/05/echo/install-jfrog-artifactory-ubuntu-04-1024×468.png" data-ez ezimgfmt="rs rscb8 src ng ngcb8 srcset" src="data:image/svg xml,”>

Select the repositories to be created during installation.

<img alt="" data-ezsrc="https://kirelos.com/wp-content/uploads/2020/05/echo/install-jfrog-artifactory-ubuntu-05-1024×467.png" data-ez ezimgfmt="rs rscb8 src ng ngcb8 srcset" src="data:image/svg xml,”>

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

<img alt="" data-ezsrc="https://kirelos.com/wp-content/uploads/2020/05/echo/install-jfrog-artifactory-ubuntu-06-1024×470.png" data-ez ezimgfmt="rs rscb8 src ng ngcb8 srcset" src="data:image/svg xml,”>

Reference: