Skip to content

Commit

Permalink
Some ElasticSearch DockerContainer fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ph3nol committed Dec 7, 2017
1 parent 4bb0e23 commit 20128b4
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ElasticsearchDockerContainer extends DockerContainer
*/
public function getPackageManager(): string
{
return DockerContainerInterface::PACKAGE_MANAGER_TYPE_APK;
return DockerContainerInterface::PACKAGE_MANAGER_TYPE_APT;
}

/**
Expand Down Expand Up @@ -65,6 +65,9 @@ public function execute(): void
'type' => 'rw',
]);

// Envs.
$this->addEnv('ES_JAVA_OPTS', '-Xms2g -Xmx2g');

// Ports.
$this->addEnvPort('ELASTIC_SEARCH', ['from' => '8020', 'to' => '9200']);
}
Expand Down

0 comments on commit 20128b4

Please sign in to comment.