Compare commits
4 Commits
php_rating
...
master
Author | SHA1 | Date | |
---|---|---|---|
|
e2cfded352 | ||
|
052279458a | ||
|
8575a44f0f | ||
|
0721142dee |
@@ -5,19 +5,24 @@ WORKDIR /instana
|
|||||||
|
|
||||||
RUN apk add --update --no-cache curl
|
RUN apk add --update --no-cache curl
|
||||||
|
|
||||||
RUN if [ -n "$KEY" ]; then curl \
|
ENV ARTI_PATH='https://artifact-public.instana.io/artifactory/shared/com/instana/nginx_tracing/'
|
||||||
|
|
||||||
|
RUN if [ -n "$KEY" ]; then \
|
||||||
|
sensor_version=$(curl --user "_:$KEY" ${ARTI_PATH} | grep -o '>[0-9]\+\.[0-9]\+\.[0-9]\+'| cut -f 2 -d '>'|sort -V|tail -1 ); \
|
||||||
|
echo "Downloading sensor version ${sensor_version} for Nginx version 1.21.6" ; \
|
||||||
|
curl \
|
||||||
--output instana.zip \
|
--output instana.zip \
|
||||||
--user "_:$KEY" \
|
--user "_:$KEY" \
|
||||||
https://artifact-public.instana.io/artifactory/shared/com/instana/nginx_tracing/1.1.2/linux-amd64-glibc-nginx-1.20.1.zip && \
|
${ARTI_PATH}/${sensor_version}/linux-amd64-glibc-nginx-1.21.6.zip && \
|
||||||
unzip instana.zip && \
|
unzip instana.zip && \
|
||||||
mv glibc-libinstana_sensor.so libinstana_sensor.so && \
|
mv glibc-libinstana_sensor.so libinstana_sensor.so && \
|
||||||
mv glibc-nginx-1.20.1-ngx_http_ot_module.so ngx_http_opentracing_module.so; \
|
mv glibc-nginx-1.21.6-ngx_http_ot_module.so ngx_http_opentracing_module.so; \
|
||||||
else echo "KEY not provided. Not adding tracing"; \
|
else echo "KEY not provided. Not adding tracing"; \
|
||||||
touch dummy.so; \
|
touch dummy.so; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
FROM nginx:1.20.1
|
FROM nginx:1.21.6
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user