Jfroge Artifactory 2018
Last time I install Artifactory, that is 2014, how time flies. Last time, I am using the war package directly under web container tomcat.
Currently, the artifactory contains all kinds of different version.
https://www.jfrog.com/confluence/display/RTF/Artifactory+Comparison+Matrix
It seems here is the open source version. https://jfrog.com/open-source/. I download and get a zip file jfrog-artifactory-oss-6.3.3.zip
Unzip the file and place it in the working directory /opt/artifactory
Update the configuration
Check where is my JAVA home
> echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home
> vi bin/artifactory.default
#Default values
export ARTIFACTORY_HOME=/opt/artifactory
export ARTIFACTORY_USER=admin
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/
#export START_LOCAL_REPLICATOR=true
Start Command
> bin/artifactory.sh start
Visit the web page we have on our local machine
http://localhost:8081/artifactory/webapp/#/home
Follow the page and set the password, eg. admin1234, the default user name is admin. So admin/admin1234
Here is jfrog command line which can push the package to artifactory
https://stackoverflow.com/questions/20060553/how-do-i-deploy-a-file-to-artifactory-using-the-command-line
https://jfrog.com/knowledge-base/how-do-i-deploy-large-files-to-artifactory/
https://www.jfrog.com/confluence/display/CLI/CLI+for+JFrog+Artifactory
Download the cli file from here
https://jfrog.com/getcli/
I download the file named jfrog
Once we place that in the directory and add that to the path, we can check the version
> jfrog --version
jfrog version 1.20.0
The usage document is here
https://www.jfrog.com/confluence/display/CLI/JFrog+CLI
rt - JFrog Artifactory
bt - JFrog Bintray
mc - JFrog Mission Control
xr - JFrog Xray
In my case
Upload the file to my artifactory
> jfrog rt u nginx-1.11.9-bin-stage-1.0.tar.gz libs-release-local/com/sillycat/1.11.9/
It is asking my authentication details as follow:
Configure now? (y/n): y
Artifactory server ID: sillycat-local
Artifactory URL: http://localhost:8081/artifactory
User: admin
Password/API key:
Then I get my file in the directory here
http://localhost:8081/artifactory/libs-release-local/com/sillycat/1.11.9/nginx-1.11.9-bin-stage-1.0.tar.gz
I can easily download the file after I deploy the file there.
I upload that to my company’s server
> jfrog rt config --url http://artifacts.sillycat.com/artifactory --interactive=false
> jfrog rt u sillycat.sky.css.stage.nginx-1.11.9-1.1.tar.gz sillycat.uvc.css.development/
Then, the file is there. That is great.
More example
jfrog rt config --url $ARTIFACTORY_URL --user $ARTIFACTORY_USER --apikey $ARTIFACTORY_APIKEY --interactive=false
References:
http://sillycat.iteye.com/blog/2114173
https://blog.csdn.net/yanggd1987/article/details/78302003
https://www.jianshu.com/p/dfd02fa239e2
https://circleci.com/docs/2.0/artifactory/
Last time I install Artifactory, that is 2014, how time flies. Last time, I am using the war package directly under web container tomcat.
Currently, the artifactory contains all kinds of different version.
https://www.jfrog.com/confluence/display/RTF/Artifactory+Comparison+Matrix
It seems here is the open source version. https://jfrog.com/open-source/. I download and get a zip file jfrog-artifactory-oss-6.3.3.zip
Unzip the file and place it in the working directory /opt/artifactory
Update the configuration
Check where is my JAVA home
> echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home
> vi bin/artifactory.default
#Default values
export ARTIFACTORY_HOME=/opt/artifactory
export ARTIFACTORY_USER=admin
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/
#export START_LOCAL_REPLICATOR=true
Start Command
> bin/artifactory.sh start
Visit the web page we have on our local machine
http://localhost:8081/artifactory/webapp/#/home
Follow the page and set the password, eg. admin1234, the default user name is admin. So admin/admin1234
Here is jfrog command line which can push the package to artifactory
https://stackoverflow.com/questions/20060553/how-do-i-deploy-a-file-to-artifactory-using-the-command-line
https://jfrog.com/knowledge-base/how-do-i-deploy-large-files-to-artifactory/
https://www.jfrog.com/confluence/display/CLI/CLI+for+JFrog+Artifactory
Download the cli file from here
https://jfrog.com/getcli/
I download the file named jfrog
Once we place that in the directory and add that to the path, we can check the version
> jfrog --version
jfrog version 1.20.0
The usage document is here
https://www.jfrog.com/confluence/display/CLI/JFrog+CLI
rt - JFrog Artifactory
bt - JFrog Bintray
mc - JFrog Mission Control
xr - JFrog Xray
In my case
Upload the file to my artifactory
> jfrog rt u nginx-1.11.9-bin-stage-1.0.tar.gz libs-release-local/com/sillycat/1.11.9/
It is asking my authentication details as follow:
Configure now? (y/n): y
Artifactory server ID: sillycat-local
Artifactory URL: http://localhost:8081/artifactory
User: admin
Password/API key:
Then I get my file in the directory here
http://localhost:8081/artifactory/libs-release-local/com/sillycat/1.11.9/nginx-1.11.9-bin-stage-1.0.tar.gz
I can easily download the file after I deploy the file there.
I upload that to my company’s server
> jfrog rt config --url http://artifacts.sillycat.com/artifactory --interactive=false
> jfrog rt u sillycat.sky.css.stage.nginx-1.11.9-1.1.tar.gz sillycat.uvc.css.development/
Then, the file is there. That is great.
More example
jfrog rt config --url $ARTIFACTORY_URL --user $ARTIFACTORY_USER --apikey $ARTIFACTORY_APIKEY --interactive=false
References:
http://sillycat.iteye.com/blog/2114173
https://blog.csdn.net/yanggd1987/article/details/78302003
https://www.jianshu.com/p/dfd02fa239e2
https://circleci.com/docs/2.0/artifactory/