Skip to content
This repository was archived by the owner on Jun 22, 2024. It is now read-only.

Commit 63f40fd

Browse files
Modified the telemetry installation commands so that the coursiers launcher pulled the binary based on arch, and only for the supported ones arm64 and x86_64
1 parent 1c0e6ea commit 63f40fd

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Base/Dockerfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,18 @@ RUN mkdir -p /opt/selenium /opt/selenium/assets /var/run/supervisor /var/log/su
101101
# Download observability related jaegar jars and make them available in a separate directory
102102
# so that the container can skip downloading them everytime it comes up
103103
#=====
104-
RUN curl -fL https://github.com/coursier/launchers/raw/master/cs-x86_64-pc-linux.gz | gzip -d > /tmp/cs \
104+
RUN if [ `arch` = "aarch64" ] || [ `arch` = "x86_64" ]; then \
105+
curl -fL https://github.com/coursier/launchers/raw/master/cs-`arch`-pc-linux.gz | gzip -d > /tmp/cs \
105106
&& chmod +x /tmp/cs \
106107
&& mkdir -p /external_jars \
107-
&& chmod -R 777 /external_jars
108+
&& chmod -R 777 /external_jars ; \
109+
fi
108110

109-
RUN /tmp/cs fetch --classpath --cache /external_jars io.opentelemetry:opentelemetry-exporter-jaeger:1.19.0 io.grpc:grpc-netty:1.50.2 > /external_jars/.classpath.txt
111+
RUN if [ -f "/tmp/cs" ]; then \
112+
/tmp/cs fetch --classpath --cache /external_jars io.opentelemetry:opentelemetry-exporter-jaeger:1.19.0 io.grpc:grpc-netty:1.50.2 > /external_jars/.classpath.txt ; \
113+
fi
110114

111-
RUN chmod 777 /external_jars/.classpath.txt
115+
RUN if [ -f "/tmp/cs" ]; then chmod 777 /external_jars/.classpath.txt ; fi
112116

113117
#===================================================
114118
# Run the following commands as non-privileged user

0 commit comments

Comments
 (0)