Skip to content

Instantly share code, notes, and snippets.

@austinlparker
Created September 19, 2018 14:50
Show Gist options
  • Save austinlparker/268af0d7cc35081fb450fcf32dcfa732 to your computer and use it in GitHub Desktop.
Save austinlparker/268af0d7cc35081fb450fcf32dcfa732 to your computer and use it in GitHub Desktop.
LightStep + Nginx Dockerfile
FROM ubuntu:18.04
RUN set -x \
# Install package dependencies
&& apt-get update \
&& apt-get install --no-install-recommends --no-install-suggests -y \
wget \
gzip \
gnupg2 \
software-properties-common \
ca-certificates \
# Install NGINX following these instructions
# https://www.nginx.com/resources/wiki/start/topics/tutorials/install/#official-debian-ubuntu-packages
&& wget -O - http://nginx.org/keys/nginx_signing.key | apt-key add - \
&& apt-add-repository "deb http://nginx.org/packages/ubuntu/ bionic nginx" \
&& apt-get update \
&& apt-get install nginx \
# Install nginx-opentracing into NGINX's module directory
&& cd /usr/lib/nginx/modules \
&& wget -O - https://github.com/opentracing-contrib/nginx-opentracing/releases/download/v0.4.0/linux-amd64-nginx-1.14.0-ngx_http_module.so.tgz \
| tar zxf - \
# Install LightStep
&& cd /usr/local/lib \
&& wget -O - https://github.com/lightstep/lightstep-tracer-cpp/releases/download/v0.7.1/linux-amd64-liblightstep_tracer_plugin.so.gz \
| gunzip -c > /usr/local/lib/liblightstep_tracer_plugin.so
RUN ls /usr/local/lib
CMD ["nginx", "-g", "daemon off;"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment