mirror of
https://github.com/dcarrillo/whatismyip.git
synced 2025-07-01 09:19:26 +00:00
Bump testcontainers-go tp 0.13.0
This commit is contained in:
@ -38,12 +38,18 @@ func buildContainer() testcontainers.ContainerRequest {
|
||||
},
|
||||
ExposedPorts: []string{"8000:8000", "8001:8001"},
|
||||
WaitingFor: wait.ForLog("Starting TLS server listening on :8001"),
|
||||
BindMounts: map[string]string{
|
||||
"/tmp/GeoIP2-City-Test.mmdb": filepath.Join(dir, "/../test/GeoIP2-City-Test.mmdb"),
|
||||
"/tmp/GeoLite2-ASN-Test.mmdb": filepath.Join(dir, "/../test/GeoLite2-ASN-Test.mmdb"),
|
||||
"/tmp/server.pem": filepath.Join(dir, "/../test/server.pem"),
|
||||
"/tmp/server.key": filepath.Join(dir, "/../test/server.key"),
|
||||
},
|
||||
Mounts: testcontainers.Mounts(
|
||||
testcontainers.BindMount(
|
||||
filepath.Join(dir, "/../test/GeoIP2-City-Test.mmdb"),
|
||||
"/tmp/GeoIP2-City-Test.mmdb",
|
||||
),
|
||||
testcontainers.BindMount(
|
||||
filepath.Join(dir, "/../test/GeoLite2-ASN-Test.mmdb"),
|
||||
"/tmp/GeoLite2-ASN-Test.mmdb",
|
||||
),
|
||||
testcontainers.BindMount(filepath.Join(dir, "/../test/server.pem"), "/tmp/server.pem"),
|
||||
testcontainers.BindMount(filepath.Join(dir, "/../test/server.key"), "/tmp/server.key"),
|
||||
),
|
||||
}
|
||||
|
||||
return req
|
||||
|
Reference in New Issue
Block a user