Compare commits

..

No commits in common. "f6a4e67d5fa851b6fd424d19b13ffb0a7316c3a3" and "0ee500353360a8b043c16fc1a4d7f0c47a810d25" have entirely different histories.

13 changed files with 11 additions and 85 deletions

View File

@ -94,7 +94,7 @@ jobs:
docker run --network container:api appropriate/curl -s --retry 10 --retry-connrefused http://localhost:2000/runtimes docker run --network container:api appropriate/curl -s --retry 10 --retry-connrefused http://localhost:2000/runtimes
echo Waiting for Index to start.. echo Waiting for Index to start..
docker run --network container:piston_fs_repo appropriate/curl -s --retry 200 --retry-connrefused http://localhost:8000/index docker run --network container:piston_fs_repo appropriate/curl -s --retry 30 --retry-connrefused http://localhost:8000/index
echo Adjusting index echo Adjusting index
sed -i 's/piston_fs_repo/localhost/g' repo/index sed -i 's/piston_fs_repo/localhost/g' repo/index

View File

@ -1,13 +0,0 @@
#!/bin/bash
# Groovy depends on JDK8+
mkdir -p java
cd java
curl "https://download.java.net/java/GA/jdk15.0.2/0d1cfde4252546c6931946de8db48ee2/7/GPL/openjdk-15.0.2_linux-x64_bin.tar.gz" -o java.tar.gz
tar xzf java.tar.gz --strip-components=1
rm java.tar.gz
cd ..
curl -L "https://dl.bintray.com/groovy/maven/apache-groovy-binary-3.0.7.zip" -o groovy.zip
unzip -q groovy.zip
rm groovy.zip

View File

@ -1,5 +0,0 @@
#!/bin/bash
# Groovy requires JAVA_HOME to be set
export JAVA_HOME=$PWD/java
export PATH=$PWD/groovy-3.0.7/bin:$PATH

View File

@ -1,5 +0,0 @@
{
"language": "groovy",
"version": "3.0.7",
"aliases": ["groovy", "gvy"]
}

View File

@ -1,3 +0,0 @@
#!/bin/bash
groovy "$@"

View File

@ -1 +0,0 @@
println 'OK'

View File

@ -1,17 +0,0 @@
#!/bin/bash
PREFIX=$(realpath $(dirname $0))
mkdir -p build
cd build
curl -L "https://github.com/ocaml/ocaml/archive/4.12.0.tar.gz" -o ocaml.tar.gz
tar xzf ocaml.tar.gz --strip-components=1
rm ocaml.tar.gz
./configure --prefix="$PREFIX"
make -j$(nproc)
make install -j$(nproc)
cd ..
rm -rf build

View File

@ -1,3 +0,0 @@
#!/bin/bash
ocamlc -o out "$@"

View File

@ -1,3 +0,0 @@
#!/bin/bash
export PATH=$PWD/bin:$PATH

View File

@ -1,5 +0,0 @@
{
"language": "ocaml",
"version": "4.12.0",
"aliases": ["ocaml", "ml"]
}

View File

@ -1,4 +0,0 @@
#!/bin/bash
shift
./out "$@"

View File

@ -1 +0,0 @@
print_string "OK\n";

View File

@ -120,7 +120,7 @@ cd cli && npm i && cd -
echo "$GITHUB_TOKEN" | docker login https://docker.pkg.github.com -u "$GITHUB_USERNAME" --password-stdin echo "$GITHUB_TOKEN" | docker login https://docker.pkg.github.com -u "$GITHUB_USERNAME" --password-stdin
# Change out the $GITHUB_TOKEN and $GITHUB_USERNAME with appropritate values # Change out the $GITHUB_TOKEN and $GITHUB_USERNAME with appropritate values
docker run -v $PWD:'/piston' --tmpfs /piston/jobs -dit -p 2000:2000 --name piston_api docker.pkg.github.com/engineer-man/piston/api:latest docker run -v $PWD:'/piston' --tmpfs /piston/jobs -dit -p 2000:2000 --privileged --name piston_api docker.pkg.github.com/engineer-man/piston/api:latest
``` ```
<br> <br>
@ -143,13 +143,6 @@ cli/index.js ppman install python 3.9.1
# Run a python script # Run a python script
echo 'print("Hello world!")' > test.py echo 'print("Hello world!")' > test.py
cli/index.js run python 3.9.1 test.py cli/index.js run python 3.9.1 test.py
# Run the script using the latest version
cli/index.js run python '*' test.py
# Run using python 3.x
cli/index.js run python 3.x test.py
``` ```
If you are operating on a remote machine, add the `-u` flag like so: If you are operating on a remote machine, add the `-u` flag like so:
@ -258,23 +251,21 @@ Content-Type: application/json
<br> <br>
# Supported Languages # Supported Languages
`awk`,
`bash`, `bash`,
`brainfuck`, `brainfuck`,
`c`,
`cpp`,
`clojure`, `clojure`,
`coffeescript`,
`cow`,
`crystal`, `crystal`,
`dart`, `csharp`,
`d`,
`dash`, `dash`,
`deno`, `deno`,
`dotnet`,
`elixir`, `elixir`,
`emacs`, `emacs`,
`erlang`, `elisp`,
`gawk`,
`gcc`,
`go`, `go`,
`groovy`,
`haskell`, `haskell`,
`java`, `java`,
`jelly`, `jelly`,
@ -283,26 +274,21 @@ Content-Type: application/json
`lisp`, `lisp`,
`lolcode`, `lolcode`,
`lua`, `lua`,
`mono`,
`nasm`, `nasm`,
`nasm64`,
`nim`, `nim`,
`node`, `node`,
`ocaml`,
`osabie`, `osabie`,
`paradoc`, `paradoc`,
`pascal`,
`perl`, `perl`,
`php`, `php`,
`prolog`, `python2`,
`pure`, `python3`,
`python`,
`rockstar`,
`ruby`, `ruby`,
`rust`, `rust`,
`scala`, `scala`,
`swift`, `swift`,
`typescript`, `typescript`,
`vlang`,
`zig`, `zig`,
<br> <br>