Sign inSign up

coldfix/sudoku

By coldfix

•Updated over 5 years ago

Simple sudoku generator webinterface

Image
0

813

coldfix/sudoku repository overview

⁠sudoku-swi

Lightweight Static Web Interface for sudoku generator, visible on sudoku.coldfix.de_.

.. _sudoku.coldfix.de: http://sudoku.coldfix.de⁠

The thing itself isn't really useful, but I had already coded the sudoku generator a while back, so it wasn't much effort to provide a web-interface. This is coded in illegably ugly PHP… shame on me. I am now setting the code free, so you can judge for yourself.

Installation


Build the generator:

.. code-block:: bash

    git clone https://github.com/coldfix/sudoku-swi
    cd sudoku-swi
    apt-get install base-devel boost-dev
    make

Now, serve the ``html/`` folder with CGI enabled. For example, use lighttpd
to serve on http://localhost:3030:

.. code-block:: bash

    apt-get install lighttpd php php-cgi fcgi
    lighttpd -Df lighttpd.conf


Docker
------

Build a docker image from source that runs the site using lighttpd::

    git clone https://github.com/coldfix/sudoku-swi
    cd sudoku-swi
    docker build . -t coldfix/sudoku

Or just pull the latest version from Docker Hub::

    docker pull coldfix/sudoku

And run the site as follows::

    docker run --rm -p 3000:3000 --cap-drop=all coldfix/sudoku

Tag summary

Content type

Image

Digest

Size

10.8 MB

Last updated

over 5 years ago

docker pull coldfix/sudoku