From 6f723bb79301a4af3aeab6aac54e9ef2651913f1 Mon Sep 17 00:00:00 2001 From: Paliak <91493239+Paliak@users.noreply.github.com> Date: Sat, 17 Aug 2024 11:06:57 +0200 Subject: [PATCH] FIX: pin luajit by hash instead of tag --- Dockerfile | 4 ++-- docker-compose.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0ee0e923d3..cdecaff34a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ RUN wget https://luarocks.org/releases/luarocks-3.7.0.tar.gz && tar xf luarocks- RUN cd luarocks-3.7.0 && ./configure && make FROM buildbase AS luajit -RUN git clone --depth 1 --branch v2.1.0-beta3 https://github.com/LuaJIT/LuaJIT +RUN git clone https://github.com/LuaJIT/LuaJIT && cd LuaJIT && git checkout c7db8255e1eb59f933fac7bc9322f0e4f8ddc6e6 RUN cd LuaJIT && make FROM buildbase AS emmyluadebugger @@ -34,6 +34,6 @@ RUN luarocks install busted 2.2.0-1;\ luarocks install luacov-coveralls 0.2.3-1 RUN --mount=type=cache,from=emmyluadebugger,source=/opt,target=/opt make -C /opt/EmmyLuaDebugger/build/ install -RUN --mount=type=cache,from=luajit,source=/opt,target=/opt make -C /opt/LuaJIT/ install && ln -sf /usr/local/bin/luajit-2.1.0-beta3 /usr/local/bin/luajit +RUN --mount=type=cache,from=luajit,source=/opt,target=/opt make -C /opt/LuaJIT/ install CMD [ "echo", "This container is meant to be ran with docker compose. See: https://github.com/PathOfBuildingCommunity/PathOfBuilding/blob/dev/CONTRIBUTING.md" ] diff --git a/docker-compose.yml b/docker-compose.yml index 0268d093bc..72730f58bb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,10 +1,10 @@ services: busted-tests: #build: . - image: ghcr.io/paliak/busted-tests:latest + image: ghcr.io/paliak/pathofbuilding-tests:latest environment: HOME: /tmp - container_name: busted-tests + container_name: pathofbuilding-tests user: nobody:nobody command: busted --lua=luajit security_opt: