Artifactory: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 76: Line 76:
* [https://www.jfrog.com/confluence/display/RTF4X/Running+with+Docker Running with Docker]
* [https://www.jfrog.com/confluence/display/RTF4X/Running+with+Docker Running with Docker]
* [https://docs.docker.com/engine/reference/commandline/volume_create/ Docker volume create]
* [https://docs.docker.com/engine/reference/commandline/volume_create/ Docker volume create]
* [https://github.com/jfrog/artifactory-docker-examples Artifactory Docker Examples]

Revision as of 23:11, 18 August 2018

Pull Artifactory

Artifactory Latest

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

Artifactory 5.11.0

docker pull docker.bintray.io/jfrog/artifactory-pro:5.11.0
docker pull docker.bintray.io/jfrog/artifactory-oss:5.11.0

Artifactory 5.10.4

docker pull docker.bintray.io/jfrog/artifactory-pro:5.10.4
docker pull docker.bintray.io/jfrog/artifactory-oss:5.10.4

Artifactory 4.1.0

docker pull docker.bintray.io/jfrog/artifactory-pro:4.1.0
docker pull docker.bintray.io/jfrog/artifactory-oss:4.1.0

Artifactory 4.0.0

docker pull docker.bintray.io/jfrog/artifactory-pro:4.0.0
docker pull docker.bintray.io/jfrog/artifactory-oss:4.0.0

How to run

docker run --name='artifactory' -d -p 9040:8081 docker.bintray.io/jfrog/artifactory-oss:4.1.0
docker exec -it artifactory bash
docker start artifactory
docker stop artifactory
vim /etc/httpd/conf.modules.d/00-proxy.conf
    # proxy for artifactory
    ProxyPass /artifactory http://localhost:9040/artifactory nocanon
    ProxyPassReverse /artifactory http://localhost:9040/artifactory
apachectl -t
service httpd restart

Good to Know

# filter and remove docker images, containers 
docker rm $(docker ps --all -q -f status=dead)
docker rmi $(docker images -qa -f 'dangling=true')
docker rm artifactory && docker rmi docker.bintray.io/jfrog/artifactory-oss:4.1.0

# docker container debug, checking history & service
docker run --name='artifactory' -it docker.bintray.io/jfrog/artifactory-oss:4.1.0
docker history docker.bintray.io/jfrog/artifactory-oss:4.1.0
docker exec -it artifactory /bin/bash
docker exec -it artifactory bash
docker logs artifactory 
service --status-all

References