Monday, April 4, 2022

Module 14: How to setup Jfrog Antifactory on Amazon Linux in EC2?

 

How to setup Jfrog Artifactory on Amazon Linux EC2?

Jfrog is binary repository manager, used for storing build artifacts. We will eventually integrate Jfrog with Jenkins for uploading WAR/EAR/JAR files there.

Here are the steps for installing Jfrog in EC2 on AWS. Please create a new Amazon Linux EC2 instance with min requirement of 4CPU 16GB. Choose


and




Pre-requisites:
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).

Download Artifactory 
Add artifactory repository key and file to Linux
sudo wget https://releases.jfrog.io/artifactory/artifactory-rpms/artifactory-rpms.repo -O jfrog-artifactory-rpms.repo;




sudo mv jfrog-artifactory-rpms.repo /etc/yum.repos.d/;


sudo yum update 

Install Artifactory
sudo yum install jfrog-artifactory-oss -y 

systemctl enable artifactory

systemctl status artifactory 

systemctl start artifactory 

Check whether Artifactory is running?
systemctl status artifactory 


Check whether Artifactory is running?
curl localhost:8081


Access Artifactory App
Go to browser and open public IP/DNS name along with port no:8081
http://your_public_dns_name:8081 
note if it is taking too long to come up, access the above on incognito mode or clear your cache browser 

You should see Artifactory welcome page, login with default username and password which is
admin/password

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

Skip for base URL and skip proxy setup

Click Next

That's it! Artifactory is setup successfully.

No comments:

Post a Comment

Module 34: Understanding Terraform

  Terraform is a platform-agnostic tool that allows you to build, change, and version infrastructure securely and efficiently. Terraform is ...