From 5bbb24d73f221bc0100731ea1ba5b3d22a1528a3 Mon Sep 17 00:00:00 2001 From: Slawomir Koszewski Date: Mon, 19 Oct 2026 18:03:20 +0200 Subject: [PATCH] Added a Dockerfile to build a custom container. --- docs/storage-transfer.md | 2 +- sts-agent/Dockerfile | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/docs/storage-transfer.md b/docs/storage-transfer.md index cc051b2..04cb991 100644 --- a/docs/storage-transfer.md +++ b/docs/storage-transfer.md @@ -117,7 +117,7 @@ STS_AGENT_POOL=my-agents HOSTNAME=agent-host ``` -The image of Google lacks the shared glibc libraries that the `cryptography` package needs for certificate-based authentication. `sts-agent/Dockerfile` adds the glibc 2.27 libraries of Ubuntu 18.04, the glibc version of the agent launcher. +The image of Google lacks the shared glibc libraries that the `cryptography` package needs for certificate-based authentication. The agent launcher is statically linked with the Google runtime glibc 2.27 (GRTE v5), which loads shared libraries from `/usr/grte/v5/lib64`. `sts-agent/Dockerfile` adds the glibc 2.27 libraries of Ubuntu 18.04 there. Build the image and start the agent: diff --git a/sts-agent/Dockerfile b/sts-agent/Dockerfile index d66d63f..c689ba0 100644 --- a/sts-agent/Dockerfile +++ b/sts-agent/Dockerfile @@ -2,10 +2,8 @@ FROM ubuntu:18.04 AS glibc FROM gcr.io/cloud-ingest/tsop-agent:latest -# Shared glibc 2.27 libraries, matching the glibc of the static launcher, needed by the cryptography binding for certificate-based authentication. -COPY --from=glibc /lib/x86_64-linux-gnu/libc-2.27.so /lib/x86_64-linux-gnu/libc.so.6 -COPY --from=glibc /lib/x86_64-linux-gnu/libm-2.27.so /lib/x86_64-linux-gnu/libm.so.6 -COPY --from=glibc /lib/x86_64-linux-gnu/libpthread-2.27.so /lib/x86_64-linux-gnu/libpthread.so.0 -COPY --from=glibc /lib/x86_64-linux-gnu/ld-2.27.so /lib64/ld-linux-x86-64.so.2 - -ENV LD_LIBRARY_PATH=/lib/x86_64-linux-gnu +# Shared glibc 2.27 libraries in the library directory of the GRTE v5 glibc 2.27 the launcher is statically linked with. +COPY --from=glibc /lib/x86_64-linux-gnu/libc-2.27.so /usr/grte/v5/lib64/libc.so.6 +COPY --from=glibc /lib/x86_64-linux-gnu/libm-2.27.so /usr/grte/v5/lib64/libm.so.6 +COPY --from=glibc /lib/x86_64-linux-gnu/libpthread-2.27.so /usr/grte/v5/lib64/libpthread.so.0 +COPY --from=glibc /lib/x86_64-linux-gnu/ld-2.27.so /usr/grte/v5/lib64/ld-linux-x86-64.so.2