Hello,I’m doing CI with Drone and Gogs.
My Drone docker-compose.yml setup:
version: ‘2’
services:
drone-server:
image: drone/drone:0.8
ports:
- 8000:8000
- 9000
volumes:
- /var/lib/drone:/var/lib/drone:Z
restart: always
environment:
- DRONE_OPEN=true
- DRONE_GOGS_PRIVATE_MODE=true
- DRONE_GIT_ALWAYS_AUTH=true
- DRONE_HOST=http://${DRONE_HOST}
- DRONE_GOGS=true
- DRONE_GOGS_URL=http://${DRONE_HOST}:10080
- DRONE_SECRET=${DRONE_SECRET}
- DRONE_MAX_PROCS=10
- DRONE_GIT_USERNAME=hehanyao
- DRONE_GIT_PASSWORD=123456
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=${DRONE_SECRET}
networks:
default:
external:
name: gfloan
When I pushed respository ,it showed me
git init
Initialized empty Git repository in /drone/test/.git/
git remote add origin http://10.0.0.55:10080/hehanyao/app.git
git fetch --no-tags origin +refs/heads/master:
fatal: could not read Username for ‘http://10.0.0.55:10080’: No such device or address
time=“2019-05-09T01:55:20Z” level=fatal msg=“exit status 128”
I am already try in a ubuntu container to cloned the repository,it must use the username and password to login,but the netword is no problem.
How can I fix this problem,think you!