Skip to content

Commit d7a8182

Browse files
committed
Remove tmpfs bind mount that might be causing permission issues
Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
1 parent 458c262 commit d7a8182

1 file changed

Lines changed: 0 additions & 26 deletions

File tree

src/utils/testingutils/docker/elastic.go

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -57,38 +57,12 @@ func SetupElastic() (*elastic.Client, func(), error) {
5757
"xpack.security.http.ssl.enabled=false",
5858
"xpack.security.transport.ssl.enabled=false",
5959
"indices.lifecycle.poll_interval=5s",
60-
"path.data=/opt/elasticsearch/volatile/data",
61-
"path.logs=/opt/elasticsearch/volatile/logs",
6260
"ES_JAVA_OPTS=-Xms128m -Xmx128m -server",
6361
"ES_HEAP_SIZE=128m",
6462
},
6563
}, func(config *docker.HostConfig) {
6664
config.AutoRemove = false
6765
config.RestartPolicy = docker.RestartPolicy{Name: "no"}
68-
// Tmpfs is much faster than the default docker mounts.
69-
config.Mounts = []docker.HostMount{
70-
{
71-
Target: "/opt/elasticsearch/volatile/data",
72-
Type: "tmpfs",
73-
TempfsOptions: &docker.TempfsOptions{
74-
SizeBytes: 100 * 1024 * 1024,
75-
},
76-
},
77-
{
78-
Target: "/opt/elasticsearch/volatile/logs",
79-
Type: "tmpfs",
80-
TempfsOptions: &docker.TempfsOptions{
81-
SizeBytes: 100 * 1024 * 1024,
82-
},
83-
},
84-
{
85-
Target: "/tmp",
86-
Type: "tmpfs",
87-
TempfsOptions: &docker.TempfsOptions{
88-
SizeBytes: 100 * 1024 * 1024,
89-
},
90-
},
91-
}
9266
config.CPUCount = 1
9367
config.Memory = 1024 * 1024 * 1024
9468
config.MemorySwap = 0

0 commit comments

Comments
 (0)