Skip to content

Commit

Permalink
Docker env fix
Browse files Browse the repository at this point in the history
  • Loading branch information
smickovskid committed May 15, 2024
1 parent bc92567 commit 63996ff
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions integration-tests/docker/test_env/sol.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ import (
"testing"
"time"

"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/mount"
"github.com/google/uuid"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"

tc "github.com/testcontainers/testcontainers-go"
tcwait "github.com/testcontainers/testcontainers-go/wait"
"golang.org/x/exp/slices"
Expand Down Expand Up @@ -170,13 +173,13 @@ func (ms *Solana) getContainerRequest(inactiveFeatures InactiveFeatures) (*tc.Co
WaitingFor: tcwait.ForLog("Processed Slot: 1").
WithStartupTimeout(30 * time.Second).
WithPollInterval(100 * time.Millisecond),
Mounts: tc.ContainerMounts{
tc.ContainerMount{
Source: tc.GenericBindMountSource{
HostPath: utils.ContractsDir,
},
Target: "/programs",
},
HostConfigModifier: func(hostConfig *container.HostConfig) {
hostConfig.Mounts = append(hostConfig.Mounts, mount.Mount{
Type: mount.TypeBind,
Source: utils.ContractsDir,
Target: "/programs",
ReadOnly: false,
})
},
LifecycleHooks: []tc.ContainerLifecycleHooks{
{
Expand Down

0 comments on commit 63996ff

Please sign in to comment.