Thursday, April 23, 2020

Install Artifactory on Ubuntu - Setup Artifactory on Ubuntu - Install Artifactory 7.4.1 on Ubuntu 18.0.4 EC2 in AWS

Artifactory is one of the popular binary repository managers. It is Java based open source tool, used for storing artifacts. Artifactory can be used for storing Docker images as well.

Artifactory can be integrated with many Continuous integration and Continuous delivery tools. Artifactory is mainly used by Ant, Maven and Gradle build tools.

Let us see how to install Artifactory on Ubuntu 18.0.4.

Pre-requistes:
Install Artifactory on 2GM RAM, for AWS choose at least small or medium instance type.
Default ports 8081 and 8082 needs to be opened.
8081 for Artifactory REST APIs.
8082 for everything else (UI, and all other product’s APIs).

Update Ubuntu server
sudo apt-get update

Install Java Open JDK 11 package
sudo apt-get install default-jdk -y

Verify Java Version
java -version

Download Artifactory 
Add artifactory repository key and file to Ubuntu.
sudo wget -qO - https://api.bintray.com/orgs/jfrog/keys/gpg/public.key | sudo apt-key add - 

sudo add-apt-repository "deb [arch=amd64] https://jfrog.bintray.com/artifactory-debs $(lsb_release -cs) main"
Update the package
sudo apt-get update

Install Artifactory 
sudo apt install jfrog-artifactory-oss
The above message should confirm Artifactory have been successfully installed.
Now let us start Artifactory service.

Start Artifactory 
sudo systemctl start artifactory.service

Create symbolic link
sudo systemctl enable artifactory.service


Check whether Artifactory is running?
sudo systemctl status artifactory.service

Check if service is running locally on 8081 port
curl localhost:8081

Access Artifactory Web Interface
You should see Artifactory welcome page, Login with Username:  admin and Password: password 


After Login, click on Get started. Now reset admin password. enter as Admin123/Admin123

Skip for base URL and skip proxy setup, choose Generic and Maven
Click Next

That's it! Artifactory is setup successfully. Please watch the steps in details below in my YouTube channel:

Jenkins Artifactory Integration
Find steps involved in integrating Artifactory with Jenkins.

https://www.coachdevops.com/2020/04/integrate-artifactory-with-jenkins.html

No comments:

Post a Comment