Artifactory – Little Big Extra http://littlebigextra.com A technology blog covering topics on Java, Scala, Docker, AWS, BigData, DevOps and much more to come. Do it yourself instructions for complex to simple problems for a novice to an expert. Wed, 05 Apr 2023 10:13:58 +0000 en-US hourly 1 https://wordpress.org/?v=5.6.8 http://littlebigextra.com/wp-content/uploads/2023/04/cropped-logo-32x32.png Artifactory – Little Big Extra http://littlebigextra.com 32 32 How to Install Artifactory on Docker http://littlebigextra.com/how-to-install-artifactory-on-docker/ http://littlebigextra.com/how-to-install-artifactory-on-docker/#respond Mon, 27 Feb 2023 16:13:23 +0000 http://52.37.230.57/?p=262 Installing Artifactory on Docker JFrog Artifactory is a repository manager used for versioning deployable like a jar, war, docker image etc. Artifactory Pro is a licensed/paid version which will let you create repositories for docker images and much more.Artifactory OSS is open source and a restrective version where you can create maven repositories and few others. […]

The post How to Install Artifactory on Docker appeared first on Little Big Extra.

]]>
Share this article on

Installing Artifactory on Docker

JFrog Artifactory is a repository manager used for versioning deployable like a jar, war, docker image etc. Artifactory Pro is a licensed/paid version which will let you create repositories for docker images and much more.Artifactory OSS is open source and a restrective version where you can create maven repositories and few others.

In this tutorial, we will

    • Get Artifactory Docker Image from Docker Hub
    • Run the Docker Image
    • Verify Installation

Get official Artifactory Image

Pull the Artifactory OSS Docker Image, it’s an open source image. For this tutorial, we will go ahead with Artifactory OSS

docker pull docker.bintray.io/jfrog/artifactory-oss:latest

 

Run Docker Image

 

Map localhost ports

  • Then we will try to run the image, we will map Docker on localhost port 8081

docker run --name artifactory -d -p 8081:8081 docker.bintray.io/jfrog/artifactory-pro:latest

 

Map Volumes to persist data

It is important to persist the artifacts which will be fed to Artifactory, so we have two options here

    • If it is important to persist the Jenkins data you can choose between the 2 options.
      1. Save data within the docker container, the docker volume persists upon restarts and even after if the container is deleted.
      2. Save data on your host/disk/laptop/machine. Weigh in your requirements and see what fits in with your requirements.

If artifactory was running using above command already then you need to stop the container using

docker stop artifactory
docker rm artifactory

  • Option-1> To persist the data within docker container
    docker volume create --name artifactory5_data
    
    docker run --name artifactory-5.0.0 -d -v artifactory5_data:/var/opt/jfrog/artifactory -p 8081:8081 docker.bintray.io/jfrog/artifactory-pro:latest

    OR

  • Option-2> To persist the data within host( host machine/laptop) container
    docker run --name artifactory-5.0.0 -d -v  /Users/abhishek/jfrog/artifactory:/var/opt/jfrog/artifactory -p 8081:8081 docker.bintray.io/jfrog/artifactory-oss:latest
Don’t forget to change the path to your local drive  after -v tag /Users/…. in case of Mac and C:/Users…. in case of Windows

Verify Installation

  • Since Artifactory was mapped to localhost port 8081, open your browser and use localhost:8081 if accessing from the same machine.

http://SERVER_DOMAIN:8081/artifactory

The post How to Install Artifactory on Docker appeared first on Little Big Extra.

]]>
http://littlebigextra.com/how-to-install-artifactory-on-docker/feed/ 0