首页 > 编程语言 >jfrog artifactory oss社区版,不支持php composer私库

jfrog artifactory oss社区版,不支持php composer私库

时间:2024-11-05 16:20:39浏览次数:3  
标签:11 jfrog oss 私库 go main com artifactory

一、docker安装

安装环境:centos操作系统,root用户。

如果是mac或ubuntu等操作系统的话,会有许多安装的坑等着你。

一切都是徒劳,安装折腾那么久,最后还是不能使用。这就是写本文的初衷,切勿入坑就对了。

version: "3.3"
services:
  artifactory-service:
    image: docker.bintray.io/jfrog/artifactory-oss:7.49.6
    container_name: artifactory
    restart: always
    networks:
      - ci_net
    ports:
      - 8089:8081
      - 8090:8082
    volumes:
      - artifactory:/var/opt/jfrog/artifactory

volumes:
  artifactory:
networks:
  ci_net:

在这里插入图片描述

二、设置向导

  • 登录地址: http://192.168.5.6:8090/ui/login
  • 初始用户名和密码是: admin / password
    在这里插入图片描述

在首次使用的向导中,会让我们设置一个更为安全的密码。

最后就是使用了。

三、社区版的坑

jfrog artifactory oss社区版,不支持composer/npm等私库,远不如nexus好。

建议看到这里的朋友,就不要入坑jfrog artifactory了。

当然pro企业版是支持的啦,目的就是一个收费。

于是,大多数中小企业只能割舍它了。

在这里插入图片描述

附录、mac和ubuntu系统安装踩坑记录

1、读取目录的权限不足

Preparing to run Artifactory in Docker


Running as uid=1030(artifactory) gid=1030(artifactory) groups=1030(artifactory)


Dockerfile for this image can found inside the container.


To view the Dockerfile: 'cat /docker/artifactory-oss/Dockerfile.artifactory'.


Copying Artifactory bootstrap files


2024-11-04T03:49:03.677Z [shell] [INFO ] [] [installerCommon.sh:3568       ] [main] - Mapping value from deprecated key EXTRA_JAVA_OPTIONS to new key JF_SHARED_EXTRAJAVAOPTS


2024-11-04T03:49:04.163Z [shell] [INFO ] [] [installerCommon.sh:1632       ] [main] - Checking open files and processes limits


2024-11-04T03:49:04.183Z [shell] [INFO ] [] [installerCommon.sh:1635       ] [main] - Current max open files is 1048576


2024-11-04T03:49:04.205Z [shell] [INFO ] [] [installerCommon.sh:1646       ] [main] - Current max open processes is unlimited


[WARN ] Error while initializing File resolver : Config file does not exists : /opt/jfrog/artifactory/var/etc/system.yaml



Database connection check failed Could not determine database type


2024-11-04T03:49:04.280Z [shell] [INFO ] [] [installerCommon.sh:1715       ] [main] - Testing directory /opt/jfrog/artifactory/var has read/write permissions for user id 1030


/opt/jfrog/artifactory/app/bin/installerCommon.sh: line 1685: /opt/jfrog/artifactory/var/test-permissions: Permission denied


2024-11-04T03:49:04.305Z [shell] [INFO ] [] [installerCommon.sh:1723       ] [main] - ###########################################################


2024-11-04T03:49:04.325Z [shell] [INFO ] [] [installerCommon.sh:1724       ] [main] - /opt/jfrog/artifactory/var DOES NOT have proper permissions for user id 1030


2024-11-04T03:49:04.345Z [shell] [INFO ] [] [installerCommon.sh:1725       ] [main] - Directory: /opt/jfrog/artifactory/var, permissions: 775, owner: UNKNOWN, group: UNKNOWN


2024-11-04T03:49:04.366Z [shell] [INFO ] [] [installerCommon.sh:1726       ] [main] - Mounted directory must have read/write permissions for user id 1030


2024-11-04T03:49:04.387Z [shell] [INFO ] [] [installerCommon.sh:1727       ] [main] - ###########################################################


2024-11-04T03:49:04.410Z [shell] [ERROR] [] [installerCommon.sh:812        ] [main] - Directory /opt/jfrog/artifactory/var has bad permissions for user id 1030

2、Master key is missing

2024-11-04T06:53:48.319Z [jfrou] [INFO ] [1c216118873c8e06] [security_keys.go:172          ] [main                ] [] - Master key is missing. Pending for 110 seconds with 5m0s timeout


2024-11-04T06:53:48.503Z [jfmd ] [INFO ] [                ] [security_keys.go:172          ] [main                ] - Master key is missing. Pending for 110 seconds with 2m0s timeout [init]


2024-11-04T06:53:48.665Z [jfevt] [INFO ] [724d295281f930a5] [security_keys.go:172          ] [main                ] [                ] - Master key is missing. Pending for 110 seconds with 2m0s timeout [startup]


2024-11-04T06:53:49.124Z [jfob ] [INFO ] [6fd11037508f616d] [security_keys.go:172          ] [main                ] - Master key is missing. Pending for 110 seconds with 2m0s timeout [startup]


2024-11-04T06:53:49.800Z [jffe ] [INFO ] [] [frontend-service.log] [main                ] - pinging artifactory, attempt number 110


2024-11-04T06:53:49.803Z [jffe ] [INFO ] [] [frontend-service.log] [main                ] - pinging artifactory attempt number 110 failed with code : ECONNREFUSED

3、join.key不存在

2024-11-05T02:53:38.183Z [jfmd ] [ERROR] [                ] [keys.go:23                    ] [main                ] - Cluster join: Failed resolving join key: failed resolving 'shared.security.joinKey' key; file does not exist: /opt/jfrog/artifactory/var/etc/security/join.key,
goroutine 1 [running]:,
runtime/debug.Stack(),
	/src/runtime/debug/stack.go:24 +0x5e,
jfrog.com/jfrog-go-commons/v7/pkg/log.(*standardLogger).Panicfc(0xc000ae0900, {0x2d7b978, 0xc0009ebe90}, {0xc000740000, 0x9e}, {0x0, 0x0, 0x0}),
	goroot/pkg/mod/jfrog.com/jfrog-go-commons/[email protected]/pkg/log/standard_logger.go:98 +0xc5,
jfrog.com/metadata/v7/services/common.MustResolveSecurityKeys({0x2d7b978, 0xc0009ebe90}, {0x2d835e8, 0xc0009c0d70}, {0x2d901e8, 0xc000ae0900}),
	jfrog.com/metadata/[email protected]/services/common/keys.go:23 +0x1c6,
main.main(),
	jfrog.com/metadata/[email protected]/metadata.go:35 +0x2ec,
 [init],
panic: Cluster join: Failed resolving join key: failed resolving 'shared.security.joinKey' key; file does not exist: /opt/jfrog/artifactory/var/etc/security/join.key,
goroutine 1 [running]:,
runtime/debug.Stack(),
	/src/runtime/debug/stack.go:24 +0x5e,
jfrog.com/jfrog-go-commons/v7/pkg/log.(*standardLogger).Panicfc(0xc000ae0900, {0x2d7b978, 0xc0009ebe90}, {0xc000740000, 0x9e}, {0x0, 0x0, 0x0}),
	goroot/pkg/mod/jfrog.com/jfrog-go-commons/[email protected]/pkg/log/standard_logger.go:98 +0xc5,
jfrog.com/metadata/v7/services/common.MustResolveSecurityKeys({0x2d7b978, 0xc0009ebe90}, {0x2d835e8, 0xc0009c0d70}, {0x2d901e8, 0xc000ae0900}),
	jfrog.com/metadata/[email protected]/services/common/keys.go:23 +0x1c6,
main.main(),
	jfrog.com/metadata/[email protected]/metadata.go:35 +0x2ec,
,
,
goroutine 1 [running]:,
jfrog.com/jfrog-go-commons/v7/pkg/log.defaultEventFactory.(*Logger).Panic.func1({0xc00003a600?, 0x0?}),
	goroot/pkg/mod/github.com/rs/[email protected]/log.go:405 +0x27,
github.com/rs/zerolog.(*Event).msg(0xc000b0e000, {0xc00003a600, 0x2ee}),
	goroot/pkg/mod/github.com/rs/[email protected]/event.go:158 +0x2b9,
github.com/rs/zerolog.(*Event).Msgf(0xc000b0e000, {0xc00086c2c0?, 0x4316440?}, {0xc000a43ce8?, 0x4319d00?, 0x3?}),
	goroot/pkg/mod/github.com/rs/[email protected]/event.go:131 +0x46,
jfrog.com/jfrog-go-commons/v7/pkg/log.(*standardLogger).logMessage(0xc000ae0900, {0x2d7b978, 0xc0009ebe90}, 0x5, {0xc00086c2c0, 0xa1}, {0xc000a43ce8, 0x1, 0x1}),
	goroot/pkg/mod/jfrog.com/jfrog-go-commons/[email protected]/pkg/log/standard_logger.go:127 +0x2b8,
jfrog.com/jfrog-go-commons/v7/pkg/log.(*standardLogger).Panicfc(0xc000ae0900, {0x2d7b978, 0xc0009ebe90}, {0xc000740000, 0x9e}, {0x0, 0x0, 0x0}),
	goroot/pkg/mod/jfrog.com/jfrog-go-commons/[email protected]/pkg/log/standard_logger.go:99 +0x1c5,
jfrog.com/metadata/v7/services/common.MustResolveSecurityKeys({0x2d7b978, 0xc0009ebe90}, {0x2d835e8, 0xc0009c0d70}, {0x2d901e8, 0xc000ae0900}),
	jfrog.com/metadata/[email protected]/services/common/keys.go:23 +0x1c6,
main.main(),
	jfrog.com/metadata/[email protected]/metadata.go:35 +0x2ec,
2024-11-05T02:53:38.229Z [jfevt] [FATAL] [4a76e1fc9995d6af] [bootstrap.go:161              ] [main                ] [                ] - Cluster join: Failed resolving join key: failed resolving 'shared.security.joinKey' key; file does not exist: /opt/jfrog/artifactory/var/etc/security/join.key [startup],

标签:11,jfrog,oss,私库,go,main,com,artifactory
From: https://blog.csdn.net/zhuganlai168/article/details/143507982

相关文章

  • Hierarchical Cross-Modal Agent forRobotics Vision-and-Language Navigation论文的
    GitHub-GT-RIPL/robo-vln:PytorchcodeforICRA'21paper:"HierarchicalCross-ModalAgentforRoboticsVision-and-LanguageNavigation"Installationgitclonehttps://github.com/GT-RIPL/robo-vlncdrobo-vlnexportrobovln_rootdir=$PWD......
  • 2024-11-03:得到更多分数的最少关卡数目。用go语言,Alice 和 Bob 正在进行一个有 n 个关
    2024-11-03:得到更多分数的最少关卡数目。用go语言,Alice和Bob正在进行一个有n个关卡的游戏,其中每个关卡要么是困难模式(possible[i]==0),要么是简单模式(possible[i]==1)。玩家在游戏中获得分数的规则如下:通过简单模式的关卡可得1分,而遇到困难模式的关卡将扣除1分。Alice从......
  • ossfs 禁用cache配置说明
    ossfs基于osssdk实现了与ossfs类似的能了,但是默认是有cache的,尤其我们的longrunning任务可能会影响,造成获取的数据是不是最新的,解决方法就是直接禁用cache参考处理#通过临时调整cache有效期解决fromossfsimportOSSFileSystemfs=ossfs.OSSFileSystem(li......
  • 【AIGC人脸生成的后门攻击】 Is It Possible to Backdoor Face Forgery Detection wit
    [!CAUTION]本篇论文主要是关于AIGC生成人脸的后门攻击,与换脸技术的后门攻击有差异,因此本篇文章主要研究trigger的生成部分,后面的实验部分不加以研究。一、研究动机​ 目前的后门攻击模型还比较简单,是基于数字像素上的操作,例如增加噪声或者像素补丁,这些攻击已经有很多backd......
  • World of Warcraft [CLASSIC][80][the Ulduar] BOSS 14
    BOSS-14-观察者奥尔加隆修星德,懵懵懂过了:WorldofWarcraft[CLASSIC][80][theUlduar]-CSDN博客......
  • World of Warcraft [CLASSIC][80][the Ulduar] BOSS 12 13
    BOSS-12-维扎克斯将军BOSS-13-尤格萨隆WorldofWarcraft[CLASSIC][80][theUlduar]BOSS14-CSDN博客......
  • 为什么神经网络loss值很小但实际预测结果差很大
    当我们使用神经网络进行训练时,可能会遇到loss值很小但实际预测效果很差的情况。这可能是由:1.过拟合;2.不合适的数据分割;3.评估指标选择不当;4.模型结构或参数设置不当;5.数据问题导致的标签错误等原因造成的。1.过拟合过拟合是神经网络训练中常见的问题,意味着模型在训练数据上表......
  • 免费SSL证书部署教程,自动续期,还支持CDN/OSS!!!
    相信有上线过自己的网站、小程序经验的同学深有体会,给服务加上SSL证书还挺麻烦的,尤其是没有运维经验的同学。本来最省事的方法是买个证书,但是一看价格,还是算了吧,动辄就是几万块一年。作为个人来说,这跟抢钱有什么区别。那没有ssl不行吗?......
  • 华为OD机试 E卷|BOSS的收入
    华为OD机试E卷|BOSS的收入0、关于本专栏&刷题交流群本文收录于专栏【2024华为OD机试真题】,专栏共有上千道OD机试真题,包含详细解答思路、与四种代码实现(Python、Java、C++、JavaScript)。点击文末链接加入【华为OD机试交流群】,和群友一起刷题备考。刷的越多,考试中遇到原题的概率......
  • CSCI 201 Networked Crossword Puzzle
    Assignment#2CSCI201Fall2024Page1of11Assignment#2CSCI201Fall20246%ofcoursegradeTitleNetworkedCrosswordPuzzleTopicsCoveredNetworkingMulti-ThreadingConcurrencyIssuesIntroductionThisassignmentwillrequireyoutocreatetwodiffe......