Docker container to install and run Logtalk with SWI Prolog backend
You can pull image from docker hub.
$ docker pull koryonik/logtalk-swi
Or you can manually build image by below commands :
$ git clone koryonik/docker-logtalk3-swi
$ cd docker-logtalk3-swi
$ ./build.sh
$ docker run --rm -i -t koryonik/logtalk-swi
Logtalk 3.2.1
...
Welcome to SWI-Prolog (Multi-threaded, 64 bits, Version 7.2.3)
...
For help, use ?- help(Topic). or ?- apropos(Word).
?-
$ cd my/source
$ docker run --rm -i -t -v $(pwd):/source koryonik/logtalk-swi -f hello_world.lgt
Hello World !
$ docker run --rm -i -t -v $(pwd):/source --entrypoint bash koryonik/logtalk-swi
root@2c5f42d4aae5:/source# swilgt
Logtalk 3.2.1
?-