Merge pull request #61 from dvargas46/master

add osabie
This commit is contained in:
Brian Seymour 2021-01-27 11:10:58 -06:00 committed by GitHub
commit 7998e9196e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 37 additions and 0 deletions

View File

@ -240,5 +240,14 @@
"aliases": [
"zig"
]
},
{
"name": "osabie",
"aliases": [
"osabie",
"05AB1E",
"osable",
"usable"
]
}
]

8
lxc/executors/osabie Normal file
View File

@ -0,0 +1,8 @@
#!/bin/bash
# osabie uses Elixir, which expects UTF-8 native encoding
export LC_ALL="en_US.UTF-8"
# osabie will break if you try using it with xargs
cd /tmp/$2
timeout -s KILL 3 osabie code.code < args.args

View File

@ -64,3 +64,5 @@ echo -n 'testing typescript = '
../../cli/execute typescript typescript.ts
echo -n 'testing zig = '
../../cli/execute zig zig.zig
echo -n 'testing osabie = '
../../cli/execute osabie osabie.abe

1
lxc/tests/osabie.abe Normal file
View File

@ -0,0 +1 @@
"good

View File

@ -136,3 +136,7 @@ echo '---'
echo 'zig'
lxc-attach --clear-env -n piston -- /bin/bash -l -c "zig version"
echo '---'
echo 'osabie'
echo '1.0.1'
echo '---'

View File

@ -276,6 +276,7 @@ Content-Type: application/json
`nasm64`,
`nim`,
`node`,
`osabie`,
`paradoc`,
`perl`,
`php`,

View File

@ -264,6 +264,18 @@ cd nim-1.4.0
echo 'export PATH=$PATH:/opt/nim/bin' >> /opt/.profile
source /opt/.profile
# install 05AB1E
# final binary: /opt/05AB1E/05AB1E/osabie
# requires Elixir to install
cd /opt && mkdir 05AB1E && cd 05AB1E
git clone https://github.com/Adriandmen/05AB1E.git
cd 05AB1E
mix local.hex --force
mix deps.get --force
MIX_ENV=prod mix escript.build --force
echo 'export PATH=$PATH:/opt/05AB1E/05AB1E' >> /opt/.profile
source /opt/.profile
# create runnable users and apply limits
for i in {1..150}; do
useradd -M runner$i