Skip to content

Commit

Permalink
Clarify error if we don't find the container ABI flag
Browse files Browse the repository at this point in the history
It's possible that we're running in the container, but the ABI version
doesn't match.  Make that explicit.

Also note in the Dockerfiles that we shouldn't break container ABI for the
most recent stable release.

For: openslide#173
Signed-off-by: Benjamin Gilbert <[email protected]>
  • Loading branch information
bgilbert committed Nov 1, 2023
1 parent a75e1a7 commit c6863d5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,9 @@ updates() {
probe() {
# Probe the build environment and set up variables
if [ ! -e /etc/openslide-winbuild-builder-v1 ] && [ ! -e /etc/openslide-winbuild-builder-v2 ]; then
echo "Must run inside the builder container. See README.md."
echo "Not running in a compatible builder container. Either build.sh isn't running"
echo "in the container (see instructions in README.md) or the container image is too"
echo "old or too new."
exit 1
fi

Expand Down
2 changes: 2 additions & 0 deletions builder/linux/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Use a Linux distro with an older glibc for maximum compatibility
FROM quay.io/almalinuxorg/almalinux:8
# NOTE: try to keep the current container image compatible with the latest
# stable source release, so people can conveniently build from the source zip
RUN touch /etc/openslide-linux-builder-v1
RUN dnf -y upgrade && \
dnf -y install 'dnf-command(config-manager)' epel-release && \
Expand Down
2 changes: 2 additions & 0 deletions builder/windows/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM docker.io/gentoo/stage3:latest
# NOTE: try to keep the current container image compatible with the latest
# stable source release, so people can conveniently build from the source zip
RUN touch /etc/openslide-winbuild-builder-v2
RUN echo 'FEATURES="-sandbox -usersandbox -ipc-sandbox -network-sandbox -pid-sandbox"' >> /etc/portage/make.conf
COPY package.accept_keywords /etc/portage/package.accept_keywords/cross
Expand Down

0 comments on commit c6863d5

Please sign in to comment.