Skip to content

Commit

Permalink
Add Docker images for arm, arm64, ppc64le and s390x for OpenTracing (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome committed Sep 16, 2021
1 parent 32f968d commit 9bd0381
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Expand Up @@ -257,7 +257,7 @@ jobs:
platforms: linux/arm64,linux/amd64
- type: opentracing
suffix: '-ot'
platforms: linux/amd64
platforms: linux/arm,linux/arm64,linux/amd64,linux/ppc64le,linux/s390x
steps:
- name: Checkout Repository
uses: actions/checkout@v2
Expand Down
7 changes: 2 additions & 5 deletions build/Dockerfile
Expand Up @@ -32,7 +32,7 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/apk/cert.pem,mode=0644 \
--mount=type=secret,id=nginx-repo.key,dst=/etc/apk/cert.key,mode=0644 \
wget -nv -O /etc/apk/keys/nginx_signing.rsa.pub https://cs.nginx.com/static/keys/nginx_signing.rsa.pub \
&& printf "%s\n" "https://pkgs.nginx.com/plus/alpine/v$(grep -E -o '^[0-9]+\.[0-9]+' /etc/alpine-release)/main" >> /etc/apk/repositories \
&& apk add --no-cache libcap nginx-plus~${NGINX_PLUS_VERSION#r} nginx-plus-module-njs~${NGINX_PLUS_VERSION#r}
&& apk add --no-cache libcap nginx-plus~${NGINX_PLUS_VERSION#r} nginx-plus-module-njs~${NGINX_PLUS_VERSION#r}


############################################# Base image for Debian with NGINX Plus #############################################
Expand Down Expand Up @@ -165,9 +165,6 @@ FROM opentracing/nginx-opentracing:nginx-1.21.3 as opentracing-lib
############################################# Build image for Opentracing #############################################
FROM debian as opentracing

RUN apt-get update && apt-get install --no-install-recommends --no-install-suggests -y libcurl3-gnutls \
&& rm -rf /var/lib/apt/lists/*

RUN --mount=type=bind,from=opentracing-lib,target=/tmp/ cp -av /tmp/usr/local/lib/libopentracing.so* /tmp/usr/local/lib/libjaegertracing*so* /tmp/usr/local/lib/libzipkin*so* /tmp/usr/local/lib/libdd*so* /tmp/usr/local/lib/libyaml*so* /usr/local/lib/ \
&& cp -av /tmp/usr/lib/nginx/modules/ngx_http_opentracing_module.so /usr/lib/nginx/modules/ \
&& ldconfig
Expand All @@ -180,7 +177,7 @@ ARG NGINX_PLUS_VERSION
RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode=0644 \
--mount=type=secret,id=nginx-repo.key,dst=/etc/ssl/nginx/nginx-repo.key,mode=0644 \
apt-get update \
&& apt-get install --no-install-recommends --no-install-suggests -y libcurl3-gnutls nginx-plus-module-opentracing-${NGINX_PLUS_VERSION} \
&& apt-get install --no-install-recommends --no-install-suggests -y nginx-plus-module-opentracing-${NGINX_PLUS_VERSION} \
&& rm -rf /var/lib/apt/lists/*

RUN --mount=type=bind,from=opentracing-lib,target=/tmp/ cp -av /tmp/usr/local/lib/libjaegertracing*so* /tmp/usr/local/lib/libzipkin*so* /tmp/usr/local/lib/libdd*so* /tmp/usr/local/lib/libyaml*so* /usr/local/lib/ \
Expand Down
2 changes: 1 addition & 1 deletion docs/content/technical-specifications.md
Expand Up @@ -28,7 +28,7 @@ All images include NGINX 1.21.1.
| ---| ---| ---| --- | --- |
|Alpine-based image | ``nginx:1.21.1-alpine``, which is based on ``alpine:3.14`` | | ``nginx/nginx-ingress:1.12.1-alpine`` | arm/v7, arm64, amd64, ppc64le, s390x |
|Debian-based image | ``nginx:1.21.1``, which is based on ``debian:buster-slim`` | | ``nginx/nginx-ingress:1.12.1`` | arm/v7, arm64, amd64, ppc64le, s390x |
|Debian-based image with Opentracing | ``nginx:1.21.1``, which is based on ``debian:buster-slim`` | NGINX OpenTracing module, OpenTracing library, OpenTracing tracers for Jaeger, Zipkin and Datadog | ``nginx/nginx-ingress:1.12.1-ot`` | amd64 |
|Debian-based image with Opentracing | ``nginx:1.21.1``, which is based on ``debian:buster-slim`` | NGINX OpenTracing module, OpenTracing library, OpenTracing tracers for Jaeger, Zipkin and Datadog | ``nginx/nginx-ingress:1.12.1-ot`` | arm/v7, arm64, amd64, ppc64le, s390x |
|Ubi-based image | ``redhat/ubi8-minimal`` | | ``nginx/nginx-ingress:1.12.1-ubi`` | arm64, amd64 |
{{% /table %}}

Expand Down

0 comments on commit 9bd0381

Please sign in to comment.