Git Product home page Git Product logo

docker-shogigui's Introduction

Docker ShogiGUI + Yaneuraou

This repository aims at easily bringing ShogiGUI + YaneuraOu to Linux.

It is centered around a helper script (named docker-shogigui) to do all the dirty work for you (building / running the docker image, with install / setup of shogiGUI, compilation of YaneuraOu, configuration with NNUE eval functions, and much more...)

The default configuration file provided sets the following options :

  • English language
  • Set up japanese fonts to look better
  • Multiple engines configured (YaneuraOu + elmo / suisho / orqha-1018)
  • Disable sound (see "Troubleshooting" below)
  • Allow the usage of simplified pieces (see "Simplified pieces" below)

Pre-requesites

You need to install docker so that it is controllable by your desktop user.

Doing so is outside the scope of this repository, though.

Building the image

./docker-shogigui --build

This will also automatically select the best CPU flag to use to compile YaneuraOu.

Optional : Remove the builder image

./docker-shogigui --cleanup

Note that doing so will save space, but building the image again will take longer.

Running ShogiGUI inside a container

./docker-shogigui --run

That simple.

Load/Save games

If you want to load / save game files, you can type :

./docker-shogigui --run -g $HOME/somedir

This directory will be accessible at /shogi/games inside the container

Update settings.xml

Along the way, on this repository engines may be added / replaced / enhanced.

To keep up with those, you have to manually run (after having built the latest image) :

./docker-shogigui --update-settings

This is non-destructive, as it will only add missing engines to the settings.xml file.

And more...

For all the available commands, type :

./docker-shogigui --help

Simplified pieces

To use the simplified pieces embedded in this repository, you can go to Tools>Options>Design and check Image/Piece.

Troubleshooting

Could not open display (X-Server required. Check your DISPLAY environment variable)

This should not happen if you use --user $UID:$UID when running the container.

To circumvent the issue you can run :

xhost +local:

Known bugs

  • If sound is activated in ShogiGUI, every piece move will cap a core to 100% usage

docker-shogigui's People

Contributors

jruffet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ianfab quisette

docker-shogigui's Issues

404 not found when running apt-get update in build

[+] Auto selected CPU arch : AVX2
[+] Building docker image with tag : shogigui0.0.7.23:yaneuraou6.00-AVX2

Sending build context to Docker daemon  381.4kB
Step 1/36 : ARG SHOGIGUI_VERSION=0.0.7.23
Step 2/36 : ARG YANEURAOU_VERSION=6.00
Step 3/36 : ARG YANEURAOU_TARGET_CPU=AVX2
Step 4/36 : ARG NPROC=4
Step 5/36 : ARG ELMO_GDRIVE_ID="1qhutTzaog4pHqh0OPAhJuf8mCwPAl5r7"
Step 6/36 : FROM ubuntu:19.10 AS build
 ---> 2f6c85efea61
Step 7/36 : LABEL app=shogigui
 ---> Using cache
 ---> f0b23c4977c4
Step 8/36 : LABEL stage=build
 ---> Using cache
 ---> 170b45c361ab
Step 9/36 : RUN apt-get update &&     apt-get install -y     clang     make     curl     unzip     p7zip-full     python3-pip     && rm -rf /var/lib/apt/lists/*
 ---> Running in 60f3ec84e7e8
Ign:1 http://security.ubuntu.com/ubuntu eoan-security InRelease
Ign:2 http://archive.ubuntu.com/ubuntu eoan InRelease
Err:3 http://security.ubuntu.com/ubuntu eoan-security Release
  404  Not Found [IP: 91.189.88.142 80]
Ign:4 http://archive.ubuntu.com/ubuntu eoan-updates InRelease
Ign:5 http://archive.ubuntu.com/ubuntu eoan-backports InRelease
Err:6 http://archive.ubuntu.com/ubuntu eoan Release
  404  Not Found [IP: 91.189.88.142 80]
Err:7 http://archive.ubuntu.com/ubuntu eoan-updates Release
  404  Not Found [IP: 91.189.88.142 80]
Err:8 http://archive.ubuntu.com/ubuntu eoan-backports Release
  404  Not Found [IP: 91.189.88.142 80]
Reading package lists...
E: The repository 'http://security.ubuntu.com/ubuntu eoan-security Release' does not have a Release file.
E: The repository 'http://archive.ubuntu.com/ubuntu eoan Release' does not have a Release file.
E: The repository 'http://archive.ubuntu.com/ubuntu eoan-updates Release' does not have a Release file.
E: The repository 'http://archive.ubuntu.com/ubuntu eoan-backports Release' does not have a Release file.
The command '/bin/sh -c apt-get update &&     apt-get install -y     clang     make     curl     unzip     p7zip-full     python3-pip     && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.