From bbb8dd9646bd5caa631a0d528dbf7d39051b9e68 Mon Sep 17 00:00:00 2001 From: Manuel Date: Wed, 12 May 2021 07:47:58 +0200 Subject: [PATCH 1/3] Add lolcode image --- languages/lolcode/Dockerfile | 15 +++++++++++++++ languages/lolcode/run.sh | 2 ++ 2 files changed, 17 insertions(+) create mode 100644 languages/lolcode/Dockerfile create mode 100644 languages/lolcode/run.sh diff --git a/languages/lolcode/Dockerfile b/languages/lolcode/Dockerfile new file mode 100644 index 0000000..9d5897a --- /dev/null +++ b/languages/lolcode/Dockerfile @@ -0,0 +1,15 @@ +FROM alpine as build + +RUN apk add --no-cache build-base git cmake + +WORKDIR /tmp/lci +RUN git clone https://github.com/justinmeza/lci.git . + +RUN cmake . && make + + +FROM alpine +LABEL author="SunRed" + +COPY --from=build /tmp/lci/lci /usr/local/bin +COPY run.sh /var/run/ diff --git a/languages/lolcode/run.sh b/languages/lolcode/run.sh new file mode 100644 index 0000000..82fcf02 --- /dev/null +++ b/languages/lolcode/run.sh @@ -0,0 +1,2 @@ +cat > program.lol +lci program.lol From 50e1a663c829abd93a1a9da778c4ab9ce1fafc05 Mon Sep 17 00:00:00 2001 From: Manuel Date: Wed, 12 May 2021 07:48:10 +0200 Subject: [PATCH 2/3] Add emojicode image --- languages/emojicode/Dockerfile | 57 ++++++++++++++++++++++++++++++++++ languages/emojicode/run.sh | 2 ++ 2 files changed, 59 insertions(+) create mode 100644 languages/emojicode/Dockerfile create mode 100644 languages/emojicode/run.sh diff --git a/languages/emojicode/Dockerfile b/languages/emojicode/Dockerfile new file mode 100644 index 0000000..818bc71 --- /dev/null +++ b/languages/emojicode/Dockerfile @@ -0,0 +1,57 @@ +FROM debian:stable-slim as build + +ENV CC clang-8 +ENV CXX clang++-8 +ENV DEBIAN_FRONTEND=nontinteractive +ENV PYTHONIOENCODING utf8 + +RUN \ + apt-get update && \ + apt-get install -y \ + gnupg \ + wget && \ + echo "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-8 main" >> /etc/apt/sources.list && \ + echo "deb-src http://apt.llvm.org/bionic/ llvm-toolchain-bionic-8 main" >> /etc/apt/sources.list && \ + wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|apt-key add - && \ + apt-get update && \ + apt-get install -y \ + clang-8 \ + cmake \ + libstdc++-8-dev \ + libclang1-8 \ + libclang-8-dev \ + libclang-common-8-dev \ + libfuzzer-8-dev \ + libllvm8 \ + libncurses-dev \ + libz-dev \ + llvm-8 \ + llvm-8-dev \ + llvm-runtime \ + ninja-build \ + python3 \ + rsync \ + git && \ + rm -rf /var/lib/apt/lists/* && \ + mkdir /tmp/emojicode/ + +WORKDIR /tmp/emojicode/ +RUN git clone https://github.com/emojicode/emojicode.git . +RUN cmake . -GNinja && \ + ninja && \ + ninja magicinstall + + +FROM debian:stable-slim +LABEL author="SunRed" + +ENV CXX=g++ + +RUN apt-get update && \ + apt-get install -y ${CXX} && \ + apt-get autoremove -y && \ + apt-get autoclean -y + +COPY --from=build /usr/local/bin /usr/local/bin +COPY --from=build /usr/local/EmojicodePackages /usr/local/EmojicodePackages +COPY run.sh /var/run/ diff --git a/languages/emojicode/run.sh b/languages/emojicode/run.sh new file mode 100644 index 0000000..26188a7 --- /dev/null +++ b/languages/emojicode/run.sh @@ -0,0 +1,2 @@ +cat > program.emojic +emojicodec program.emojic -o program && ./program From 2a9afa5b25b250d6c413a45bf9b5010987afd905 Mon Sep 17 00:00:00 2001 From: Manuel Date: Wed, 12 May 2021 07:48:28 +0200 Subject: [PATCH 3/3] Add ArnoldC image --- languages/arnoldc/Dockerfile | 9 +++++++++ languages/arnoldc/run.sh | 2 ++ 2 files changed, 11 insertions(+) create mode 100644 languages/arnoldc/Dockerfile create mode 100644 languages/arnoldc/run.sh diff --git a/languages/arnoldc/Dockerfile b/languages/arnoldc/Dockerfile new file mode 100644 index 0000000..214bfc5 --- /dev/null +++ b/languages/arnoldc/Dockerfile @@ -0,0 +1,9 @@ +FROM openjdk:17-alpine +LABEL author="SunRed" + +RUN apk add --no-cache curl && \ + curl -O http://lhartikk.github.io/ArnoldC.jar && \ + mv ArnoldC.jar /var/run && \ + apk del --no-cache curl + +COPY run.sh /var/run/ diff --git a/languages/arnoldc/run.sh b/languages/arnoldc/run.sh new file mode 100644 index 0000000..cdf141f --- /dev/null +++ b/languages/arnoldc/run.sh @@ -0,0 +1,2 @@ +cat > program.arnoldc +java -jar /var/run/ArnoldC.jar program.arnoldc && java program