The implementation was very heavily docker-local specific and thus didn't make a ton of sense to keep in the cron plugin. This also re-introduces changes from #5908 to parallelize the crontab generation (which is also specific to the docker-local scheduler) that were lost during a rebase. The impetus for this change was implementing a `cron:run` command. The logic for actually running the command isn't scheduler specific - merely invoking `dokku run` with the appropriate arguments - but all the logic around how the commands were retrieved were, so the change was made pre-emptively.
28 lines
1006 B
Modula-2
28 lines
1006 B
Modula-2
module github.com/dokku/dokku/plugins/scheduler-docker-local
|
|
|
|
go 1.19
|
|
|
|
require (
|
|
github.com/dokku/dokku/plugins/common v0.0.0-00010101000000-000000000000
|
|
github.com/dokku/dokku/plugins/cron v0.0.0-00010101000000-000000000000
|
|
github.com/multiformats/go-base36 v0.2.0
|
|
golang.org/x/sync v0.3.0
|
|
)
|
|
|
|
require (
|
|
github.com/codegangsta/inject v0.0.0-20150114235600-33e0aa1cb7c0 // indirect
|
|
github.com/codeskyblue/go-sh v0.0.0-20190412065543-76bd3d59ff27 // indirect
|
|
github.com/dokku/dokku/plugins/app-json v0.0.0-00010101000000-000000000000 // indirect
|
|
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
|
|
github.com/otiai10/copy v1.12.0 // indirect
|
|
github.com/robfig/cron/v3 v3.0.1 // indirect
|
|
github.com/ryanuber/columnize v2.1.2+incompatible // indirect
|
|
golang.org/x/sys v0.8.0 // indirect
|
|
)
|
|
|
|
replace github.com/dokku/dokku/plugins/app-json => ../app-json
|
|
|
|
replace github.com/dokku/dokku/plugins/common => ../common
|
|
|
|
replace github.com/dokku/dokku/plugins/cron => ../cron
|