diff --git a/Dockerfile b/Dockerfile index b8e129b..f1b7579 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ FROM --platform=$BUILDPLATFORM ubuntu:22.04 ARG TARGETARCH ARG VERSION=1.0.1 ARG RELEASES_URL="https://github.com/ErdemOzgen/blackdagger/releases" -ARG TARGET_FILE="dagu_${VERSION}_linux_${TARGETARCH}.tar.gz" +ARG TARGET_FILE="blackdagger_${VERSION}_linux_${TARGETARCH}.tar.gz" ARG USER="blackdagger" ARG USER_UID=1000 diff --git a/cmd/scheduler_test.go b/cmd/scheduler_test.go index e786009..08ed211 100644 --- a/cmd/scheduler_test.go +++ b/cmd/scheduler_test.go @@ -15,7 +15,7 @@ func TestSchedulerCommand(t *testing.T) { go func() { testRunCommand(t, createSchedulerCommand(), cmdTest{ args: []string{"scheduler"}, - expectedOut: []string{"starting dagu scheduler"}, + expectedOut: []string{"starting blackdagger scheduler"}, }) }() diff --git a/cmd/start_all.go b/cmd/start_all.go index 33a5cbd..6e5af2d 100644 --- a/cmd/start_all.go +++ b/cmd/start_all.go @@ -13,7 +13,7 @@ import ( func startAllCmd() *cobra.Command { cmd := &cobra.Command{ Use: "start-all", - Short: "Launches both the Dagu web UI server and the scheduler process.", + Short: "Launches both the Blackdagger web UI server and the scheduler process.", Long: `blackdagger start-all [--dags=] [--host=] [--port=]`, PreRun: func(cmd *cobra.Command, args []string) { _ = viper.BindPFlag("port", cmd.Flags().Lookup("port")) diff --git a/internal/dag/builder_test.go b/internal/dag/builder_test.go index 8f44d0e..c6679bf 100644 --- a/internal/dag/builder_test.go +++ b/internal/dag/builder_test.go @@ -335,7 +335,7 @@ schedule: func TestGeneratingSockAddr(t *testing.T) { d := &DAG{Location: "testdata/testDag.yml"} - require.Regexp(t, `^/tmp/@dagu-testDag-[0-9a-f]+\.sock$`, d.SockAddr()) + require.Regexp(t, `^/tmp/@blackdagger-testDag-[0-9a-f]+\.sock$`, d.SockAddr()) } func TestOverwriteGlobalConfig(t *testing.T) { diff --git a/internal/dag/dag.go b/internal/dag/dag.go index f65cad5..b08c22b 100644 --- a/internal/dag/dag.go +++ b/internal/dag/dag.go @@ -77,7 +77,7 @@ func (d *DAG) SockAddr() string { h := md5.New() h.Write([]byte(s)) bs := h.Sum(nil) - return path.Join("/tmp", fmt.Sprintf("@dagu-%s-%x.sock", name, bs)) + return path.Join("/tmp", fmt.Sprintf("@blackdagger-%s-%x.sock", name, bs)) } func (d *DAG) Clone() *DAG { diff --git a/internal/mailer/mailer.go b/internal/mailer/mailer.go index f27e0bf..02b6b8e 100644 --- a/internal/mailer/mailer.go +++ b/internal/mailer/mailer.go @@ -27,7 +27,7 @@ type Config struct { var ( replacer = strings.NewReplacer("\r\n", "", "\r", "", "\n", "", "%0a", "", "%0d", "") - boundary = "==simple-boundary-dagu-mailer" + boundary = "==simple-boundary-blackdagger-mailer" ) // SendMail sends an email. diff --git a/internal/scheduler/node.go b/internal/scheduler/node.go index 2d30090..822f45a 100644 --- a/internal/scheduler/node.go +++ b/internal/scheduler/node.go @@ -240,7 +240,7 @@ func (n *Node) setup(logDir string, requestId string) error { func (n *Node) setupScript() (err error) { if n.Script != "" { - n.scriptFile, _ = os.CreateTemp(n.Dir, "dagu_script-") + n.scriptFile, _ = os.CreateTemp(n.Dir, "blackdagger_script-") if _, err = n.scriptFile.WriteString(n.Script); err != nil { return }