Compare commits
6 Commits
0ee5003533
...
f6a4e67d5f
Author | SHA1 | Date |
---|---|---|
Thomas | f6a4e67d5f | |
Thomas | 1a04b5f889 | |
Thomas | e6d39d4a7f | |
Thomas | 2d446c33e6 | |
Dan Vargas | 7cbfdd9f4c | |
Dan Vargas | ba8a0bc377 |
|
@ -94,7 +94,7 @@ jobs:
|
|||
docker run --network container:api appropriate/curl -s --retry 10 --retry-connrefused http://localhost:2000/runtimes
|
||||
|
||||
echo Waiting for Index to start..
|
||||
docker run --network container:piston_fs_repo appropriate/curl -s --retry 30 --retry-connrefused http://localhost:8000/index
|
||||
docker run --network container:piston_fs_repo appropriate/curl -s --retry 200 --retry-connrefused http://localhost:8000/index
|
||||
|
||||
echo Adjusting index
|
||||
sed -i 's/piston_fs_repo/localhost/g' repo/index
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
#!/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
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Groovy requires JAVA_HOME to be set
|
||||
export JAVA_HOME=$PWD/java
|
||||
export PATH=$PWD/groovy-3.0.7/bin:$PATH
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"language": "groovy",
|
||||
"version": "3.0.7",
|
||||
"aliases": ["groovy", "gvy"]
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
groovy "$@"
|
|
@ -0,0 +1 @@
|
|||
println 'OK'
|
|
@ -0,0 +1,17 @@
|
|||
#!/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
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
ocamlc -o out "$@"
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
export PATH=$PWD/bin:$PATH
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"language": "ocaml",
|
||||
"version": "4.12.0",
|
||||
"aliases": ["ocaml", "ml"]
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
shift
|
||||
./out "$@"
|
|
@ -0,0 +1 @@
|
|||
print_string "OK\n";
|
34
readme.md
34
readme.md
|
@ -120,7 +120,7 @@ cd cli && npm i && cd -
|
|||
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
|
||||
|
||||
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
|
||||
docker run -v $PWD:'/piston' --tmpfs /piston/jobs -dit -p 2000:2000 --name piston_api docker.pkg.github.com/engineer-man/piston/api:latest
|
||||
```
|
||||
|
||||
<br>
|
||||
|
@ -143,6 +143,13 @@ cli/index.js ppman install python 3.9.1
|
|||
# Run a python script
|
||||
echo 'print("Hello world!")' > 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:
|
||||
|
@ -251,21 +258,23 @@ Content-Type: application/json
|
|||
<br>
|
||||
|
||||
# Supported Languages
|
||||
`awk`,
|
||||
`bash`,
|
||||
`brainfuck`,
|
||||
`c`,
|
||||
`cpp`,
|
||||
`clojure`,
|
||||
`coffeescript`,
|
||||
`cow`,
|
||||
`crystal`,
|
||||
`csharp`,
|
||||
`d`,
|
||||
`dart`,
|
||||
`dash`,
|
||||
`deno`,
|
||||
`dotnet`,
|
||||
`elixir`,
|
||||
`emacs`,
|
||||
`elisp`,
|
||||
`erlang`,
|
||||
`gawk`,
|
||||
`gcc`,
|
||||
`go`,
|
||||
`groovy`,
|
||||
`haskell`,
|
||||
`java`,
|
||||
`jelly`,
|
||||
|
@ -274,21 +283,26 @@ Content-Type: application/json
|
|||
`lisp`,
|
||||
`lolcode`,
|
||||
`lua`,
|
||||
`mono`,
|
||||
`nasm`,
|
||||
`nasm64`,
|
||||
`nim`,
|
||||
`node`,
|
||||
`ocaml`,
|
||||
`osabie`,
|
||||
`paradoc`,
|
||||
`pascal`,
|
||||
`perl`,
|
||||
`php`,
|
||||
`python2`,
|
||||
`python3`,
|
||||
`prolog`,
|
||||
`pure`,
|
||||
`python`,
|
||||
`rockstar`,
|
||||
`ruby`,
|
||||
`rust`,
|
||||
`scala`,
|
||||
`swift`,
|
||||
`typescript`,
|
||||
`vlang`,
|
||||
`zig`,
|
||||
|
||||
<br>
|
||||
|
|
Loading…
Reference in New Issue