This message was deleted.
s
This message was deleted.
a
When I try baking in the timezone info into the image which extends scratch I then get a permission denied error (followed this SO post).
Can’t run chmod since its a scratch image
a
never faced this actually..but got some stuff relating clickhouse with golang-migrate command
you using helm or docker standalone setup?
a
i am extending your image to run in an ECS cluster. Just want to bake in my config file for the collector and launch. The clickhouse cluster is setup on some EC2 machines
e.g
Copy code
FROM signoz/otelcontribcol:0.45.1-1.1
COPY otel-collector-config.yaml /etc/otel/config.yaml
a
you can provide your own config without adding on top of that image
a
Volume mounts aren’t the nicest with ECS, so usually just bake in the config we need (especially for something that won’t likely change)
Volume mounts aren’t the nicest with ECS, so usually just bake in the config we need (especially for something that won’t likely change)
oh..didn't know that
and none of the users reported such issue
a
a
can you raise a github issue at signoz regarding mounting and running with ECS and the issue you faced. If someone looks around might be able to help
a
sure, ill try getting a fix in, and if not will open an issue
👍 1
Got it to work by using another intermediate image to chmod the file so that the collector could read in the time zone data.
🎉 1
Copy code
FROM alpine:3.15.5 as build
ADD <https://github.com/golang/go/raw/master/lib/time/zoneinfo.zip> /zoneinfo.zip
RUN chmod 777 /zoneinfo.zip

FROM signoz/otelcontribcol:0.45.1-1.1
ENV ZONEINFO /zoneinfo.zip
COPY --from=build /zoneinfo.zip /zoneinfo.zip
COPY otel-collector-config.yaml /etc/otel/config.yaml
I would recommend SigNoz incorporates this into their image as it would be pretty universally needed for the Go client to be able to work and not crash the collector.
👍 2
a
please add this as a suggestion in an issue. We should pick it up soon and test it out e2e 🙂