Skip to content

Commit

Permalink
FIX: pin luajit by hash instead of tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Paliak committed Aug 17, 2024
1 parent 44faa36 commit 6f723bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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" ]
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 6f723bb

Please sign in to comment.