Skip to content

Commit

Permalink
fixing docker connection
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehul-Kumar-27 committed Aug 13, 2024
1 parent 0d3a746 commit 5741796
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions ci/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const (
DEFAULT_GO = "golang:1.22"
PROJ_MOUNT = "/app"
OUT_DIR = "/binaries"
DOCKER_PORT =- 2375
)

type HarborSatellite struct{}
Expand Down
3 changes: 2 additions & 1 deletion ci/satellite.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ func (m *HarborSatellite) StartSatelliteCi(ctx context.Context, source *dagger.D

func (m *HarborSatellite) ExecuteTestsForSatellite(ctx context.Context, source *dagger.Directory) (string, error) {
goContainer := dag.Container().
From(DEFAULT_GO)
From("golang:1.22-alpine").
WithExec([]string{"apk", "add", "--no-cache", "docker"})

containerWithDocker, err := m.Attach(ctx, goContainer, "24.0")
if err != nil {
Expand Down

0 comments on commit 5741796

Please sign in to comment.