Skip to content

Commit

Permalink
Add Dockerfile and docker-compose and build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
David Ervideira committed Apr 29, 2020
1 parent c85d321 commit 470698d
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM ubuntu:xenial

ENV LC0_VERSION=0.23
ENV CC=clang-6.0
ENV CXX=clang++-6.0

WORKDIR /lc0
RUN apt update -y && apt upgrade -y
RUN apt install -y python3 python3-pip
RUN apt install -y git libopenblas-dev clang-6.0 ninja-build pkg-config
RUN pip3 install meson ninja
CMD ["./build.sh" ]
12 changes: 12 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
LC0_VERSION=0.23
git clone -b release/$LC0_VERSION --recurse-submodules https://github.com/LeelaChessZero/lc0.git
docker-compose build
docker-compose up
./lc0/build/release/chessboard_test
./lc0/build/release/encoder_test
./lc0/build/release/hashcat_test
./lc0/build/release/optionsparser_test
./lc0/build/release/position_test
./lc0/build/release/syzygy_test
tar -czvf ./lc0-$LC0_VERSION.tar.gz ./lc0/build/release

7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: '3'
services:
lc0-build:
build: .
image: lc0-build:0.23
volumes:
- ./lc0:/lc0

0 comments on commit 470698d

Please sign in to comment.