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": [ "aliases": [
"zig" "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 ../../cli/execute typescript typescript.ts
echo -n 'testing zig = ' echo -n 'testing zig = '
../../cli/execute zig zig.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' echo 'zig'
lxc-attach --clear-env -n piston -- /bin/bash -l -c "zig version" lxc-attach --clear-env -n piston -- /bin/bash -l -c "zig version"
echo '---' echo '---'
echo 'osabie'
echo '1.0.1'
echo '---'

View File

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

View File

@ -264,6 +264,18 @@ cd nim-1.4.0
echo 'export PATH=$PATH:/opt/nim/bin' >> /opt/.profile echo 'export PATH=$PATH:/opt/nim/bin' >> /opt/.profile
source /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 # create runnable users and apply limits
for i in {1..150}; do for i in {1..150}; do
useradd -M runner$i useradd -M runner$i