Skip to content

Commit 48bbbae

Browse files
zdicesareyurishkuro
authored andcommitted
Update Dockerfiles to reference executable via ENTRYPOINT (#815)
- In all Dockerfiles, reference the executable in ENTRYPOINT to allow consumers to override default parameters without needing to specify the executable path. - Common default arguments in the query and standalone Dockerfiles also move to ENTRYPOINT - Move hotrod default argument to CMD Signed-off-by: Zachary DiCesare <zachary.v.dicesare@gmail.com>
1 parent 5bbdeeb commit 48bbbae

File tree

8 files changed

+11
-12
lines changed

8 files changed

+11
-12
lines changed

cmd/agent/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ FROM scratch
22

33
EXPOSE 5775/udp 6831/udp 6832/udp 5778
44
COPY agent-linux /go/bin/
5-
CMD ["/go/bin/agent-linux"]
5+
ENTRYPOINT ["/go/bin/agent-linux"]

cmd/collector/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certifica
77

88
EXPOSE 14267
99
COPY collector-linux /go/bin/
10-
CMD ["/go/bin/collector-linux"]
10+
ENTRYPOINT ["/go/bin/collector-linux"]

cmd/query/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@ COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certifica
88
EXPOSE 16686
99
COPY query-linux /go/bin/
1010

11-
# TODO replace this with ENTRYPOINT
12-
CMD ["/go/bin/query-linux"]
11+
ENTRYPOINT ["/go/bin/query-linux"]

cmd/standalone/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ EXPOSE 16686
2121
COPY ./cmd/standalone/standalone-linux /go/bin/
2222
COPY ./cmd/standalone/sampling_strategies.json /etc/jaeger/
2323

24-
# TODO split cmd into ENTRYPOINT
25-
CMD ["/go/bin/standalone-linux", "--sampling.strategies-file=/etc/jaeger/sampling_strategies.json"]
24+
ENTRYPOINT ["/go/bin/standalone-linux"]
25+
CMD ["--sampling.strategies-file=/etc/jaeger/sampling_strategies.json"]

crossdock/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ FROM scratch
33
COPY crossdock-linux /go/bin/
44

55
EXPOSE 8080
6-
CMD ["/go/bin/crossdock-linux"]
6+
ENTRYPOINT ["/go/bin/crossdock-linux"]

docker-compose/jaeger-docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: '2'
33
services:
44
jaeger-collector:
55
image: jaegertracing/jaeger-collector
6-
command: ["/go/bin/collector-linux", "--cassandra.keyspace=jaeger_v1_dc1", "--cassandra.servers=cassandra", "--collector.zipkin.http-port=9411"]
6+
command: ["--cassandra.keyspace=jaeger_v1_dc1", "--cassandra.servers=cassandra", "--collector.zipkin.http-port=9411"]
77
ports:
88
- "14269"
99
- "14268:14268"
@@ -15,7 +15,7 @@ services:
1515

1616
jaeger-query:
1717
image: jaegertracing/jaeger-query
18-
command: ["/go/bin/query-linux", "--cassandra.keyspace=jaeger_v1_dc1", "--cassandra.servers=cassandra"]
18+
command: ["--cassandra.keyspace=jaeger_v1_dc1", "--cassandra.servers=cassandra"]
1919
ports:
2020
- "16686:16686"
2121
- "16687"
@@ -25,7 +25,7 @@ services:
2525

2626
jaeger-agent:
2727
image: jaegertracing/jaeger-agent
28-
command: ["/go/bin/agent-linux", "--collector.host-port=jaeger-collector:14267"]
28+
command: ["--collector.host-port=jaeger-collector:14267"]
2929
ports:
3030
- "5775:5775/udp"
3131
- "6831:6831/udp"

plugin/storage/cassandra/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ FROM cassandra:3.11
33
COPY schema/* /cassandra-schema/
44

55
ENV CQLSH_HOST=cassandra
6-
CMD ["/cassandra-schema/docker.sh"]
6+
ENTRYPOINT ["/cassandra-schema/docker.sh"]

plugin/storage/es/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
FROM python:3-alpine
22
RUN pip install elasticsearch elasticsearch-curator
33
COPY esCleaner.py /es-index-cleaner/
4-
CMD ["python3", "/es-index-cleaner/esCleaner.py"]
4+
ENTRYPOINT ["python3", "/es-index-cleaner/esCleaner.py"]

0 commit comments

Comments
 (0)