- 浏览: 2564683 次
- 性别:
- 来自: 成都
-
文章分类
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
Jfroge Artifactory 2018 and Docker
Here is the Makefile to show us how to run the docker application
PORT=8081
IMAGE=docker.bintray.io/jfrog/artifactory-oss
TAG=latest
NAME=artifactory-$(PORT)
run:
docker run \
-d \
-p $(PORT):8081 \
-v $(shell pwd)/artifactory-data:/var/opt/jfrog/artifactory \
-v /var/run/docker.sock:/var/run/docker.sock \
--name $(NAME) \
$(IMAGE):$(TAG)
clean:
docker stop ${NAME}
docker rm ${NAME}
Visit this page, the default username and password is http://localhost:8081/artifactory/webapp/#/home, admin/password
It works perfect on Mac OS, but failed on the ubuntu machine I guess with following Exceptions
2019-01-31T00:27:46.487051596Z 2019-01-31 00:27:46 [169 entrypoint-artifactory.sh] Testing directory /var/opt/jfrog/artifactory has read/write permissions for user 'artifactory' (id 1030)
2019-01-31T00:27:46.487247037Z /entrypoint-artifactory.sh: line 138: /var/opt/jfrog/artifactory/test-permissions: Permission denied
2019-01-31T00:27:46.493573507Z 2019-01-31 00:27:46 [187 entrypoint-artifactory.sh] ###########################################################
2019-01-31T00:27:46.498294493Z 2019-01-31 00:27:46 [188 entrypoint-artifactory.sh] /var/opt/jfrog/artifactory DOES NOT have proper permissions for user 'artifactory' (id 1030)
2019-01-31T00:27:46.502927113Z 2019-01-31 00:27:46 [189 entrypoint-artifactory.sh] Directory: /var/opt/jfrog/artifactory, permissions: 755, owner: root, group: root
2019-01-31T00:27:46.507631883Z 2019-01-31 00:27:46 [190 entrypoint-artifactory.sh] Mounted directory must have read/write permissions for user 'artifactory' (id 1030)
2019-01-31T00:27:46.511919446Z 2019-01-31 00:27:46 [191 entrypoint-artifactory.sh] ###########################################################
2019-01-31T00:27:46.516348464Z 2019-01-31 00:27:46 [39 entrypoint-artifactory.sh] ERROR: Directory /var/opt/jfrog/artifactory has bad permissions for user 'artifactory' (id 1030)
Solution:
Run the docker application as root will solve the problem
run:
docker run \
-d \
-u root \
-p $(PORT):8081 \
-v $(shell pwd)/artifactory-data:/var/opt/jfrog/artifactory \
-v /var/run/docker.sock:/var/run/docker.sock \
--name $(NAME) \
$(IMAGE):$(TAG)
MAVEN for that
https://www.jianshu.com/p/dfd02fa239e2
I can use Jfrog client to do everything
> jfrog rt config --url http://webapi-dev.sillycat.com:4141/artifactory --user yiyikang --apikey xxxxxxx --interactive=false
> jfrog rt u target/sillycatpackage-1.0.0.SNAPSHOT-bundle.tar.gz libs-snapshot-local/com/sillycat/package/1.0.0.SNAPSHOT/
I am using it in Jenkins Pipeline in this way
stage('Deploy to SNAPSHOT') {
steps {
withCredentials([string(credentialsId: 'artifactory', variable: 'TOKEN')]) {
sh '''
set +x
jfrog rt config --url http://webapi-dev.sillycat.com:4441/artifactory --user yiyikang --apikey $TOKEN --interactive=false
jfrog rt u target/sillycatconnector-*-bundle.tar.gz libs-snapshot-local/com/sillycat/sillycatconnector/1.0/
'''
}
}
}
It will deploy the version number in pom.xml to Artifactory.
References:
http://sillycat.iteye.com/blog/2431253
https://www.jfrog.com/confluence/display/RTF/Configuring+the+Filestore
https://jfrog.com/screencast/artifactory-5-one-minute-setup-docker-registry-as-container-install/
https://blog.csdn.net/LABLENET/article/details/64922823
https://www.jianshu.com/p/dfd02fa239e2
https://www.jfrog.com/confluence/display/RTF/Working+With+Pipeline+Jobs+in+Jenkins
Here is the Makefile to show us how to run the docker application
PORT=8081
IMAGE=docker.bintray.io/jfrog/artifactory-oss
TAG=latest
NAME=artifactory-$(PORT)
run:
docker run \
-d \
-p $(PORT):8081 \
-v $(shell pwd)/artifactory-data:/var/opt/jfrog/artifactory \
-v /var/run/docker.sock:/var/run/docker.sock \
--name $(NAME) \
$(IMAGE):$(TAG)
clean:
docker stop ${NAME}
docker rm ${NAME}
Visit this page, the default username and password is http://localhost:8081/artifactory/webapp/#/home, admin/password
It works perfect on Mac OS, but failed on the ubuntu machine I guess with following Exceptions
2019-01-31T00:27:46.487051596Z 2019-01-31 00:27:46 [169 entrypoint-artifactory.sh] Testing directory /var/opt/jfrog/artifactory has read/write permissions for user 'artifactory' (id 1030)
2019-01-31T00:27:46.487247037Z /entrypoint-artifactory.sh: line 138: /var/opt/jfrog/artifactory/test-permissions: Permission denied
2019-01-31T00:27:46.493573507Z 2019-01-31 00:27:46 [187 entrypoint-artifactory.sh] ###########################################################
2019-01-31T00:27:46.498294493Z 2019-01-31 00:27:46 [188 entrypoint-artifactory.sh] /var/opt/jfrog/artifactory DOES NOT have proper permissions for user 'artifactory' (id 1030)
2019-01-31T00:27:46.502927113Z 2019-01-31 00:27:46 [189 entrypoint-artifactory.sh] Directory: /var/opt/jfrog/artifactory, permissions: 755, owner: root, group: root
2019-01-31T00:27:46.507631883Z 2019-01-31 00:27:46 [190 entrypoint-artifactory.sh] Mounted directory must have read/write permissions for user 'artifactory' (id 1030)
2019-01-31T00:27:46.511919446Z 2019-01-31 00:27:46 [191 entrypoint-artifactory.sh] ###########################################################
2019-01-31T00:27:46.516348464Z 2019-01-31 00:27:46 [39 entrypoint-artifactory.sh] ERROR: Directory /var/opt/jfrog/artifactory has bad permissions for user 'artifactory' (id 1030)
Solution:
Run the docker application as root will solve the problem
run:
docker run \
-d \
-u root \
-p $(PORT):8081 \
-v $(shell pwd)/artifactory-data:/var/opt/jfrog/artifactory \
-v /var/run/docker.sock:/var/run/docker.sock \
--name $(NAME) \
$(IMAGE):$(TAG)
MAVEN for that
https://www.jianshu.com/p/dfd02fa239e2
I can use Jfrog client to do everything
> jfrog rt config --url http://webapi-dev.sillycat.com:4141/artifactory --user yiyikang --apikey xxxxxxx --interactive=false
> jfrog rt u target/sillycatpackage-1.0.0.SNAPSHOT-bundle.tar.gz libs-snapshot-local/com/sillycat/package/1.0.0.SNAPSHOT/
I am using it in Jenkins Pipeline in this way
stage('Deploy to SNAPSHOT') {
steps {
withCredentials([string(credentialsId: 'artifactory', variable: 'TOKEN')]) {
sh '''
set +x
jfrog rt config --url http://webapi-dev.sillycat.com:4441/artifactory --user yiyikang --apikey $TOKEN --interactive=false
jfrog rt u target/sillycatconnector-*-bundle.tar.gz libs-snapshot-local/com/sillycat/sillycatconnector/1.0/
'''
}
}
}
It will deploy the version number in pom.xml to Artifactory.
References:
http://sillycat.iteye.com/blog/2431253
https://www.jfrog.com/confluence/display/RTF/Configuring+the+Filestore
https://jfrog.com/screencast/artifactory-5-one-minute-setup-docker-registry-as-container-install/
https://blog.csdn.net/LABLENET/article/details/64922823
https://www.jianshu.com/p/dfd02fa239e2
https://www.jfrog.com/confluence/display/RTF/Working+With+Pipeline+Jobs+in+Jenkins
发表评论
-
Update Site will come soon
2021-06-02 04:10 1688I am still keep notes my tech n ... -
Stop Update Here
2020-04-28 09:00 325I will stop update here, and mo ... -
NodeJS12 and Zlib
2020-04-01 07:44 486NodeJS12 and Zlib It works as ... -
Docker Swarm 2020(2)Docker Swarm and Portainer
2020-03-31 23:18 375Docker Swarm 2020(2)Docker Swar ... -
Docker Swarm 2020(1)Simply Install and Use Swarm
2020-03-31 07:58 376Docker Swarm 2020(1)Simply Inst ... -
Traefik 2020(1)Introduction and Installation
2020-03-29 13:52 345Traefik 2020(1)Introduction and ... -
Portainer 2020(4)Deploy Nginx and Others
2020-03-20 12:06 437Portainer 2020(4)Deploy Nginx a ... -
Private Registry 2020(1)No auth in registry Nginx AUTH for UI
2020-03-18 00:56 447Private Registry 2020(1)No auth ... -
Docker Compose 2020(1)Installation and Basic
2020-03-15 08:10 383Docker Compose 2020(1)Installat ... -
VPN Server 2020(2)Docker on CentOS in Ubuntu
2020-03-02 08:04 469VPN Server 2020(2)Docker on Cen ... -
Buffer in NodeJS 12 and NodeJS 8
2020-02-25 06:43 396Buffer in NodeJS 12 and NodeJS ... -
NodeJS ENV Similar to JENV and PyENV
2020-02-25 05:14 491NodeJS ENV Similar to JENV and ... -
Prometheus HA 2020(3)AlertManager Cluster
2020-02-24 01:47 433Prometheus HA 2020(3)AlertManag ... -
Serverless with NodeJS and TencentCloud 2020(5)CRON and Settings
2020-02-24 01:46 343Serverless with NodeJS and Tenc ... -
GraphQL 2019(3)Connect to MySQL
2020-02-24 01:48 257GraphQL 2019(3)Connect to MySQL ... -
GraphQL 2019(2)GraphQL and Deploy to Tencent Cloud
2020-02-24 01:48 458GraphQL 2019(2)GraphQL and Depl ... -
GraphQL 2019(1)Apollo Basic
2020-02-19 01:36 334GraphQL 2019(1)Apollo Basic Cl ... -
Serverless with NodeJS and TencentCloud 2020(4)Multiple Handlers and Running wit
2020-02-19 01:19 319Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(3)Build Tree and Traverse Tree
2020-02-19 01:19 327Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(2)Trigger SCF in SCF
2020-02-19 01:18 304Serverless with NodeJS and Tenc ...
相关推荐
该存储库提供了一些示例,这些示例展示了使用Docker编排工具运行Artifactory的不同方法。 有关使用泊坞运行Artifactory的更详细的文档,请参阅的JFrog Artifactory的用户指南 码头工人 要了解有关Docker及其设置方法...
已在Artifactory中创建了一个名为“ docker”的虚拟docker存储库,其中包括“ docker-dev-local”存储库和“ docker-hub-remote”存储库,并将“ docker-dev-local”存储库设置为默认部署存储库。 要了解有关JFrog...
Sonatype Nexus: Maven仓库管理软件,常用于搭建私服。其他还有Apache Archiva、Artifactory相关链接docker-com
jfrog-artifactory,docker-compose的一件部署版本,适合c++的版本,该版本占用资源小,部署方便,比较轻量级,是一个可扩展的通用二进制存储库管理器,可在整个应用程序开发和交付过程中自动管理你的工件和依赖项
Artifactory是一款强大的企业级软件仓库管理工具,它支持多种包类型,如Maven、npm、Gradle等。本文将围绕“Artifactory REST Examples”展开,深入解析如何使用Java REST API与Artifactory进行交互。 Artifactory ...
Artifactory是一个流行的开源工具,它作为一个企业级的存储库管理器,支持多种类型的包格式,包括Maven2。本篇文章将详细探讨如何使用Artifactory来设置Maven2组件库,以便高效地管理和分发你的Java项目依赖。 首先...
《JFrog Artifactory C++ CE:高效且灵活的二进制存储库管理器》 JFrog Artifactory,特别为C++开发者设计的版本——jfrog-artifactory-cpp-ce-7.38.8-linux.tar.gz,是一款功能强大的开源二进制存储库管理工具。它...
《PyPI官网下载 | artifactory-0.1.6.tar.gz:Python库解析与使用指南》 在Python的世界里,PyPI(Python Package Index)是最重要的资源库,它为全球开发者提供了海量的Python库,方便大家下载和分享代码。今天...
《Python库:深入理解artifactory-lib-0.0.6》 在Python的世界里,库扮演着至关重要的角色,它们极大地丰富了Python的功能,提高了开发效率。今天我们要探讨的是一个名为`artifactory-lib`的Python库,版本为0.0.6...
Artifactory,由JFrog公司开发,是一款强大的企业级的、开源的 artifact(构建输出)管理工具,它专门用于处理Maven、Gradle、npm、PyPI等不同构建系统的依赖仓库。本篇文章将深入探讨如何使用Artifactory来管理内部...
设置Maven仓库-Artifactory Maven 是 Java 开发者中流行的构建工具,可以帮助减少构建应用程序时所依赖的软件构件的副本。Maven 建议的方法是将所有软件构件存储于一个叫做 repository 的远程仓库中。设置内部 ...
Artifactory REST Example 使用java rest api访问 artifactory
输入“yes”,然后会出现一大串内容,最后跳出两个选项:1-生成密钥字符串;最后打开浏览器,输入localhost:8081,接下来就会出现一个需要密钥的窗口,
JFrog Artifactory是一个基于二进制文件的仓库管理器,它可以与CI/CD系统如Jenkins整合,以自动化软件分发和部署流程。以下将详细介绍JFrog Artifactory如何与Jenkins协同工作来实现CI/CD。 首先,JFrog ...
资源分类:Python库 所属语言:Python 使用前提:需要解压 资源全名:artifactory_du-1.0.4-py3-none-any.whl 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
terraform-provider-artifactory 使用Terraform管理工厂通过自制软件安装brew tap drewsonne/tapbrew install terraform-provider-artifactorytf-install-provider artifactory 在查看详细信息提供者provider " ...
"Artifactory用户插件"是指Artifactory系统中可自定义的扩展功能,允许用户根据需求定制其行为。Artifactory是由JFrog开发的一款企业级的开源存储库管理工具,支持多种类型的艺术品(如Maven、npm、NuGet等)。用户...
这是 Artifactory REST API 的 Perl 客户端: : use Artifactory::Client; my $args = { artifactory => ' http://artifactory.server.com ' , port => 8080, repository => ' myrepository ' , ua => LWP::...