Added IMDS emulator container.
This commit is contained in:
1 parent
f7466a0ac2
commit
b5cb5f0952
6 files changed
+290
-47
No files matched your search
@@ -1,25 +0,0 @@
|
||||
FROM ubuntu:18.04 AS grte
|
||||
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends build-essential gawk bison python3 git texinfo ca-certificates \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# GRTE v5 source, Google's glibc 2.27
|
||||
RUN git clone --depth 1 https://third-party-mirror.googlesource.com/GRTEv5 /src
|
||||
|
||||
# Build the libraries into the library directory searched by the GRTE v5 loader
|
||||
WORKDIR /build
|
||||
RUN printf 'slibdir=/usr/grte/v5/lib64\nrtlddir=/usr/grte/v5/lib64\n' > configparms \
|
||||
&& /src/google3/third_party/grte/v5_src/glibc-2.27/configure \
|
||||
--prefix=/usr/grte/v5 \
|
||||
--libdir=/usr/grte/v5/lib64 \
|
||||
--disable-werror \
|
||||
--enable-kernel=3.2 \
|
||||
&& make -j"$(nproc)" \
|
||||
&& make install DESTDIR=/out
|
||||
|
||||
FROM gcr.io/cloud-ingest/tsop-agent:latest
|
||||
|
||||
# GRTE v5 shared libraries matching the GRTE v5 glibc the launcher is statically linked with.
|
||||
COPY --from=grte /out/usr/grte/v5/lib64/ /usr/grte/v5/lib64/
|
||||
+16
-5
@@ -1,14 +1,25 @@
|
||||
services:
|
||||
sts-agent:
|
||||
build: .
|
||||
ulimits:
|
||||
memlock: 64000000
|
||||
imds-emulator:
|
||||
build: ../imds-emulator
|
||||
volumes:
|
||||
- /mnt/ext-storage:/mnt/ext-storage:ro
|
||||
- /etc/sts-agent:/etc/sts-agent:ro
|
||||
environment:
|
||||
GOOGLE_APPLICATION_CREDENTIALS: /etc/sts-agent/cred.json
|
||||
GOOGLE_API_CERTIFICATE_CONFIG: /etc/sts-agent/certificate_config.json
|
||||
PROJECT_ID: ${PROJECT_ID}
|
||||
PROJECT_NUMBER: ${PROJECT_NUMBER}
|
||||
|
||||
sts-agent:
|
||||
image: gcr.io/cloud-ingest/tsop-agent:latest
|
||||
depends_on:
|
||||
- imds-emulator
|
||||
ulimits:
|
||||
memlock: 64000000
|
||||
volumes:
|
||||
- /mnt/ext-storage:/mnt/ext-storage:ro
|
||||
environment:
|
||||
GCE_METADATA_HOST: imds-emulator
|
||||
GCE_METADATA_IP: imds-emulator
|
||||
command:
|
||||
- --project-id=${PROJECT_ID}
|
||||
- --hostname=${HOSTNAME}
|
||||
|
||||
Reference in new issue
Block a user