Skip to content

Commit

Permalink
Revert "Fix passing positional args to ES in Docker (#88502)"
Browse files Browse the repository at this point in the history
This reverts commit 3776923.
  • Loading branch information
pugnascotia committed Jul 14, 2022
1 parent 5f5a48c commit 0f052d1
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 27 deletions.
2 changes: 1 addition & 1 deletion distribution/docker/src/docker/bin/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ fi

# Signal forwarding and child reaping is handled by `tini`, which is the
# actual entrypoint of the container
exec /usr/share/elasticsearch/bin/elasticsearch "$@" $POSITIONAL_PARAMETERS <<<"$KEYSTORE_PASSWORD"
exec /usr/share/elasticsearch/bin/elasticsearch $POSITIONAL_PARAMETERS <<<"$KEYSTORE_PASSWORD"
5 changes: 0 additions & 5 deletions docs/changelog/88502.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -1096,18 +1096,6 @@ public void test170DefaultShellIsBash() {
}
}

/**
* Ensure that it is possible to apply CLI options when running the image.
*/
public void test171AdditionalCliOptionsAreForwarded() throws Exception {
runContainer(distribution(), builder().runArgs("bin/elasticsearch", "-Ecluster.name=kimchy").envVar("ELASTIC_PASSWORD", PASSWORD));
waitForElasticsearch(installation, "elastic", PASSWORD);

final JsonNode node = getJson("/", "elastic", PASSWORD, ServerUtils.getCaCert(installation));

assertThat(node.get("cluster_name").textValue(), equalTo("kimchy"));
}

/**
* Check that the UBI images has the correct license information in the correct place.
*/
Expand Down Expand Up @@ -1205,7 +1193,7 @@ private List<String> listPlugins() {
/**
* Check that readiness listener works
*/
public void test500Readiness() throws Exception {
public void testReadiness001() throws Exception {
assertFalse(readinessProbe(9399));
// Disabling security so we wait for green
installation = runContainer(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public class DockerRun {
private Integer uid;
private Integer gid;
private final List<String> extraArgs = new ArrayList<>();
private final List<String> runArgs = new ArrayList<>();
private String memory = "2g"; // default to 2g memory limit

private DockerRun() {}
Expand Down Expand Up @@ -96,11 +95,6 @@ public DockerRun extraArgs(String... args) {
return this;
}

public DockerRun runArgs(String... args) {
Collections.addAll(this.runArgs, args);
return this;
}

String build() {
final List<String> cmd = new ArrayList<>();

Expand Down Expand Up @@ -150,8 +144,6 @@ String build() {
// Image name
cmd.add(getImageName(distribution));

cmd.addAll(this.runArgs);

return String.join(" ", cmd);
}

Expand Down

0 comments on commit 0f052d1

Please sign in to comment.