Last active
February 5, 2025 19:44
Revisions
-
xuhdev revised this gist
Feb 5, 2025 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ # To build: # # podman build --no-cache -t fishtest . # # To run: # @@ -23,8 +23,8 @@ FROM docker.io/gcc:latest RUN apt-get update && apt-get install python3 RUN addgroup --system --uid 999 fishtester RUN adduser --system --uid 999 fishtester COPY --from=builder --chown=fishtester:fishtester /git/fishtest/ /fishtest/ WORKDIR /fishtest -
xuhdev revised this gist
Feb 4, 2025 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -17,7 +17,7 @@ WORKDIR /git # Don't use # wget -O fishtest.tar.gz https://github.com/official-stockfish/fishtest/archive/master.tar.gz # because there's no checksum. RUN git clone --depth=1 https://github.com/official-stockfish/fishtest.git && rm -rf fishtest/.git FROM docker.io/gcc:latest @@ -33,4 +33,4 @@ WORKDIR /fishtest USER fishtester ENTRYPOINT ["/usr/bin/python3", "worker/worker.py"] CMD [] -
xuhdev revised this gist
Feb 4, 2025 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -16,7 +16,7 @@ WORKDIR /git # Don't use # wget -O fishtest.tar.gz https://github.com/official-stockfish/fishtest/archive/master.tar.gz # because there's no checksum. RUN git clone https://github.com/official-stockfish/fishtest.git && rm -rf fishtest/.git FROM docker.io/gcc:latest @@ -26,7 +26,7 @@ RUN apt-get update && apt-get install python3 RUN addgroup --system --gid 1001 fishtester RUN adduser --system --uid 1001 fishtester COPY --from=builder --chown=fishtester:fishtester /git/fishtest/ /fishtest/ WORKDIR /fishtest # Must ensure fishtester can modify files. Thus we switch user early. -
xuhdev created this gist
Feb 4, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,36 @@ # To build: # # podman build -t fishtest . # # To run: # # podman run -it --rm fishtest <fishtest arguments> # # e.g., # # podman run -it --rm fishtest --concurrency=2 <username> <password> FROM docker.io/alpine/git:latest as builder WORKDIR /git # Don't use # wget -O fishtest.tar.gz https://github.com/official-stockfish/fishtest/archive/master.tar.gz # because # there's no checksum. RUN git clone https://github.com/official-stockfish/fishtest.git && rm -rf fishtest/.git FROM docker.io/gcc:latest RUN apt-get update && apt-get install python3 RUN addgroup --system --gid 1001 fishtester RUN adduser --system --uid 1001 fishtester COPY --from=builder --chown=fishtester:fishtester /git/fishtest/ /fishtest WORKDIR /fishtest # Must ensure fishtester can modify files. Thus we switch user early. USER fishtester ENTRYPOINT ["/usr/bin/python3", "worker/worker.py"] CMD []