Skip to content

Commit

Permalink
[Feature:Autograding] Add Prolog image (#43)
Browse files Browse the repository at this point in the history
### Please check if the PR fulfills these requirements:

* [x] Tests for the changes have been added/updated (if possible)
* [x] Documentation has been updated/added if relevant

### What is the current behavior?
<!-- List issue if it fixes/closes/implements one using the "Fixes
#<number>" or "Closes #<number>" syntax -->
none

### What is the new behavior?
we can now run prolog files

### Other information?
<!-- Is this a breaking change? -->
<!-- How did you test -->
this is not a breaking change and I tested it using:
```sh
docker build -t prolog-environment .
docker run -it prolog-environment
  > swipl
      > ?- write('Hello, Prolog!'), nl.
      > ?- halt.
```

---------

Co-authored-by: Chris Reed <[email protected]>
  • Loading branch information
ION606 and cjreed121 authored Sep 1, 2024
1 parent e9c2c78 commit 2fbdfbe
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions dockerfiles/prolog/8/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM ubuntu:22.04

# Install necessary packages for SWI-Prolog
RUN apt-get update \
&& apt-get -y install swi-prolog=8.4.2+dfsg-2ubuntu1 --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /usr/src/app

CMD ["/bin/bash"]
3 changes: 3 additions & 0 deletions dockerfiles/prolog/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"pushLatest": false
}

0 comments on commit 2fbdfbe

Please sign in to comment.