trap intr SIGINT
-echo Starting builder polling...
+SLEEP_INT=$1
+[[ -n "$SLEEP_INT" ]] || SLEEP_INT=60
+
+echo Starting builder polling every $SLEEP_INT seconds...
# polls a redis queue for jobs, starts the builder when it's got some
while true
do
SNAPSHOT_URI=$(redis-cli -h redis LPOP snapshots)
[[ -n "$SNAPSHOT_URI" ]] && ./godot-export.sh "$SNAPSHOT_URI"
- sleep 1
+ sleep $SLEEP_INT
done
volumes:
- ./nginx/conf.d/:/etc/nginx/conf.d/
- godot-build:/build
+ depends_on:
+ - redis
networks:
- proxy
- backend
networks:
- backend
builder:
- image: cjpalmer/godot-builder:0.3.0
+ image: cjpalmer/godot-builder:0.3.1
volumes:
- godot-build:/build
- godot-project:/project
+ depends_on:
+ - redis
networks:
- backend
volumes:
volumes:
- ./nginx/conf.d/:/etc/nginx/conf.d/
- godot-build-dev:/build
+ depends_on:
+ - redis
ports:
- 80:80
redis:
image: redis:alpine
builder:
build: ./builder
- image: cjpalmer/godot-builder:0.3.0
+ image: cjpalmer/godot-builder:0.3.1
volumes:
- godot-build-dev:/build
- godot-project:/project
+ depends_on:
+ - redis
volumes:
godot-build-dev:
driver: local