Artifactory: Difference between revisions
Jump to navigation
Jump to search
Line 73: | Line 73: | ||
docker run --detach \ | docker run --detach \ | ||
--publish 9040:8081 \ | --publish 9040:8081 \ | ||
--publish | --publish 9041:8082 \ | ||
--name artifactory \ | --name artifactory \ | ||
--volume $JFROG_HOME/artifactory7/var/:/var/opt/jfrog/artifactory \ | --volume $JFROG_HOME/artifactory7/var/:/var/opt/jfrog/artifactory \ | ||
Line 82: | Line 82: | ||
docker run --detach \ | docker run --detach \ | ||
--publish 9040:8081 \ | --publish 9040:8081 \ | ||
--publish | --publish 9041:8082 \ | ||
--name conan \ | --name conan \ | ||
--volume $JFROG_HOME/conan7/var/:/var/opt/jfrog/artifactory \ | --volume $JFROG_HOME/conan7/var/:/var/opt/jfrog/artifactory \ | ||
Line 93: | Line 93: | ||
</source> | </source> | ||
<source lang=" | <source lang="apache"> | ||
# proxy for artifactory | # proxy for artifactory | ||
<Location /artifactory> | |||
ProxyPassReverse /artifactory http://localhost: | Order Allow,Deny | ||
Allow from all | |||
ProxyPass http://localhost:9040/artifactory nocanon | |||
ProxyPassReverse http://localhost:9040/artifactory | |||
</Location> | |||
# proxy for artifactory/ui | |||
<Location /ui> | |||
Order Allow,Deny | |||
Allow from all | |||
ProxyPass http://localhost:9041/ui nocanon | |||
ProxyPassReverse http://localhost:9041/ui | |||
</Location> | |||
</source> | </source> | ||
Revision as of 06:19, 11 August 2020
Linux: export JFROG_HOME=/srv/jfrog |
MacOS: export JFROG_HOME=$HOME/jfrog |
Volume
Local location | Container location | Usage |
---|---|---|
$JFROG_HOME/artifactory7/var/ |
/var/opt/jfrog/artifactory |
For storing artifactory data |
Pull
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 6.2.0
docker pull docker.bintray.io/jfrog/artifactory-pro:6.2.0
docker pull docker.bintray.io/jfrog/artifactory-oss:6.2.0
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
Run
docker run --name='artifactory' -d -p 8089:8081 docker.bintray.io/jfrog/artifactory-oss:4.1.0
docker exec -it artifactory bash
docker start artifactory
docker stop artifactory
Advance
mkdir -p $JFROG_HOME/artifactory7/var/etc/
touch $JFROG_HOME/artifactory7/var/etc/system.yaml
chown -R 1030:1030 $JFROG_HOME/artifactory7/var
docker run --detach \
--publish 9040:8081 \
--publish 9041:8082 \
--name artifactory \
--volume $JFROG_HOME/artifactory7/var/:/var/opt/jfrog/artifactory \
docker.bintray.io/jfrog/artifactory-oss:7.6.3
docker run --detach \
--publish 9040:8081 \
--publish 9041:8082 \
--name conan \
--volume $JFROG_HOME/conan7/var/:/var/opt/jfrog/artifactory \
docker.bintray.io/jfrog/artifactory-cpp-ce:7.6.3
vim /private/etc/apache2/extra/httpd-vhosts.conf
vim /etc/httpd/conf.modules.d/00-proxy.conf
# proxy for artifactory
<Location /artifactory>
Order Allow,Deny
Allow from all
ProxyPass http://localhost:9040/artifactory nocanon
ProxyPassReverse http://localhost:9040/artifactory
</Location>
# proxy for artifactory/ui
<Location /ui>
Order Allow,Deny
Allow from all
ProxyPass http://localhost:9041/ui nocanon
ProxyPassReverse http://localhost:9041/ui
</Location>
apachectl -t
service httpd restart
docker logs conan
docker logs artifactory
# http://cdn.chorke.org/artifactory/webapp/#/login@admin/password
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