Jfroge Artifactory 2018

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/
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值