vcastellm / docker-dkron Goto Github PK
View Code? Open in Web Editor NEWOfficial Docker Image for Dkron http://dkron.io
License: MIT License
Official Docker Image for Dkron http://dkron.io
License: MIT License
The image.. just dont works. '-server' does not seems a valid argument.
The container dies.
I've set up dkron via docker-compose and applied the official image
But when I tried the example from the getting start page, the error occurred.
first job config
$ curl localhost:8080/v1/jobs -XPOST -d '{
"name": "job1",
"schedule": "@every 10s",
"timezone": "Europe/Berlin",
"owner": "Platform Team",
"owner_email": "[email protected]",
"disabled": false,
"tags": {
"dkron_server": "true:1"
},
"concurrency": "allow",
"executor": "shell",
"executor_config": {
"command": "date"
}
}'
$
Error from dkron logs
dkron_1 | time="2019-02-22T04:05:08Z" level=info msg="Error #01: open /usr/local/go/lib/time/zoneinfo.zip: no such file or directory" node=4164f29ffdb9
I removed timezone config and retried and it worked
$ curl localhost:8080/v1/jobs -XPOST -d '{
"name": "job1",
"schedule": "@every 10s",
"owner": "Platform Team",
"owner_email": "[email protected]",
"disabled": false,
"tags": {
"dkron_server": "true:1"
},
"concurrency": "allow",
"executor": "shell",
"executor_config": {
"command": "date"
}
}'
{"name":"job1","timezone":"","schedule":"@every 10s","owner":"Platform Team","owner_email":"[email protected]","success_count":0,"error_count":0,"last_success":"0001-01-01T00:00:00Z","last_error":"0001-01-01T00:00:00Z","disabled":false,"tags":{"dkron_server":"true:1"},"retries":0,"dependent_jobs":null,"parent_job":"","processors":null,"concurrency":"allow","executor":"shell","executor_config":{"command":"date"},"status":""}
$
Could you include zoneinfo into this official image??
Ref:docker-conpose.xml
---
version: '2'
services:
consul:
image: consul
ports:
- "8500:8500"
- "8300"
hostname: node1
command: agent -server -bootstrap -client=0.0.0.0
dkron:
image: dkron/dkron
depends_on:
- consul
ports:
- "8080:8080"
- "8946:8946"
volumes:
- ./:/gopath/src/github.com/victorcoder/dkron
environment:
- GODEBUG=netdns=go
command: agent --server --backend=consul --backend-machine=consul:8500 --join=dkron:8946 --log-level=debug
I might be just running the wrong OS (win10) but I don't seem to be able to get this working.
I run the command docker run --name some-dkron -d dkron/dkron agent -server
and it fails,
so I run docker run -ti dkron/dkron agent -server
and the output is as such:
INFO[2016-11-03T14:40:32Z] agent: Dkron agent starting node=dbb9a3f39ecd
INFO[2016-11-03T14:40:32Z] agent: joining: [] replay: true node=dbb9a3f39ecd
FATA[2016-11-03T14:40:32Z] store: Store backend not reachable error=client: etcd cluster is unavailable or misconfigured node=dbb9a3f39ecd
I don't see any installation related to etcd, so was guessing I'm either missing something (Like the appropriate docker container already running) or I'm just being thick.
Any help appreciated.
When running the cmd from the README:
$ docker run --name some-dkron -d dkron/dkron agent -server
I get the following:
$ docker run --name some-dkron -d dkron/dkron agent -server
6bedc3484a3f0d967c019cfd9454c3c4d8de44ae7a76f77c7cb8d87b47212b0b
$ docker logs some-dkron
[DEBUG] plugin: starting plugin: /opt/local/dkron/dkron-processor-files []string{"/opt/local/dkron/dkron-processor-files"}
[DEBUG] plugin: waiting for RPC address for: /opt/local/dkron/dkron-processor-files
[DEBUG] plugin: dkron-processor-files: [DEBUG] plugin: plugin address: unix /tmp/plugin544530452
[DEBUG] plugin: starting plugin: /opt/local/dkron/dkron-processor-log []string{"/opt/local/dkron/dkron-processor-log"}
[DEBUG] plugin: waiting for RPC address for: /opt/local/dkron/dkron-processor-log
[DEBUG] plugin: dkron-processor-log: [DEBUG] plugin: plugin address: unix /tmp/plugin829841109
[DEBUG] plugin: starting plugin: /opt/local/dkron/dkron-processor-syslog []string{"/opt/local/dkron/dkron-processor-syslog"}
[DEBUG] plugin: waiting for RPC address for: /opt/local/dkron/dkron-processor-syslog
[DEBUG] plugin: dkron-processor-syslog: [DEBUG] plugin: plugin address: unix /tmp/plugin695175887
time="2017-10-24T22:47:44Z" level=info msg="No valid config found: Applying default values." error="Unsupported Config Type \"\""
time="2017-10-24T22:47:44Z" level=info msg="agent: Dkron agent starting" node=6bedc3484a3f
Starting Dkron agent...
time="2017-10-24T22:47:44Z" level=info msg="agent: joining: [] replay: true" node=6bedc3484a3f
time="2017-10-24T22:47:44Z" level=fatal msg="store: Store backend not reachable" error="client: etcd cluster is unavailable or misconfigured" node=6bedc3484a3f
It would be useful for deployment reasons to start tagging images in Docker Hub.
Each release gets its own tag (0.9.1 release would get a "0.9.1" tag)
Every major and minor version would get a version tag in the standard "docker" way. (tag "0.9" would point to the latest 0.9.x release)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.