Skip to content

Docker image for the Potassco clingo Answer Set Programming solver

Notifications You must be signed in to change notification settings

bramucas/docker-clingo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 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 .

Specific versions of clingo

Optionally, a specific version of clingo can be built. For example: docker build --build-arg tag_version=v5.4.0 -t clingo .

The specified tag_version must match an existing tag from the clingo github repository. By default, the latest version available in the repository (from the master branch) will be built.

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

Languages

  • Dockerfile 100.0%