Skip to content

Commit 2fbdfbe

Browse files
ION606cjreed121
andauthored
[Feature:Autograding] Add Prolog image (#43)
### 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]>
1 parent e9c2c78 commit 2fbdfbe

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

dockerfiles/prolog/8/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM ubuntu:22.04
2+
3+
# Install necessary packages for SWI-Prolog
4+
RUN apt-get update \
5+
&& apt-get -y install swi-prolog=8.4.2+dfsg-2ubuntu1 --no-install-recommends \
6+
&& rm -rf /var/lib/apt/lists/*
7+
8+
WORKDIR /usr/src/app
9+
10+
CMD ["/bin/bash"]

dockerfiles/prolog/metadata.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"pushLatest": false
3+
}

0 commit comments

Comments
 (0)