Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge changes from ccc-configs to uci-engines #1

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
208,320 changes: 208,320 additions & 0 deletions books/UHO_CCC_95_105.pgn

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions dockers/arasan.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ RUN git clone https://github.com/jdart1/arasan-chess && \
cd arasan-chess && \
git submodule update --init --recursive && \
cd src && \
make -j CC=clang BUILD_TYPE=avx2 profiled
make -j CC=clang BUILD_TYPE=avx2

# Copy the init file and the Networks where they are expected
RUN cp arasan-chess/network/* arasan-chess/bin && \
cp arasan-chess/src/arasan.rc arasan-chess/bin
RUN cp arasan-chess/network/* arasan-chess/bin

CMD [ "./arasan-chess/bin/arasanx-64-avx2" ]
2 changes: 2 additions & 0 deletions dockers/berserk.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ ARG DEBIAN_FRONTEND=noninteractive

RUN apt update && apt-get -y install git make cmake wget curl gcc g++ clang llvm lld

RUN apt update && apt-get -y install jq

# ------------------------------------------------------------------------------

# Force the cache to break if there have been new commits
Expand Down
21 changes: 21 additions & 0 deletions dockers/clarity.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM ubuntu:24.04

ARG DEBIAN_FRONTEND=noninteractive

RUN apt update && apt-get -y install git make cmake wget curl gcc g++ clang llvm lld

# ------------------------------------------------------------------------------

# Force the cache to break if there have been new commits
ADD https://api.github.com/repos/Vast342/Clarity/git/refs/heads/main /.git-hashref

# ------------------------------------------------------------------------------

RUN clang++ --version

# Clone and build from main
RUN git clone --branch main --depth 1 https://github.com/Vast342/Clarity && \
cd Clarity && \
make -j EXE=clarity.bin

CMD [ "./Clarity/clarity.bin" ]
20 changes: 20 additions & 0 deletions dockers/integral.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM ubuntu:22.04

ARG DEBIAN_FRONTEND=noninteractive

RUN apt update && apt-get -y install git make cmake wget curl gcc g++ clang llvm lld

# ------------------------------------------------------------------------------

# Force the cache to break if there have been new commits
ADD https://api.github.com/repos/aronpetko/integral/git/refs/heads/main /.git-hashref

# ------------------------------------------------------------------------------

# Clone and build from main
RUN git clone --branch main --depth 1 https://github.com/aronpetko/integral.git && \
cd integral && \
make native CXX=g++ EXE=integral.bin

CMD [ "./integral/integral.bin" ]

2 changes: 1 addition & 1 deletion dockers/obsidian.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ RUN git clone https://github.com/gab8192/Obsidian && \
cd Obsidian && \
make -j

CMD [ "./Obsidian/Obsidian.elf" ]
CMD [ "./Obsidian/Obsidian" ]
2 changes: 1 addition & 1 deletion dockers/plentychess.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ADD https://api.github.com/repos/Yoshie2000/PlentyChess/git/refs/heads/main /.gi
# ------------------------------------------------------------------------------

# Clone and build from main
RUN git clone https://github.com/Yoshie2000/PlentyChess/ && \
RUN git clone --branch main --depth 1 https://github.com/Yoshie2000/PlentyChess/ && \
cd PlentyChess && \
make -j EXE=PlentyChess

Expand Down
20 changes: 20 additions & 0 deletions dockers/renegade.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM ubuntu:22.04

ARG DEBIAN_FRONTEND=noninteractive

RUN apt update && apt-get -y install git make cmake wget curl gcc g++ clang llvm lld

# ------------------------------------------------------------------------------

# Force the cache to break if there have been new commits
ADD https://api.github.com/repos/pkrisz99/Renegade/git/refs/heads/main /.git-hashref

# ------------------------------------------------------------------------------

# Clone and build from main
RUN git clone --branch main --depth 1 https://github.com/pkrisz99/Renegade && \
cd Renegade/Renegade && \
make -j EXE=renegade.bin

CMD [ "./Renegade/Renegade/renegade.bin" ]

23 changes: 23 additions & 0 deletions dockers/rofchade.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM ubuntu:22.04

ARG DEBIAN_FRONTEND=noninteractive

RUN apt update && apt-get -y install git make cmake wget curl gcc g++ clang llvm lld

RUN apt update && apt-get -y install unzip python3-pip && pip3 install gdown

# ------------------------------------------------------------------------------

# Force the cache to break, using CACHE_BUST = $(date +%s)
ARG CACHE_BUST

# ------------------------------------------------------------------------------

RUN --mount=type=secret,id=ROFCHADE_URL \
gdown $(cat /run/secrets/ROFCHADE_URL) -O rofchade.zip

RUN unzip rofchade.zip && \
mv rofchade/* . && rm -rf rofchade/ rofchade.zip && \
mv rofChadeAVX2 rofchade.bin && chmod +x rofchade.bin

CMD [ "./rofchade.bin" ]
7 changes: 7 additions & 0 deletions dockers/stormphrax.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ ADD https://api.github.com/repos/Ciekce/Stormphrax/git/refs/heads/main /.git-has

# ------------------------------------------------------------------------------

# ------------------------------------------------------------------------------

# Force the cache to break, using CACHE_BUST = $(date +%s)
ARG CACHE_BUST

# ------------------------------------------------------------------------------

# Clone and build from main
RUN git clone https://github.com/Ciekce/Stormphrax && \
cd Stormphrax && \
Expand Down
6 changes: 3 additions & 3 deletions dockers/wasp.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ ARG CACHE_BUST
# ------------------------------------------------------------------------------

# Downloads found at: https://waspchess.stanback.net/wasp_downloads.html
RUN wget https://waspchess.stanback.net/wasp_downloads/Wasp_7.00/Wasp700-linux-avx && \
mv Wasp700-linux-avx Wasp && \
RUN wget https://waspchess.stanback.net/wasp_downloads/Wasp_7.04/Wasp704-linux-avx && \
mv Wasp704-linux-avx Wasp && \
chmod +x Wasp

CMD [ "./Wasp" ]
CMD [ "./Wasp" ]
17 changes: 11 additions & 6 deletions scripts/build_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
'altair' : 352623, 'stormphrax' : 352624, 'stockdory' : 352625, 'equisetum' : 352627,
'obsidian' : 366189, 'midnight' : 372997, 'willow' : 372999, 'akimbo' : 373001,
'plentychess' : 376027, 'minitorch' : 395059, 'minifish' : 395060, 'halogen' : 194321,
'patricia' : 396677,
'patricia' : 396677, 'integral' : 399594, 'clarity' : 399596, 'renegade' : 399598,
'rofchade' : 18526,
}

def gather_secrets():
Expand All @@ -34,6 +35,9 @@ def build_command(args, engine):
else:
base_command = 'DOCKER_BUILDKIT=1 docker build'

if args.verbose:
base_command += ' --progress plain'

secrets = ''
for secret in gather_secrets():
secrets += ' --secret id=%s,src=../secrets/%s' % (secret, secret)
Expand Down Expand Up @@ -90,11 +94,12 @@ def update_version(args, engine):
os.chdir(os.path.dirname(os.path.abspath(__file__)))

p = argparse.ArgumentParser()
p.add_argument('engine', help='Engine Name')
p.add_argument('--dry', help='Print build command only' , action='store_true')
p.add_argument('--skip', help='Skip building entirely' , action='store_true')
p.add_argument('--update', help='Update the CCC server version', action='store_true')
p.add_argument('--sudo', help='Run docker commands with sudo', action='store_true')
p.add_argument('engine', help='Engine Name')
p.add_argument('--dry', help='Print build command only' , action='store_true')
p.add_argument('--skip', help='Skip building entirely' , action='store_true')
p.add_argument('--update', help='Update the CCC server version' , action='store_true')
p.add_argument('--sudo', help='Run docker commands with sudo' , action='store_true')
p.add_argument('--verbose', help='Use plain progress Docker style', action='store_true')
args = p.parse_args()

if args.dry:
Expand Down