From 3ca2393dec24d1ab26c4160c39c1d192b65e16c0 Mon Sep 17 00:00:00 2001 From: Ramkumar Chinchani Date: Mon, 23 May 2022 03:16:11 +0000 Subject: [PATCH] fix stacker build file to include compatible glibc runtime Signed-off-by: Ramkumar Chinchani --- stacker-conformance.yaml | 2 ++ stacker-zb.yaml | 2 ++ stacker-zxp.yaml | 2 ++ stacker.yaml | 2 ++ 4 files changed, 8 insertions(+) diff --git a/stacker-conformance.yaml b/stacker-conformance.yaml index 8b9111a2..0b1a264f 100644 --- a/stacker-conformance.yaml +++ b/stacker-conformance.yaml @@ -48,6 +48,8 @@ build: cp /stacker/zot-${{OS}}-${{ARCH}} /usr/bin/zot mkdir -p /etc/zot cp /stacker/config.json /etc/zot/config.json + # pie mode binaries need a runtime + apk add --no-cache libc6-compat entrypoint: - /usr/bin/zot volumes: diff --git a/stacker-zb.yaml b/stacker-zb.yaml index 1dec6287..56bd9ada 100644 --- a/stacker-zb.yaml +++ b/stacker-zb.yaml @@ -24,5 +24,7 @@ build: - stacker://build/go/src/github.com/project-zot/zot/bin/zb-${{OS}}-${{ARCH}} run: | cp /stacker/zb-${{OS}}-${{ARCH}} /usr/bin/zb + # pie mode binaries need a runtime + apk add --no-cache libc6-compat entrypoint: - /usr/bin/zb diff --git a/stacker-zxp.yaml b/stacker-zxp.yaml index 14faa898..0cdb07eb 100644 --- a/stacker-zxp.yaml +++ b/stacker-zxp.yaml @@ -45,6 +45,8 @@ build: cp /stacker/zxp-${{OS}}-${{ARCH}} /usr/bin/zxp mkdir -p /etc/zxp cp /stacker/config.json /etc/zxp/config.json + # pie mode binaries need a runtime + apk add --no-cache libc6-compat entrypoint: - /usr/bin/zxp cmd: diff --git a/stacker.yaml b/stacker.yaml index b86fdb00..146fa9ab 100644 --- a/stacker.yaml +++ b/stacker.yaml @@ -46,6 +46,8 @@ build: cp /stacker/zot-${{OS}}-${{ARCH}}${{EXT:}} /usr/bin/zot mkdir -p /etc/zot cp /stacker/config.json /etc/zot/config.json + # pie mode binaries need a runtime + apk add --no-cache libc6-compat entrypoint: - /usr/bin/zot volumes: