Skip to content

Commit

Permalink
syncup dockerfile with original + set OTEL_EXPORTER_OTLP_ENDPOINT for…
Browse files Browse the repository at this point in the history
… istio case
  • Loading branch information
ldemailly committed Jan 2, 2023
1 parent 7abc8b7 commit 4f3ecde
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,21 @@ RUN apk update && apk add ca-certificates
FROM scratch
COPY fortiotel /usr/bin/fortio
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
ENTRYPOINT ["/usr/bin/fortio"]
# TODO: Prom metrics exports/scrape
# EXPOSE 9102
# ENV OTEL_SERVICE_NAME "fortio"
# Assumes you added --collector.otlp.enabled=true to your Jaeger deployment
ENV OTEL_EXPORTER_OTLP_ENDPOINT http://jaeger-collector.istio-system.svc.cluster.local:4317
# Same as original fortio/fortio Dockerfile
EXPOSE 8078
EXPOSE 8079
EXPOSE 8080
# Prom metrics exports/scrape
EXPOSE 9102
EXPOSE 8081
# configmap (dynamic flags)
VOLUME /etc/fortio-config
# logs etc
WORKDIR /var/log/fortio
# start the fortiotel with default; the routes and cert by default
CMD ["-config", "/etc/fortio-config"]
VOLUME /etc/fortio
# data files etc
VOLUME /var/lib/fortio
WORKDIR /var/lib/fortio
ENTRYPOINT ["/usr/bin/fortio"]
# start the server mode (grpc ping on 8079, http echo and UI on 8080, redirector on 8081) by default
CMD ["server", "-config", "/etc/fortio"]

0 comments on commit 4f3ecde

Please sign in to comment.