summaryrefslogtreecommitdiff
path: root/src/image-provider
diff options
context:
space:
mode:
authorSaumit <justsaumit@protonmail.com>2025-09-27 02:14:26 +0530
committerSaumit <justsaumit@protonmail.com>2025-09-27 02:14:26 +0530
commit82e03978b89938219958032efb1448cc76baa181 (patch)
tree626f3e54d52ecd49be0ed3bee30abacc0453d081 /src/image-provider
Initial snapshot - OpenTelemetry demo 2.1.3 -f
Diffstat (limited to 'src/image-provider')
-rw-r--r--src/image-provider/Dockerfile28
-rw-r--r--src/image-provider/nginx.conf.template40
-rw-r--r--src/image-provider/static/Banner.pngbin0 -> 354115 bytes
-rw-r--r--src/image-provider/static/opentelemetry-demo-logo.pngbin0 -> 100140 bytes
-rw-r--r--src/image-provider/static/products/EclipsmartTravelRefractorTelescope.jpgbin0 -> 347245 bytes
-rw-r--r--src/image-provider/static/products/LensCleaningKit.jpgbin0 -> 101928 bytes
-rw-r--r--src/image-provider/static/products/NationalParkFoundationExplorascope.jpgbin0 -> 21650 bytes
-rw-r--r--src/image-provider/static/products/OpticalTubeAssembly.jpgbin0 -> 22201 bytes
-rw-r--r--src/image-provider/static/products/RedFlashlight.jpgbin0 -> 369585 bytes
-rw-r--r--src/image-provider/static/products/RoofBinoculars.jpgbin0 -> 128965 bytes
-rw-r--r--src/image-provider/static/products/SolarFilter.jpgbin0 -> 105955 bytes
-rw-r--r--src/image-provider/static/products/SolarSystemColorImager.jpgbin0 -> 98549 bytes
-rw-r--r--src/image-provider/static/products/StarsenseExplorer.jpgbin0 -> 29713 bytes
-rw-r--r--src/image-provider/static/products/TheCometBook.jpgbin0 -> 251621 bytes
14 files changed, 68 insertions, 0 deletions
diff --git a/src/image-provider/Dockerfile b/src/image-provider/Dockerfile
new file mode 100644
index 0000000..68d39eb
--- /dev/null
+++ b/src/image-provider/Dockerfile
@@ -0,0 +1,28 @@
+# Copyright The OpenTelemetry Authors
+# SPDX-License-Identifier: Apache-2.0
+
+FROM nginxinc/nginx-unprivileged:1.29.0-alpine3.22
+
+USER 0
+
+RUN printf "%s%s%s%s\n" \
+ "@nginx " \
+ "http://nginx.org/packages/mainline/alpine/v" \
+ `egrep -o '^[0-9]+\.[0-9]+' /etc/alpine-release` \
+ "/main" \
+ | tee -a /etc/apk/repositories
+
+RUN apk update && \
+ apk add nginx-module-otel@nginx
+
+USER 101
+
+COPY src/image-provider/static/ /static/
+COPY src/image-provider/nginx.conf.template /nginx.conf.template
+
+EXPOSE ${IMAGE_PROVIDER_PORT}
+
+STOPSIGNAL SIGQUIT
+
+# Start nginx
+CMD ["/bin/sh" , "-c" , "envsubst '$OTEL_COLLECTOR_HOST $IMAGE_PROVIDER_PORT $OTEL_COLLECTOR_PORT_GRPC $OTEL_SERVICE_NAME' < /nginx.conf.template > /etc/nginx/nginx.conf && cat /etc/nginx/nginx.conf && exec nginx -g 'daemon off;'"]
diff --git a/src/image-provider/nginx.conf.template b/src/image-provider/nginx.conf.template
new file mode 100644
index 0000000..85d9e0c
--- /dev/null
+++ b/src/image-provider/nginx.conf.template
@@ -0,0 +1,40 @@
+load_module modules/ngx_otel_module.so;
+
+pid /tmp/nginx.pid;
+
+events {
+ worker_connections 1024;
+}
+
+http {
+ otel_exporter {
+ endpoint ${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC};
+ }
+ otel_trace on;
+ otel_trace_context propagate;
+ otel_service_name ${OTEL_SERVICE_NAME};
+ otel_span_name image-provider;
+
+
+ include mime.types;
+ sendfile on;
+ server {
+ listen ${IMAGE_PROVIDER_PORT};
+ listen [::]:${IMAGE_PROVIDER_PORT};
+
+ resolver 127.0.0.11;
+ autoindex off;
+
+ server_name _;
+ server_tokens off;
+
+ root /static;
+ gzip_static on;
+
+ location /status {
+ stub_status on;
+ access_log on;
+ allow all;
+ }
+ }
+}
diff --git a/src/image-provider/static/Banner.png b/src/image-provider/static/Banner.png
new file mode 100644
index 0000000..0e6a57f
--- /dev/null
+++ b/src/image-provider/static/Banner.png
Binary files differ
diff --git a/src/image-provider/static/opentelemetry-demo-logo.png b/src/image-provider/static/opentelemetry-demo-logo.png
new file mode 100644
index 0000000..c9aebcd
--- /dev/null
+++ b/src/image-provider/static/opentelemetry-demo-logo.png
Binary files differ
diff --git a/src/image-provider/static/products/EclipsmartTravelRefractorTelescope.jpg b/src/image-provider/static/products/EclipsmartTravelRefractorTelescope.jpg
new file mode 100644
index 0000000..5cdfdcc
--- /dev/null
+++ b/src/image-provider/static/products/EclipsmartTravelRefractorTelescope.jpg
Binary files differ
diff --git a/src/image-provider/static/products/LensCleaningKit.jpg b/src/image-provider/static/products/LensCleaningKit.jpg
new file mode 100644
index 0000000..72341fa
--- /dev/null
+++ b/src/image-provider/static/products/LensCleaningKit.jpg
Binary files differ
diff --git a/src/image-provider/static/products/NationalParkFoundationExplorascope.jpg b/src/image-provider/static/products/NationalParkFoundationExplorascope.jpg
new file mode 100644
index 0000000..523ebc8
--- /dev/null
+++ b/src/image-provider/static/products/NationalParkFoundationExplorascope.jpg
Binary files differ
diff --git a/src/image-provider/static/products/OpticalTubeAssembly.jpg b/src/image-provider/static/products/OpticalTubeAssembly.jpg
new file mode 100644
index 0000000..31a74b9
--- /dev/null
+++ b/src/image-provider/static/products/OpticalTubeAssembly.jpg
Binary files differ
diff --git a/src/image-provider/static/products/RedFlashlight.jpg b/src/image-provider/static/products/RedFlashlight.jpg
new file mode 100644
index 0000000..a4f7cef
--- /dev/null
+++ b/src/image-provider/static/products/RedFlashlight.jpg
Binary files differ
diff --git a/src/image-provider/static/products/RoofBinoculars.jpg b/src/image-provider/static/products/RoofBinoculars.jpg
new file mode 100644
index 0000000..179a9c6
--- /dev/null
+++ b/src/image-provider/static/products/RoofBinoculars.jpg
Binary files differ
diff --git a/src/image-provider/static/products/SolarFilter.jpg b/src/image-provider/static/products/SolarFilter.jpg
new file mode 100644
index 0000000..2bd7dfe
--- /dev/null
+++ b/src/image-provider/static/products/SolarFilter.jpg
Binary files differ
diff --git a/src/image-provider/static/products/SolarSystemColorImager.jpg b/src/image-provider/static/products/SolarSystemColorImager.jpg
new file mode 100644
index 0000000..c118c83
--- /dev/null
+++ b/src/image-provider/static/products/SolarSystemColorImager.jpg
Binary files differ
diff --git a/src/image-provider/static/products/StarsenseExplorer.jpg b/src/image-provider/static/products/StarsenseExplorer.jpg
new file mode 100644
index 0000000..b9dfdd2
--- /dev/null
+++ b/src/image-provider/static/products/StarsenseExplorer.jpg
Binary files differ
diff --git a/src/image-provider/static/products/TheCometBook.jpg b/src/image-provider/static/products/TheCometBook.jpg
new file mode 100644
index 0000000..b9ce4c4
--- /dev/null
+++ b/src/image-provider/static/products/TheCometBook.jpg
Binary files differ