无人机CI服务器0.8无法打开数据库文件



我正在努力使用以下(净化(docker-compose.yaml启动并运行 DroneCI

(有关docker-compose up执行的输出,请参阅底部的链接(。

# Docker compose file syntax:
version: '2'
services:
  drone-server:
    image: drone/drone:0.8
    ports:
      - 5124:8000
      - 5125:9000
    volumes:
      - '/var/lib/drone:/var/lib/drone/:Z'
    restart: always
    environment:
      - DRONE_OPEN=true
      - DRONE_HOST=http://drone.COMPANY.intra:80
      - DRONE_STASH=true
      - DRONE_STASH_GIT_USERNAME=USERNAME
      - DRONE_STASH_GIT_PASSWORD=PASSWORD
      - DRONE_STASH_CONSUMER_KEY=CONSUMER_KEY
      - DRONE_STASH_CONSUMER_RSA=/etc/bitbucket/key.pem
      - DRONE_STASH_URL=https://COMPANY_URL.intra
      - DRONE_SECRET=SECRET1
    volumes:
      - '/etc/bitbucket/key.pem:/etc/bitbucket/key.pem:Z'
  drone-agent:
    image: drone/agent:0.8
    restart: always
    depends_on:
      - drone-server
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:Z
    environment:
      - DRONE_SERVER=http://drone.COMPANY.intra
      - DRONE_SECRET=SECRET1

我错过/没有看到什么?

我发现了这个,这似乎非常熟悉...

但是,如果这是根本原因,如何设置当前假定驻留在drone/drone:0.8映像中的数据库文件的权限?(看起来很奇怪,不过它会是创建它的容器......

官方文档中也没有提到数据库文件,无论是在这里还是在这里 =/。

链接:

  1. 原创讨论@discourse.drone.io。

    • (有人建议在这里试试运气@ S/O(。
  2. 链接到承诺的要点与正常(和冗长( - 消毒! - 输出:

    • https://gist.github.com/x10an14/d2bca6c0287a281404d2d3385f73a084#file-output-txt-L43

你的docker-compos文件(至少(有两点问题:

1(您在无人机服务器的配置中有两次volumes:部分,合并并将两个卷映射放在同一部分中

2(在无人机代理配置中,无人机服务器的URL是错误的,它不应该包含http://方案并且缺少端口,请尝试DRONE_SERVER=drone-server:9000

docker-compose.yml

# Docker compose file syntax:
version: '2'
services:
  drone-server:
    image: drone/drone:0.8
    ports:
      - 5124:8000
      - 5125:9000
    volumes:
      - '/var/lib/drone:/var/lib/drone/:Z'
      - '/etc/bitbucket/key.pem:/etc/bitbucket/key.pem:Z'
    restart: always
    environment:
      - DRONE_OPEN=true
      - DRONE_HOST=http://drone.COMPANY.intra:80
      - DRONE_STASH=true
      - DRONE_STASH_GIT_USERNAME=USERNAME
      - DRONE_STASH_GIT_PASSWORD=PASSWORD
      - DRONE_STASH_CONSUMER_KEY=CONSUMER_KEY
      - DRONE_STASH_CONSUMER_RSA=/etc/bitbucket/key.pem
      - DRONE_STASH_URL=https://COMPANY_URL.intra
      - DRONE_SECRET=SECRET1
  drone-agent:
    image: drone/agent:0.8
    restart: always
    depends_on:
      - drone-server
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:Z
    environment:
      - DRONE_SERVER=drone-server:9000
      - DRONE_SECRET=SECRET1

相关内容

  • 没有找到相关文章

最新更新