I’m writing a book that comes with an example application demonstrating the principles in the book. The example application is a drone agent balancer that can spin up agents to meet demands of the server. The actual utility of this application is zero since you now already provide this as a service
Nonetheless, I require access to a drone server during my integration tests. However, my simple docker-compose configuration is failing to bring up a drone server:
version: "2.2" # http://docs.drone.io/installation/ services: # ready: # image: hello-world # depends_on: # drone-server: # condition: service_healthy drone-server: image: drone/drone:0.8 ports: - 8000:8000 volumes: - ./drone/certs:/etc/certs/localhost restart: always environment: - DRONE_OPEN=true # - DRONE_HOST=https://localhost:8000 - DRONE_HOST=http://localhost:8000 - DRONE_SECRET=supertopsecret # - DRONE_SERVER_CERT=/etc/certs/localhost/drone.crt # - DRONE_SERVER_KEY=/etc/certs/localhost/drone.key
time="2018-08-17T18:12:36Z" level=fatal msg="version control system not configured"
Assuming I get past that, could somebody please advise how I can achieve the following:
- add a dummy project so drone can provide all the JSON endpoints.
- it looks like the official image doesn’t provide a healthcheck, what would be a good one to use?