Skip to content

Commit 40b60b8

Browse files
committed
Remove es tmpfs mounts that cause AccessDenfiedException on container start
Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
1 parent 05cdfca commit 40b60b8

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

src/utils/testingutils/docker/elastic.go

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -63,30 +63,6 @@ func SetupElastic() (*elastic.Client, func(), error) {
6363
}, func(config *docker.HostConfig) {
6464
config.AutoRemove = true
6565
config.RestartPolicy = docker.RestartPolicy{Name: "no"}
66-
// Tmpfs is much faster than the default docker mounts.
67-
config.Mounts = []docker.HostMount{
68-
{
69-
Target: "/opt/elasticsearch/volatile/data",
70-
Type: "tmpfs",
71-
TempfsOptions: &docker.TempfsOptions{
72-
SizeBytes: 100 * 1024 * 1024,
73-
},
74-
},
75-
{
76-
Target: "/opt/elasticsearch/volatile/logs",
77-
Type: "tmpfs",
78-
TempfsOptions: &docker.TempfsOptions{
79-
SizeBytes: 100 * 1024 * 1024,
80-
},
81-
},
82-
{
83-
Target: "/tmp",
84-
Type: "tmpfs",
85-
TempfsOptions: &docker.TempfsOptions{
86-
SizeBytes: 100 * 1024 * 1024,
87-
},
88-
},
89-
}
9066
config.CPUCount = 1
9167
config.Memory = 1024 * 1024 * 1024
9268
config.MemorySwap = 0

0 commit comments

Comments
 (0)