Skip to content

kdrakon/docker-clingo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

docker-clingo

A Docker image for the Potassco clingo software. Try out some Answer Set Programming using one of the most popular solvers available. Learn more about Potassco here: https://potassco.github.io/

Docker

Pull the latest image

docker pull kdrakon/clingo

Build the solver directly from source (https://github.com/potassco/clingo)

Check out this repo and run: docker build -t clingo .

Run clingo from Docker

docker run -it --rm -v ~/docker-clingo:/tmp kdrakon/clingo:latest clingo -n 2 /tmp/examples/nonmontonic

This mounts the example file from this repo into /tmp. Clingo is then executed to solve at most 2 models. See the examples section for more.

To play around with clingo and the rest of the suite of tools, just run:

docker run -it --rm kdrakon/clingo:latest bash

Binaries for clingo, gringo (grounder), and clasp (solver) are available on the PATH so that they can be executed anywhere on the command line.

About

Docker image for the Potassco clingo Answer Set Programming solver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published