move runc version to a separate file for easier consumption

This moves the runc version to build to scripts/setup/runc-version,
which makes it easier for packagers to find the default version
to use.

The RUNC_VERSION environment variable can still be used to override
the version, which can be used (e.g.) to test against different versions
in our CI.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2021-03-10 13:59:17 +01:00
parent 8325ba5d36
commit 79a51cd16a
4 changed files with 10 additions and 7 deletions

View File

@@ -36,7 +36,7 @@ RUN apt-get update && apt-get install -y \
libseccomp-dev \
--no-install-recommends
COPY script/setup/install-runc install-runc
COPY script/setup/runc-version script/setup/install-runc ./
# Allow overriding the version of runc to install through build-args
ARG RUNC_VERSION
ARG GOPROXY=direct