diff --git a/docker-compose.yaml b/docker-compose.yaml index 0a321a4..67e1253 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -9,13 +9,11 @@ services: - 6969:6969 volumes: - ./data/piston:/piston - - ./repo:/repo tmpfs: - /piston/jobs:exec - piston_fs_repo: #Temporary solution until CI works + piston_fs_repo: # Local testing of packages build: repo - command: ['typescript-4.2.3'] # Only build typescript + command: ['dart-2.12.1'] # Only build dart volumes: - - ./repo:/piston/repo - - ./packages:/piston/packages \ No newline at end of file + - .:/piston \ No newline at end of file diff --git a/readme.md b/readme.md index 9d1fb11..32f7dd9 100644 --- a/readme.md +++ b/readme.md @@ -253,6 +253,49 @@ Content-Type: application/json
+# Supported Languages +`awk`, +`bash`, +`brainfuck`, +`c`, +`cpp`, +`clojure`, +`crystal`, +`csharp`, +`d`, +`dash`, +`deno`, +`elixir`, +`emacs`, +`elisp`, +`go`, +`haskell`, +`java`, +`jelly`, +`julia`, +`kotlin`, +`lisp`, +`lolcode`, +`lua`, +`nasm`, +`nasm64`, +`nim`, +`node`, +`osabie`, +`paradoc`, +`perl`, +`php`, +`python2`, +`python3`, +`ruby`, +`rust`, +`scala`, +`swift`, +`typescript`, +`zig`, + +
+ # Principle of Operation Piston uses Docker as the primary mechanism for sandboxing. There is an API within the container written in Node diff --git a/repo/Dockerfile b/repo/Dockerfile index a4fcf0a..debbd0b 100644 --- a/repo/Dockerfile +++ b/repo/Dockerfile @@ -2,7 +2,8 @@ FROM debian:buster-slim RUN apt-get update && apt-get install -y unzip autoconf build-essential libssl-dev pkg-config zlib1g-dev libargon2-dev libsodium-dev libcurl4-openssl-dev sqlite3 libsqlite3-dev libonig-dev libxml2 libxml2-dev bc curl git linux-headers-amd64 perl xz-utils python3 python3-pip gnupg jq zlib1g-dev cmake cmake-doc extra-cmake-modules build-essential gcc binutils bash coreutils util-linux pciutils usbutils coreutils binutils findutils grep libncurses5-dev libncursesw5-dev python3-pip libgmp-dev libmpfr-dev python2 && \ ln -sf /bin/bash /bin/sh && \ - rm -rf /var/lib/apt/lists/* + rm -rf /var/lib/apt/lists/* && \ + update-alternatives --install /usr/bin/python python /usr/bin/python3.7 2 ADD entrypoint.sh mkindex.sh /