Create a docker/run task that wraps podman/run
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/docker/errors.go Mon Oct 11 05:00:20 2021 -0500
@@ -0,0 +1,10 @@
+ errDetachRemoved = errors.New("the detach attribute was removed in convey 0.15.0") + errHealthCheckRemoved = errors.New("the healthcheck attribute was removed in convey 0.15.0") --- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/docker/run.go Mon Oct 11 05:00:20 2021 -0500
@@ -0,0 +1,70 @@
+ log "github.com/sirupsen/logrus" + "keep.imfreedom.org/grim/convey/environment" + "keep.imfreedom.org/grim/convey/podman" + "keep.imfreedom.org/grim/convey/runtime" + "keep.imfreedom.org/grim/convey/tasks" + "keep.imfreedom.org/grim/convey/yaml" + Command string `yaml:"command"` + Detach bool `yaml:"detach"` + Entrypoint string `yaml:"entrypoint"` + Environment yaml.StringOrSlice `yaml:"environment"` + HealthCheck interface{} `yaml:"healthcheck"` + Hostname string `yaml:"hostname"` + Image string `yaml:"image"` + Labels yaml.StringOrSlice `yaml:"labels"` + Script yaml.StringOrSlice `yaml:"script"` + Shell string `yaml:"shell"` + User string `yaml:"user"` + Workdir string `yaml:"workdir"` + Workspace string `yaml:"workspace"` +// New creates a new Run task. +func (r *Run) New() tasks.Task { +// Valid validates the export task. +func (r *Run) Valid() error { + return errDetachRemoved + if r.HealthCheck != nil { + return errHealthCheckRemoved + r.realRun = &podman.Run{ + Entrypoint: r.Entrypoint, + Environment: r.Environment, + Workspace: r.Workspace, + return r.realRun.Valid() +func (r *Run) Execute(name string, logger *log.Entry, env environment.Environment, rt *runtime.Runtime) error { + return r.realRun.Execute(name, logger, env, rt) +func (r *Run) Deprecated() error { + return fmt.Errorf("docker/run has been deprecated in favor of podman/run since 0.15.0") --- a/docker/tasks.go Mon Oct 11 05:00:11 2021 -0500
+++ b/docker/tasks.go Mon Oct 11 05:00:20 2021 -0500
@@ -14,6 +14,7 @@
"docker/remove": &Remove{},
--- a/podman/tasks.go Mon Oct 11 05:00:11 2021 -0500
+++ b/podman/tasks.go Mon Oct 11 05:00:20 2021 -0500
@@ -14,8 +14,5 @@
"podman/remove": &Remove{},