专属域名
文档搜索
轩辕助手
Run助手
邀请有礼
返回顶部
快速返回页面顶部
收起
收起工具栏
轩辕镜像 官方专业版
轩辕镜像 官方专业版轩辕镜像 官方专业版官方专业版
首页个人中心搜索镜像

交易
充值流量我的订单
工具
提交工单镜像收录一键安装
Npm 源Pip 源Homebrew 源
帮助
常见问题
其他
关于我们网站地图

官方QQ群: 1072982923

dronelab/artifactory Docker 镜像 - 轩辕镜像 | Docker 镜像高效稳定拉取服务

热门搜索:openclaw🔥nginx🔥redis🔥mysqlopenjdkcursorweb2apimemgraphzabbixetcdubuntucorednsjdk
artifactory
dronelab/artifactory
自动构建
dronelab
dronelab artifactory plugin
下载次数: 0状态:自动构建维护者:dronelab仓库类型:镜像最近更新:4 年前
使用轩辕镜像,把时间还给真正重要的事。点击查看
镜像简介版本下载
使用轩辕镜像,把时间还给真正重要的事。点击查看

Dronelab

Dronelab is a wrapper and a set of Docker images to let you use Drone CI plugins in your Gitlab CI pipeline.

  • Dronelab
  • Basic usage
    • Providing parameters as single yaml variable
    • Providing parameters as parameter to dronelab command
    • Secrets and creating plugin variables directly
    • Priority of parameters
  • Differences from Drone usage
    • Artifacts between steps
  • How it works
  • Get in touch

Basic usage

We'll use Download plugin as an example here, but the same patterns should apply to any other image. Here's the most basic use case in Drone:

yaml
#.drone.yml
pipeline:
  download:
    image: plugins/download
    source: [***]

With Dronelab you can do something similar in your .gitlab-ci.yml file:

yaml
download:
  image: dronelab/download
  script: dronelab
  variables:
    source: [***]

Now this is a bit more chatty due to the way Gitlab CI pipeline is defined, but it mimics the logic close enough that you can follow the upstream documentation easily. Essentially the only difference is that we provide the parameters as environment variables and we use the dronelab version of the image. We also need to provide a script: dronelab parameter because script is mandatory part of job definition in Gitlab CI.

This simple approach will work in most cases, however there are some exceptions. That's why there are other ways to provide the parameters with dronelab:

Providing parameters as single yaml variable

You can provide plugin parameters as yaml string inside the plugin variable:

yaml
download:
  image: dronelab/download
  script: dronelab
  variables:
    plugin: |
      source: [***]

Notice the pipe (|) character after plugin:, this way we can provide yaml as a string in the plugin environment variable. This format looks a bit more complicated, but it works better in some cases where using variables isn't an option - for example when you need to provide objects rather than a simple string. Let's see cloudformation plugin as an example:

yaml
#.drone.yml
pipeline:
  deploy:
    image: robertstettner/drone-cloudformation
    stackname: my-awesome-stack
    template: templates/stack.yml
    params:
      Version: 123
      Environment: staging

In .gitlab-ci.yml file we can't define the params variable like that, because variables only accepts simple strings as value. That's were plugin variable can help us:

yaml
awscf:
  image: dronelab/cloudformation
  script: dronelab
  variables:
    stackname: my-awesome-stack
    template: templates/stack.yml
    plugin: |
      params:
        Version: 123
        Environment: staging

⚠ Notice, that we can also combine different methods of providing the parameters.

Providing parameters as parameter to dronelab command

In some cases you might not want to use the variables at all. One example is when you use yaml anchors and you don't want to override variables set in your anchor. Instead you can also provide plugin parameters as -p option to the dronelab command:

yaml
.awscf-template: &cftemplate
  image: dronelab/cloudformation
  variables:
    template: templates/stack.yml
    plugin: |
      params:
        Version: 123
        Environment: staging

stackone:
  <<: *cftemplate
  script: dronelab -p stackname stackone

stacktwo:
  <<: *cftemplate
  script: dronelab -p stackname stacktwo

Here you can see us creating yaml anchor first to create a template for cloudformation plugin with all the common parameters set. Then we use that anchor to define actual jobs, that each work with different stack names.

The format of the parameter is -p <key> <value>. You can provide it multiple times, in that case it might be easier to use yaml folded style syntax:

yaml
stackthree:
  <<: *cftemplate
  script: >
    plugin
    -p stackname stacktwo
    -p region eu-west-1
    -p mode createOrUpdate

⚠ Note that this example with anchors is somewhat artificially constructed, you can use extends keyword instead - that one is able to merge your variables.

Secrets and creating plugin variables directly

When you define plugin parameter via variables, plugin yaml variable or as a parameter via the -p script argument, Dronelab will automatically transform such variables into the PLUGIN_VARIABLE_NAME environment variable, because that's how Drone plugins actually work. That also means we can provide such variables directly - either via variables in the .gitlab-ci.yml file or as variables configured via CI/CD settings of the project or on the group level.

You might have noticed in the Drone plugin documentation, that some plugins accept secrets as form of configuration. These are expected in slightly different format by the Drone plugin. They are simply uppercase version of the secret name without the PLUGIN_ prefix. Because of that you can't use plugin yaml variable, lowercase variables variable or -p script argument to set these as Dronelab would add the prefix to the name. In most cases you want to provide secrets as CI/CD variables defined in the CI/CD configuration rather than from the .gitlab-ci.yml file. (Committing secrets into your repository is generally a bad idea)

Let's look at the Matrix plugin as an example. You can provide the password either as a password parameter or matrix_password secret. That means that behind the scenes plugin expects either PLUGIN_PASSWORD or MATRIX_PASSWORD variable to be set. Let's assume we have set the password in the Variables CI/CD configuration for the project (or group) under the name MATRIX_PASSWORD.

Here's how you can send the message to the Matrix room using the saved password:

yaml
message-one:
  image: dronelab/matrix
  script: dronelab
  variables:
    username: matrix_user
    homeserver: [***]
    roomid: abcdefghijklmnopqrstuvwxyz:matrix.org
    template: Hello from Gitlab!

Notice we didn't provide the password at all! Gitlab CI will set the variable MATRIX_PASSWORD automatically, because it's configured in project settings. Plugin will just use it.

However if you want to be more explicit in the .gitlab-ci.yml file, you can explicitly provide it:

yaml
message-two:
  image: dronelab/matrix
  script: dronelab
  variables:
    username: matrix_user
    password: $MATRIX_PASSWORD
    homeserver: [***]
    roomid: abcdefghijklmnopqrstuvwxyz:matrix.org
    template: Hello from Gitlab!

Sending a message to a room might be used multiple times in the pipeline, so you can either use template with yaml anchors, extends keyword or you can just set the variables globally so there's only one place to change them:

yaml
variables:
  username: matrix_user
  password: $MATRIX_PASSWORD
  homeserver: [***]
  roomid: abcdefghijklmnopqrstuvwxyz:matrix.org

message-one:
  image: dronelab/matrix
  script: dronelab
  variables:
    template: Hello from Gitlab!

message-two:
  image: dronelab/matrix
  script: dronelab
  variables:
    template: Hello again!

# You can also override some of the global variables to message to a different
# room for example.
message-elsewhere:
  image: dronelab/matrix
  script: dronelab
  variables:
    roomid: someotherroomidprovidedhere:matrix.org
    template: Hello in a different room!
Priority of parameters

In case you provide the same parameter via multiple different ways, they are applied in specific order, the last one applies:

  1. Variables and secrets provided directly as PLUGIN_VARIABLE_NAME or NAME_OF_SECRET
  2. Individual variables using variables
  3. The plugin yaml variable
  4. The script parameter via -p <key> <value>

That means the following configuration will download version 1 of the file:

yaml
download:
  image: dronelab/download
  script: dronelab -p source [***]
  variables:
    source: [***]
    plugin: |
      source: [***]

This would download version 3:

yaml
download:
  image: dronelab/download
  script: dronelab
  variables:
    source: [***]
    plugin: |
      source: [***] 

Differences from Drone usage

Artifacts between steps

In Drone all plugins work on top of the same workspace, so for example files downloaded by download plugin are automatically available to the next steps in pipeline. If you have Gitlab cache enabled globally, it behaves in similar fashion, however if you have caches disabled you might need to explicitly configure cache or artifacts (whatever feels more appropriate) to pass the generated content to next job.

How it works

Dronelab plugins should work with any executor, that supports the image keyword. Currently that means you can use the Docker, Docker Machine, Docker Machine SSH and Kubernetes executors.

Dronelab plugin image is created by taking the upstream plugin image and wrapping it in alpine image with dronelab binary added. The alpine image is used as Gitlab CI needs something capable running bash scripts.

The dronelab wrapper then reads provided parameters and environment variables and attempts to translate those to the format expected by Drone plugins. It also attempts to translate predefined variables to the format expected by Drone.

When all variables are created, dronelab will try to execute binary defined in DRONELAB environment variable. That one is usually already defined in the Dronelab plugin image and points to the upstream plugin binary.

⚠ Note, that not all variables that are normally available in Drone build environment are currently available in the Dronelab environment. Some are not provided by Gitlab CI, some don't even have their counterpart in the Gitlab word. Some variables have slightly different format. Most plugins use just very small subset of these variables and hence most should work just fine.

Get in touch

To report a bug or ask a question, please open an issue.

查看更多 artifactory 相关镜像 →
mattgruter/artifactory logo
mattgruter/artifactory
mattgruter
Run Artifactory OSS (or Pro) inside a Docker container.
116 次收藏100万+ 次下载
7 年前更新
haven/artifactory logo
haven/artifactory
haven
基于Gentoo系统的制品仓库构建镜像,用于Gentoo环境下软件制品的构建与管理
10万+ 次下载
7 个月前更新
robotgraves/artifactory logo
robotgraves/artifactory
robotgraves
Artifactory clean up based on env vars
10万+ 次下载
7 年前更新
crazymax/artifactory logo
crazymax/artifactory
crazymax
JFrog Artifactory Docker images
4 次收藏10万+ 次下载
5 年前更新
lolhens/artifactory logo
lolhens/artifactory
lolhens
Artifactory
6 次收藏1万+ 次下载
6 年前更新
plugins/artifactory logo
plugins/artifactory
plugins
暂无描述
1 次收藏50万+ 次下载
29 天前更新

轩辕镜像配置手册

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式

Docker 配置

登录仓库拉取

通过 Docker 登录认证访问私有仓库

专属域名拉取

无需登录使用专属域名

K8s Containerd

Kubernetes 集群配置 Containerd

K3s

K3s 轻量级 Kubernetes 镜像加速

Dev Containers

VS Code Dev Containers 配置

Podman

Podman 容器引擎配置

Singularity/Apptainer

HPC 科学计算容器配置

其他仓库配置

ghcr、Quay、nvcr 等镜像仓库

系统配置

Linux

在 Linux 系统配置镜像服务

Windows/Mac

在 Docker Desktop 配置镜像

MacOS OrbStack

MacOS OrbStack 容器配置

Docker Compose

Docker Compose 项目配置

NAS 设备

群晖

Synology 群晖 NAS 配置

飞牛

飞牛 fnOS 系统配置镜像

绿联

绿联 NAS 系统配置镜像

威联通

QNAP 威联通 NAS 配置

极空间

极空间 NAS 系统配置服务

网络设备

爱快路由

爱快 iKuai 路由系统配置

宝塔面板

在宝塔面板一键配置镜像

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

使用与功能问题

docker search 报错:专属域名下仅支持 Docker Hub 查询

docker search 报错问题

网页搜不到镜像:Docker Hub 有但轩辕镜像搜索无结果

镜像搜索不到

离线传输镜像:无法直连时用 docker save/load 迁移

离线传输镜像

Docker 插件安装错误:application/vnd.docker.plugin.v1+json

Docker 插件安装错误

WSL 下 Docker 拉取慢:网络与挂载目录影响及优化

WSL 拉取镜像慢

轩辕镜像是否安全?镜像完整性校验(digest)说明

镜像安全性

如何用轩辕镜像拉取镜像?登录方式与专属域名配置

如何拉取镜像

错误码与失败问题

manifest unknown 错误:镜像不存在或标签错误

manifest unknown 错误

TLS/SSL 证书验证失败:Docker pull 时 HTTPS 证书错误

TLS 证书验证失败

DNS 解析超时:无法解析镜像仓库地址或连接超时

DNS 解析超时

410 Gone 错误:Docker 版本过低导致协议不兼容

410 错误:版本过低

402 Payment Required 错误:流量耗尽错误提示

402 错误:流量耗尽

401 UNAUTHORIZED 错误:身份认证失败或登录信息错误

身份认证失败错误

429 Too Many Requests 错误:请求频率超出专业版限制

429 限流错误

Docker login 凭证保存错误:Cannot autolaunch D-Bus(不影响登录)

凭证保存错误

账号 / 计费 / 权限

免费版与专业版区别:功能、限额与使用场景对比

免费版与专业版区别

支持的镜像仓库:Docker Hub、GCR、GHCR、K8s 等列表

轩辕镜像支持的镜像仓库

拉取失败是否扣流量?计费规则说明

拉取失败流量计费

KYSEC 权限不够:麒麟 V10/统信 UOS 下脚本执行被拦截

KYSEC 权限错误

如何申请开具发票?(增值税普票/专票)

开具发票

如何修改网站与仓库登录密码?

修改网站和仓库密码

配置与原理类

registry-mirrors 未生效:仍访问官方仓库或报错的原因

registry-mirrors 未生效

如何去掉镜像名称中的轩辕域名前缀?(docker tag)

去掉域名前缀

如何拉取指定架构镜像?(ARM64/AMD64 等多架构)

拉取指定架构镜像

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
dronelab/artifactory
博客公告Docker 镜像公告与技术博客
热门镜像查看热门 Docker 镜像推荐
一键安装一键安装 Docker 并配置镜像源
镜像拉取问题咨询请 提交工单,官方技术交流群:1072982923。轩辕镜像所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
镜像拉取问题咨询请提交工单,官方技术交流群:。轩辕镜像所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
官方邮箱:点击复制邮箱
©2024-2026 源码跳动
官方邮箱:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.