Skip to content

Commit be4b901

Browse files
all can compile and run now
Signed-off-by: Arnav Gupta <arnav@codingblocks.com>
1 parent 4c3f0f0 commit be4b901

File tree

22 files changed

+89
-5
lines changed

22 files changed

+89
-5
lines changed

containers/c/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
FROM alpine:3.6
22

33
RUN apk add --no-cache gcc musl-dev bash
4-
COPY ./compile.sh /bin/compile.sh
4+
COPY ./compile.sh /bin/compile.sh
5+
COPY ./run.sh /bin/run.sh
6+
RUN chmod 777 /bin/compile.sh; \
7+
chmod 777 /bin/run.sh

containers/c/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 exe
4+
./exe 1> run.stdout 2> run.stderr

containers/cpp/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
FROM alpine:3.6
22

33
RUN apk add --no-cache g++ musl-dev bash
4-
COPY ./compile.sh /bin/compile.sh
4+
COPY ./compile.sh /bin/compile.sh
5+
COPY ./run.sh /bin/run.sh
6+
RUN chmod 777 /bin/compile.sh; \
7+
chmod 777 /bin/run.sh

containers/cpp/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 exe
4+
./exe 1> run.stdout 2> run.stderr

containers/nodejs6/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
FROM alpine:3.6
22

33
RUN apk add --no-cache nodejs bash
4+
COPY ./run.sh /bin/run.sh
5+
RUN chmod 777 /bin/run.sh

containers/nodejs6/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+
node script.js 1> run.stdout 2> run.stderr

containers/py2/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
FROM alpine:3.6
22

3-
RUN apk add --no-cache python2 bash
3+
RUN apk add --no-cache python2 bash
4+
COPY ./run.sh /bin/run.sh
5+
RUN chmod 777 /bin/run.sh

containers/py2/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+
python script.py 1> run.stdout 2> run.stderr

tests/c/runbox/run.stderr

Whitespace-only changes.

tests/c/runbox/run.stdout

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

0 commit comments

Comments
 (0)