Skip to content

Commit cb3b035

Browse files
jupblbampagent
andcommitted
Add validation for SCIP_RUBY_VERSION build arg in Dockerfile.base
Amp-Thread-ID: https://ampcode.com/threads/T-439e5735-e594-4e46-a41a-ca91575956a7 Co-authored-by: Amp <amp@ampcode.com>
1 parent d26abb6 commit cb3b035

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎Dockerfile.base‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ FROM --platform=linux/amd64 \
66
# Version argument to be passed during build
77
ARG SCIP_RUBY_VERSION
88

9+
# Fail if SCIP_RUBY_VERSION is not provided
10+
RUN test -n "${SCIP_RUBY_VERSION}" || \
11+
(echo "ERROR: SCIP_RUBY_VERSION build arg is required" && exit 1)
12+
913
# gcompat is a glibc-musl compat library (scip-ruby links in glibc)
1014
# Other deps are to help build C extensions in gems.
1115
RUN apk add --no-cache \

0 commit comments

Comments
 (0)