mirror of
https://github.com/gofiber/storage.git
synced 2025-10-06 09:07:14 +08:00
Revert "chore: increase sysctl values for the MSSQL container"
This reverts commit 8cb7bc56b2
.
This commit is contained in:
@@ -3,10 +3,8 @@ module github.com/gofiber/storage/mssql/v2
|
|||||||
go 1.22
|
go 1.22
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/docker/docker v27.1.1+incompatible
|
|
||||||
github.com/microsoft/go-mssqldb v1.7.2
|
github.com/microsoft/go-mssqldb v1.7.2
|
||||||
github.com/stretchr/testify v1.9.0
|
github.com/stretchr/testify v1.9.0
|
||||||
github.com/testcontainers/testcontainers-go v0.34.0
|
|
||||||
github.com/testcontainers/testcontainers-go/modules/mssql v0.34.0
|
github.com/testcontainers/testcontainers-go/modules/mssql v0.34.0
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -21,6 +19,7 @@ require (
|
|||||||
github.com/cpuguy83/dockercfg v0.3.2 // indirect
|
github.com/cpuguy83/dockercfg v0.3.2 // indirect
|
||||||
github.com/davecgh/go-spew v1.1.1 // indirect
|
github.com/davecgh/go-spew v1.1.1 // indirect
|
||||||
github.com/distribution/reference v0.6.0 // indirect
|
github.com/distribution/reference v0.6.0 // indirect
|
||||||
|
github.com/docker/docker v27.1.1+incompatible // indirect
|
||||||
github.com/docker/go-connections v0.5.0 // indirect
|
github.com/docker/go-connections v0.5.0 // indirect
|
||||||
github.com/docker/go-units v0.5.0 // indirect
|
github.com/docker/go-units v0.5.0 // indirect
|
||||||
github.com/felixge/httpsnoop v1.0.4 // indirect
|
github.com/felixge/httpsnoop v1.0.4 // indirect
|
||||||
@@ -48,6 +47,7 @@ require (
|
|||||||
github.com/shirou/gopsutil/v3 v3.23.12 // indirect
|
github.com/shirou/gopsutil/v3 v3.23.12 // indirect
|
||||||
github.com/shoenig/go-m1cpu v0.1.6 // indirect
|
github.com/shoenig/go-m1cpu v0.1.6 // indirect
|
||||||
github.com/sirupsen/logrus v1.9.3 // indirect
|
github.com/sirupsen/logrus v1.9.3 // indirect
|
||||||
|
github.com/testcontainers/testcontainers-go v0.34.0 // indirect
|
||||||
github.com/tklauser/go-sysconf v0.3.12 // indirect
|
github.com/tklauser/go-sysconf v0.3.12 // indirect
|
||||||
github.com/tklauser/numcpus v0.6.1 // indirect
|
github.com/tklauser/numcpus v0.6.1 // indirect
|
||||||
github.com/yusufpapurcu/wmi v1.2.3 // indirect
|
github.com/yusufpapurcu/wmi v1.2.3 // indirect
|
||||||
|
@@ -7,9 +7,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/docker/docker/api/types/container"
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
"github.com/testcontainers/testcontainers-go"
|
|
||||||
"github.com/testcontainers/testcontainers-go/modules/mssql"
|
"github.com/testcontainers/testcontainers-go/modules/mssql"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -36,15 +34,6 @@ func newTestStore(t testing.TB) (*Storage, error) {
|
|||||||
c, err := mssql.Run(ctx, img,
|
c, err := mssql.Run(ctx, img,
|
||||||
mssql.WithPassword(mssqlPass),
|
mssql.WithPassword(mssqlPass),
|
||||||
mssql.WithAcceptEULA(),
|
mssql.WithAcceptEULA(),
|
||||||
testcontainers.CustomizeRequest(testcontainers.GenericContainerRequest{
|
|
||||||
ContainerRequest: testcontainers.ContainerRequest{
|
|
||||||
HostConfigModifier: func(hc *container.HostConfig) {
|
|
||||||
hc.Sysctls = map[string]string{
|
|
||||||
"fs.aio-max-nr": "1048576",
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}),
|
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Reference in New Issue
Block a user