From 08f7b31cbf7de91fa8ed8508df41691f1f23f8e3 Mon Sep 17 00:00:00 2001 From: Trevor Fitzgerald Date: Sat, 21 Dec 2024 09:30:28 -0500 Subject: [PATCH] Compile bbpPairings with alpine image (#133) * Compile bbpPairings with alpine image for compatibility when running the exe from the lila container fixes #132 --- docker/bbpPairings.Dockerfile | 9 ++------- lila-docker | 3 ++- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/docker/bbpPairings.Dockerfile b/docker/bbpPairings.Dockerfile index b5a29c19..1e082fc7 100644 --- a/docker/bbpPairings.Dockerfile +++ b/docker/bbpPairings.Dockerfile @@ -1,10 +1,5 @@ -FROM ubuntu:focal +FROM sbtscala/scala-sbt:eclipse-temurin-alpine-21.0.2_13_1.10.4_3.5.2 -RUN apt-get update && \ - apt-get install --yes \ - g++ \ - git \ - make \ - && apt-get clean +RUN apk add build-base WORKDIR /mnt diff --git a/lila-docker b/lila-docker index 7b70b65c..d8d38eb9 100755 --- a/lila-docker +++ b/lila-docker @@ -139,7 +139,8 @@ setup_bbppairings() { docker run --rm -v ./repos/bbpPairings:/mnt bbppairings make ## verify it compiled - ./repos/bbpPairings/bbpPairings.exe + docker compose run --rm --entrypoint="/opt/bbpPairings/bbpPairings.exe" lila \ + && echo "✅ bbpPairings compiled successfully" } reset_database() {