Skip to content

Commit

Permalink
Merge pull request #107 from filecoin-project/disable-networking
Browse files Browse the repository at this point in the history
Disable the network
  • Loading branch information
lukemarsden authored May 30, 2022
2 parents bf4da68 + b262dbb commit 63c67e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions pkg/executor/docker/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,12 @@ func (dockerExecutor *DockerExecutor) RunJob(job *types.Job) (string, error) {
}

containerConfig := &container.Config{
Image: job.Spec.Vm.Image,
Tty: false,
Env: job.Spec.Vm.Env,
Entrypoint: job.Spec.Vm.Entrypoint,
Labels: dockerExecutor.jobContainerLabels(job),
Image: job.Spec.Vm.Image,
Tty: false,
Env: job.Spec.Vm.Env,
Entrypoint: job.Spec.Vm.Entrypoint,
Labels: dockerExecutor.jobContainerLabels(job),
NetworkDisabled: true,
}

log.Trace().Msgf("Container: %+v %+v", containerConfig, mounts)
Expand Down
2 changes: 1 addition & 1 deletion pkg/test/scenario/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ var ApiCopyStorageDriverFactory = StorageDriverFactory{
}

var STORAGE_DRIVER_FACTORIES = []StorageDriverFactory{
FuseStorageDriverFactory,
// FuseStorageDriverFactory,
ApiCopyStorageDriverFactory,
}

Expand Down

0 comments on commit 63c67e1

Please sign in to comment.