File tree Expand file tree Collapse file tree 14 files changed +137
-0
lines changed Expand file tree Collapse file tree 14 files changed +137
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ Currently we have following images -
2727 - [ nodejs6] ( containers/nodejs6 )
2828 - [ nodejs] ( containers/nodejs8 )
2929 - [ php7] ( containers/php7 )
30+ - [ perl] ( containers/perl )
3031 - [ py2] ( containers/py2 )
3132 - [ py3] ( containers/py3 )
3233 - [ ruby] ( containers/ruby )
34+ - [ rust] ( containers/rust )
Original file line number Diff line number Diff line change 1+ FROM alpine:3.6
2+
3+ RUN apk add --no-cache perl="5.24.4-r0" bash
4+
5+ COPY ./compile.sh /bin/compile.sh
6+ COPY ./run.sh /bin/run.sh
7+
8+ RUN chmod 777 /bin/compile.sh; \
9+ chmod 777 /bin/run.sh
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ perl script.pl < run.stdin 1> run.stdout 2> run.stderr
Original file line number Diff line number Diff line change 1+ FROM alpine:3.6
2+
3+ RUN apk add --no-cache musl-dev bash rust="1.17.0-r2"
4+
5+ COPY ./compile.sh /bin/compile.sh
6+ COPY ./run.sh /bin/run.sh
7+
8+ RUN chmod 777 /bin/compile.sh; \
9+ chmod 777 /bin/run.sh
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ rustc script.rs 2> compile.stderr 1> compile.stdout
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ chmod 777 script.rs
4+ ./script < run.stdin 1> run.stdout 2> run.stderr
Original file line number Diff line number Diff line change 3232 bash tests/php7/test_worker.sh
3333}
3434
35+ @test " test perl" {
36+ bash tests/perl/test_worker.sh
37+
38+ }
39+
3540@test " test py2" {
3641 bash tests/py2/test_worker.sh
3742}
4348@test " test ruby" {
4449 bash tests/ruby/test_worker.sh
4550}
51+
52+ @test " test rust" {
53+ bash tests/rust/test_worker.sh
54+ }
Original file line number Diff line number Diff line change 1+ World
Original file line number Diff line number Diff line change 1+ $input = <STDIN >;
2+ print " Hello ${input} " ;
You can’t perform that action at this time.
0 commit comments