Skip to content

Commit ffc6a14

Browse files
committed
Revert "Fix passing positional args to ES in Docker (#88502)"
This reverts commit 9f4b32a.
1 parent 79a3027 commit ffc6a14

File tree

4 files changed

+2
-27
lines changed

4 files changed

+2
-27
lines changed

distribution/docker/src/docker/bin/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,4 @@ fi
8181

8282
# Signal forwarding and child reaping is handled by `tini`, which is the
8383
# actual entrypoint of the container
84-
exec /usr/share/elasticsearch/bin/elasticsearch "$@" $POSITIONAL_PARAMETERS <<<"$KEYSTORE_PASSWORD"
84+
exec /usr/share/elasticsearch/bin/elasticsearch $POSITIONAL_PARAMETERS <<<"$KEYSTORE_PASSWORD"

docs/changelog/88502.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

qa/os/src/test/java/org/elasticsearch/packaging/test/DockerTests.java

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,18 +1096,6 @@ public void test170DefaultShellIsBash() {
10961096
}
10971097
}
10981098

1099-
/**
1100-
* Ensure that it is possible to apply CLI options when running the image.
1101-
*/
1102-
public void test171AdditionalCliOptionsAreForwarded() throws Exception {
1103-
runContainer(distribution(), builder().runArgs("bin/elasticsearch", "-Ecluster.name=kimchy").envVar("ELASTIC_PASSWORD", PASSWORD));
1104-
waitForElasticsearch(installation, "elastic", PASSWORD);
1105-
1106-
final JsonNode node = getJson("/", "elastic", PASSWORD, ServerUtils.getCaCert(installation));
1107-
1108-
assertThat(node.get("cluster_name").textValue(), equalTo("kimchy"));
1109-
}
1110-
11111099
/**
11121100
* Check that the UBI images has the correct license information in the correct place.
11131101
*/
@@ -1205,7 +1193,7 @@ private List<String> listPlugins() {
12051193
/**
12061194
* Check that readiness listener works
12071195
*/
1208-
public void test500Readiness() throws Exception {
1196+
public void testReadiness001() throws Exception {
12091197
assertFalse(readinessProbe(9399));
12101198
// Disabling security so we wait for green
12111199
installation = runContainer(

qa/os/src/test/java/org/elasticsearch/packaging/util/docker/DockerRun.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public class DockerRun {
3434
private Integer uid;
3535
private Integer gid;
3636
private final List<String> extraArgs = new ArrayList<>();
37-
private final List<String> runArgs = new ArrayList<>();
3837
private String memory = "2g"; // default to 2g memory limit
3938

4039
private DockerRun() {}
@@ -96,11 +95,6 @@ public DockerRun extraArgs(String... args) {
9695
return this;
9796
}
9897

99-
public DockerRun runArgs(String... args) {
100-
Collections.addAll(this.runArgs, args);
101-
return this;
102-
}
103-
10498
String build() {
10599
final List<String> cmd = new ArrayList<>();
106100

@@ -150,8 +144,6 @@ String build() {
150144
// Image name
151145
cmd.add(getImageName(distribution));
152146

153-
cmd.addAll(this.runArgs);
154-
155147
return String.join(" ", cmd);
156148
}
157149

0 commit comments

Comments
 (0)