From 81ec33bc44ce40461f6f8ec9980fbfc5a1ba1b34 Mon Sep 17 00:00:00 2001 From: apoorvam Date: Tue, 27 Aug 2019 11:00:03 -0400 Subject: [PATCH 1/2] [#175] Override/Reset entrypoint during container creation --- internal/settings/settings_test.go | 2 -- pkg/docker/docker.go | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/settings/settings_test.go b/internal/settings/settings_test.go index 439b908..f9dcf6e 100644 --- a/internal/settings/settings_test.go +++ b/internal/settings/settings_test.go @@ -1,7 +1,6 @@ package settings import ( - "fmt" "reflect" "testing" @@ -11,7 +10,6 @@ import ( func TestInit(t *testing.T) { Init() - fmt.Print(viper.AllSettings()) defaultSettings := map[string]interface{}{ "dunnertaskfile": internal.DefaultDunnerTaskFileName, "dotenvfile": ".env", diff --git a/pkg/docker/docker.go b/pkg/docker/docker.go index a89c2ad..31f7a44 100644 --- a/pkg/docker/docker.go +++ b/pkg/docker/docker.go @@ -154,6 +154,7 @@ func (step Step) Exec() error { Env: step.Env, WorkingDir: containerWorkingDir, User: step.User, + Entrypoint: []string{}, }, &container.HostConfig{ Mounts: append(step.ExtMounts, mount.Mount{ From 13aa6ed498f486497e15b81c6ed33155c72ca0bb Mon Sep 17 00:00:00 2001 From: apoorvam Date: Tue, 27 Aug 2019 11:14:58 -0400 Subject: [PATCH 2/2] test: fix test output order --- pkg/dunner/list_tasks_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/dunner/list_tasks_test.go b/pkg/dunner/list_tasks_test.go index ad8dde2..b713b77 100644 --- a/pkg/dunner/list_tasks_test.go +++ b/pkg/dunner/list_tasks_test.go @@ -89,7 +89,7 @@ tasks: panic(err) } - // Output: Available Dunner tasks: + // Unordered output: Available Dunner tasks: // • setup // • build // Run `dunner do ` to run a dunner task.