Artifactory is open source, binary repository manager. Artifactory is the single solution for managing all the artifacts, binaries, files and containers throughout your software supply chain.
Some of the key features of Artifactory:
Supports 27 different package types including helm charts, docker images regardless of tech stack.
A single source of truth for all your binaries
Integration with all CICD tools
role based authorization with teams to manage artifacts
you can create local, remote and virtual repositories
What is Docker Compose?
Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application’s services. Then, with a single command, you create and start all the services from your configuration. Since Docker Compose lets you configure related containers in a single YAML file, you get the same Infrastructure-as-Code abilities as Kubernetes. But they come in a simpler system that’s more suited to smaller applications that don’t need Kubernetes’ resiliency and scaling.
The purpose of docker-compose is to function as docker cli but to issue multiple commands much more quickly. To make use of docker-compose, you need to encode the commands you were running before into a docker-compose.yml file
Run docker-compose up and Compose starts and runs your entire app.
Watch the Steps in YouTube channel:
Pre-requisites:
Ubuntu EC2 up and running with at least t2.medium (4GB RAM), 2GB will not work
Port 8081, 8082 is opened in security firewall rule
instance should have docker-compose installed
Change Host Name to Artifactory sudo hostnamectl set-hostname Artifactory
Perform System update
sudo apt update
Install Docker-Compose
sudo apt install docker-compose -y
Create docker-compose.yml
this yml has all the configuration for installing Artifactory on Ubuntu EC2.
sudo vi docker-compose.yml
(Copy the below code high-lighted in yellow color)
Let us learn how to create and configure a Self-Hosted Agent in Azure DevOps (ADO).
What is an Agent?
An agent is computing infrastructure with installed agent software that runs one job at a time.
To build your code or deploy your software using Azure Pipelines, you need at least one agent. As you add more code and people, you'll eventually need more.
When your pipeline runs, the system begins one or more jobs.
In Azure pipelines, there are two types of build agents:
Microsoft-hosted agents - This is a service totally managed by Microsoft and it's cleared on every execution of the pipeline (on each pipeline execution, you have a fresh new environment).
Self-hosted agents - This is a service that you can to set up and manage by yourself. This can be a custom virtual machine on Azure or a custom on-premise machine inside your infrastructure. In a self-hosted agent, you can install all the software you need for your builds, and this is persisted on every pipeline execution. A self-hosted agent can be on Windows, Linux, macOS, or in a Docker container.
Accept the Team Explorer Everywhere license agreement now?
Type Y and enter
Step #5:
Enter server URL > https://dev.azure.com/{yourorganization}
Step #6:
Enter authentication type (press enter for PAT) > PAT
Step #7:
Enter personal access token, generated from this step
Step #8:
Enter Agent pool
Give some name
Step #9:
Enter Agent name --> myBuildAgent_1
Step #10:
Enter work folder > enter
that's it agent is successfully configured.
Configure the Agent to run as a Service
sudo ./svc.sh install &
Execute now to run as a service
./runsvc.sh &
Check the status of build Agent
Click on Ubuntu-18-VM pool name
Click on Agents
This confirms that Build agent is successfully configured in Azure DevOps and is available to run builds.
Steps for removing Agent from the agent pool
Remove the service first
sudo ./svc.sh uninstall
./config.sh remove
To Perform Java related builds on this Agent, make sure you install Java and Maven on this VM.
Install Java 11
sudo apt-get install default-jdk -y
Maven Installation Maven is a popular build tool used for building Java applications. Please click here to learn more about Maven. You can install Maven by executing below command: