DroneCI 服务器 0.8 无法打开数据库文件
DroneCI server 0.8 unable to open database file
我正在努力启动 DroneCI 并 运行,使用下面的(经过消毒的)docker-compose.yaml
。
(请参阅底部的 link,了解 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
我missing/not看到了什么?
我找到了 ,这似乎非常熟悉...
但是,如果这是根本原因,我该如何设置我目前假设驻留在 drone/drone:0.8
图像中的数据库文件的权限?
(看起来很奇怪,虽然它是创建它的容器......)
官方文档中也没有提到数据库文件,here nor here =/.
Links:
原始讨论@discourse.drone.io.
- (有人建议我在这里试试运气@S/O)。
Link 以正常(和冗长)的方式承诺要点 - 消毒! - 输出:
您的 docker-compose 文件(至少)有两处错误:
1) 你在无人机服务器的配置中有两次 volumes:
部分,合并并将两个卷映射放在同一部分
2) 在drone agent配置中,drone server的URL是错误的,它不应该包括http://
scheme而且缺少端口,试试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
我正在努力启动 DroneCI 并 运行,使用下面的(经过消毒的)docker-compose.yaml
。
(请参阅底部的 link,了解 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
我missing/not看到了什么?
我找到了
但是,如果这是根本原因,我该如何设置我目前假设驻留在 drone/drone:0.8
图像中的数据库文件的权限?
(看起来很奇怪,虽然它是创建它的容器......)
官方文档中也没有提到数据库文件,here nor here =/.
Links:
原始讨论@discourse.drone.io.
- (有人建议我在这里试试运气@S/O)。
Link 以正常(和冗长)的方式承诺要点 - 消毒! - 输出:
您的 docker-compose 文件(至少)有两处错误:
1) 你在无人机服务器的配置中有两次 volumes:
部分,合并并将两个卷映射放在同一部分
2) 在drone agent配置中,drone server的URL是错误的,它不应该包括http://
scheme而且缺少端口,试试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