Skip to content

Commit 4aa5813

Browse files
VibhorCodecianGuptaVibhorCodecianGupta
authored andcommitted
tests passing
1 parent 8286ae7 commit 4aa5813

File tree

14 files changed

+132
-0
lines changed

14 files changed

+132
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ Currently we have following images -
2626
- [java8](containers/java8)
2727
- [nodejs6](containers/nodejs6)
2828
- [nodejs](containers/nodejs8)
29+
- [perl](containers/perl)
2930
- [php7](containers/php7)
3031
- [py2](containers/py2)
3132
- [py3](containers/py3)
3233
- [ruby](containers/ruby)
34+
- [rust](containers/rust)

containers/perl/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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

containers/perl/compile.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#!/usr/bin/env bash

containers/perl/run.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
3+
perl script.pl < run.stdin 1> run.stdout 2> run.stderr

containers/rust/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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

containers/rust/compile.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
3+
rustc script.rs 2> compile.stderr 1> compile.stdout

containers/rust/run.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env bash
2+
3+
chmod 777 script.rs
4+
./script < run.stdin 1> run.stdout 2> run.stderr

test.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,7 @@
4343
@test "test ruby" {
4444
bash tests/ruby/test_worker.sh
4545
}
46+
47+
@test "test rust" {
48+
bash tests/rust/test_worker.sh
49+
}

tests/perl/run.stdin

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
World

tests/perl/script.pl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
$input = <STDIN>;
2+
print "Hello ${input}";

0 commit comments

Comments
 (0)