Skip to content

Commit 5741796

Browse files
fixing docker connection
1 parent 0d3a746 commit 5741796

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ci/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const (
1313
DEFAULT_GO = "golang:1.22"
1414
PROJ_MOUNT = "/app"
1515
OUT_DIR = "/binaries"
16+
DOCKER_PORT =- 2375
1617
)
1718

1819
type HarborSatellite struct{}

ci/satellite.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ func (m *HarborSatellite) StartSatelliteCi(ctx context.Context, source *dagger.D
2424

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

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

0 commit comments

Comments
 (0)