如何自动接受 Artifactory EULA?

Ada*_*son 2 artifactory jfrog-container-registry

我一直在使用 Artifactory OSS 并使用部署脚本对其进行设置。部署脚本还会在设置后立即将一些带有 curl 的图像上传到通用存储库。现在我还需要上传 docker 图像,所以我切换到 Artifactory JCR。在我接受 EULA 之前,JCR 不会接受我的 curl 推送。是否可以自动接受?我一直在文件和数据库中寻找 EULA 标志,但没有成功。

我的环境是在 Kubernetes 中带有 artifactory-jcr:6.17.0 的 docker 容器。

小智 8

另一种选择是在安装 JFrog Container Registry 后在脚本中使用此 curl:

curl -XPOST -vu username:password http://${ArtifactoryURL}/artifactory/ui/jcr/eula/accept


小智 6

For deployments using a scripts, you can sign the JCR EULA in a YAML configuration file you have prepared ahead. As JCR is based on Artifactory, the configuration files are usually similar.

Create a YAML file at $JCR_HOME/etc/artifactory.config.import.yml

Add the below

GeneralConfiguration: 
  eula: 
    accepted: true

OnboardingConfiguration:
  repoTypes:
    - docker
    - helm
Run Code Online (Sandbox Code Playgroud)

Make sure to format it as YAML before writing to the file