Skip to content
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.

Commit

Permalink
Replace listen.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kazk committed Aug 29, 2017
1 parent 55a6192 commit 818d8f7
Show file tree
Hide file tree
Showing 30 changed files with 130 additions and 50 deletions.
5 changes: 4 additions & 1 deletion docker/alt.docker
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ COPY frameworks/php frameworks/php
COPY test/runner.js test/
COPY test/runners/php_spec.js test/runners/

COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh

USER codewarrior
ENV USER=codewarrior HOME=/home/codewarrior
RUN mocha -t 3000 test/runners/php_spec.js

ENTRYPOINT ["node"]
ENTRYPOINT ["./entrypoint.sh"]
7 changes: 5 additions & 2 deletions docker/chapel.docker
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN mkdir $CHPL_HOME \
&& make \
&& cd .. \
&& $CHPL_HOME/util/printchplenv

ENV CHPL_HOST_PLATFORM=linux64
ENV PATH="$CHPL_HOME"/bin/$CHPL_HOST_PLATFORM:"$CHPL_HOME"/util:"$PATH"

Expand All @@ -35,8 +35,11 @@ COPY frameworks/chapel frameworks/chapel
COPY test/runner.js test/
COPY test/runners/chapel_spec.js test/runners/

COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh

USER codewarrior
ENV USER=codewarrior HOME=/home/codewarrior
RUN mocha -t 10000 test/runners/chapel_spec.js

ENTRYPOINT ["node"]
ENTRYPOINT ["./entrypoint.sh"]
5 changes: 4 additions & 1 deletion docker/crystal.docker
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ COPY frameworks/crystal/shard.yml /home/codewarrior/crystal/shard.yml
COPY frameworks/crystal/formatter.cr /home/codewarrior/crystal/formatter.cr
RUN chown -R codewarrior:codewarrior /home/codewarrior/crystal

COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh

USER codewarrior
ENV USER=codewarrior HOME=/home/codewarrior
RUN cd /home/codewarrior/crystal \
Expand All @@ -41,4 +44,4 @@ COPY test/runners/crystal_spec.js test/runners/

RUN mocha -t 10000 test/runners/crystal_spec.js

ENTRYPOINT ["node"]
ENTRYPOINT ["./entrypoint.sh"]
5 changes: 4 additions & 1 deletion docker/dart.docker
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ WORKDIR /runner
COPY package.json package.json
RUN npm install --production

COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh

USER codewarrior
ENV USER=codewarrior HOME=/home/codewarrior
ENV PATH=$PATH:$HOME/.pub-cache/bin
Expand All @@ -44,4 +47,4 @@ COPY test/runners/dart_spec.js test/runners/

RUN mocha -t 10000 test/runners/dart_spec.js

ENTRYPOINT ["node"]
ENTRYPOINT ["./entrypoint.sh"]
5 changes: 4 additions & 1 deletion docker/dotnet.docker
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ COPY test/runner.js test/
COPY test/runners/csharp_spec.js test/runners/
COPY test/runners/fsharp_spec.js test/runners/

COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh

USER codewarrior
ENV USER=codewarrior HOME=/home/codewarrior

Expand All @@ -62,4 +65,4 @@ RUN mocha -t 10000 test/runners/fsharp_spec.js
RUN sh /runner/lib/cleanup.sh
RUN mono -V

ENTRYPOINT ["node"]
ENTRYPOINT ["./entrypoint.sh"]
5 changes: 4 additions & 1 deletion docker/elixir.docker
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,12 @@ COPY frameworks/elixir frameworks/elixir
COPY test/runner.js test/
COPY test/runners/elixir_spec.js test/runners/

COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh

USER codewarrior
ENV USER=codewarrior HOME=/home/codewarrior

RUN mocha -t 5000 test/runners/elixir_spec.js

ENTRYPOINT ["node"]
ENTRYPOINT ["./entrypoint.sh"]
5 changes: 4 additions & 1 deletion docker/erlang.docker
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ COPY examples/erlang.yml examples/
COPY frameworks/erlang/cw /workspace/erlang
RUN chown -R codewarrior:codewarrior /workspace/erlang

COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh

USER codewarrior
ENV USER=codewarrior HOME=/home/codewarrior

Expand All @@ -54,4 +57,4 @@ RUN cd /workspace/erlang \

RUN mocha -t 5000 test/runners/erlang_spec.js

ENTRYPOINT ["node"]
ENTRYPOINT ["./entrypoint.sh"]
5 changes: 4 additions & 1 deletion docker/esolangs.docker
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@ COPY frameworks/javascript/chai-display.js frameworks/javascript/
COPY test/runner.js test/
COPY test/runners/bf_spec.js test/runners/

COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh

USER codewarrior
ENV USER=codewarrior HOME=/home/codewarrior

RUN mocha -t 10000 test/runners/bf_spec.js

ENTRYPOINT ["node"]
ENTRYPOINT ["./entrypoint.sh"]
7 changes: 4 additions & 3 deletions docker/func.docker
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ ADD . /runner
WORKDIR /runner
RUN ln -s /home/codewarrior /workspace

COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh

# Run the test suite to make sure this thing works

USER codewarrior
Expand All @@ -32,6 +35,4 @@ ENV USER codewarrior
ENV HOME /home/codewarrior
RUN mocha -t 5000 test/runners/{ocaml,racket}_spec.js

#timeout is a fallback in case an error with node
#prevents it from exiting properly
ENTRYPOINT ["node"]
ENTRYPOINT ["./entrypoint.sh"]
5 changes: 4 additions & 1 deletion docker/go.docker
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,11 @@ COPY test/runners/go_spec.js test/runners/
COPY frameworks/go/codewars $GOPATH/src/codewars
RUN go install codewars/reporter

COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh

USER codewarrior
ENV USER=codewarrior HOME=/home/codewarrior
RUN mocha -t 5000 test/runners/go_spec.js

ENTRYPOINT ["node"]
ENTRYPOINT ["./entrypoint.sh"]
5 changes: 4 additions & 1 deletion docker/gradle.docker
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ RUN npm install --production
COPY frameworks/gradle frameworks/gradle
RUN chown -R codewarrior:codewarrior frameworks/gradle

COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh

USER codewarrior
ENV USER=codewarrior HOME=/home/codewarrior

Expand Down Expand Up @@ -67,4 +70,4 @@ RUN mocha test/runners/kotlin_spec.js
RUN mocha test/runners/groovy_spec.js
RUN mocha test/runners/scala_spec.js

ENTRYPOINT ["node"]
ENTRYPOINT ["./entrypoint.sh"]
5 changes: 4 additions & 1 deletion docker/haskell.docker
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,11 @@ COPY test/runner.js test/
COPY test/runners/haskell_spec.js test/runners/
COPY frameworks/haskell frameworks/haskell

COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh

USER codewarrior
ENV USER=codewarrior HOME=/home/codewarrior
RUN mocha -t 10000 test/runners/haskell_spec.js

ENTRYPOINT ["node"]
ENTRYPOINT ["./entrypoint.sh"]
5 changes: 4 additions & 1 deletion docker/java.docker
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ COPY frameworks/java frameworks/java
RUN chown codewarrior frameworks/java
RUN gradle --version

COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh

USER codewarrior
ENV USER=codewarrior HOME=/home/codewarrior

Expand All @@ -84,4 +87,4 @@ RUN cd /runner/frameworks/java && gradle --stacktrace --no-daemon compileTestJav

RUN mocha -t 20000 test/runners/java_spec.js

ENTRYPOINT ["node"]
ENTRYPOINT ["./entrypoint.sh"]
5 changes: 4 additions & 1 deletion docker/julia.docker
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@ COPY test/runner.js test/
COPY test/runners/julia_spec.js test/runners/
COPY frameworks/julia frameworks/julia

COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh

USER codewarrior
ENV USER=codewarrior HOME=/home/codewarrior
RUN mocha -t 5000 test/runners/julia_spec.js

ENTRYPOINT ["node"]
ENTRYPOINT ["./entrypoint.sh"]
5 changes: 4 additions & 1 deletion docker/jvm.docker
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,12 @@ COPY examples/clojure.yml examples/
COPY test/runner.js test/
COPY test/runners/clojure_spec.js test/runners/

COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh

USER codewarrior
ENV USER=codewarrior HOME=/home/codewarrior
ENV TIMEOUT 10000
RUN mocha -t 10000 test/runners/clojure_spec.js

ENTRYPOINT ["node"]
ENTRYPOINT ["./entrypoint.sh"]
5 changes: 4 additions & 1 deletion docker/lua.docker
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ COPY frameworks/lua frameworks/lua
COPY test/runner.js test/
COPY test/runners/lua_spec.js test/runners/

COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh

USER codewarrior
ENV USER=codewarrior HOME=/home/codewarrior
RUN mocha -t 5000 test/runners/lua_spec.js

ENTRYPOINT ["node"]
ENTRYPOINT ["./entrypoint.sh"]
5 changes: 4 additions & 1 deletion docker/nim.docker
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,11 @@ COPY frameworks/nim frameworks/nim
COPY test/runner.js test/
COPY test/runners/nim_spec.js test/runners/

COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh

USER codewarrior
ENV USER=codewarrior HOME=/home/codewarrior PATH=/opt/nim/bin:$PATH
RUN mocha -t 5000 test/runners/nim_spec.js

ENTRYPOINT ["node"]
ENTRYPOINT ["./entrypoint.sh"]
5 changes: 4 additions & 1 deletion docker/node.docker
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ COPY typings /runner/typings
# add typings into a cleaner path for inclusion
COPY typings/main/ambient /runner/typings

COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh

USER codewarrior
ENV USER=codewarrior HOME=/home/codewarrior
ENV NODE_PATH=/usr/lib/node_modules:/runner/node_modules
Expand All @@ -148,4 +151,4 @@ RUN mocha -t 10000 --recursive test/runners/javascript/
RUN mocha -t 10000 test/runners/coffeescript_spec.js
RUN mocha -t 10000 test/runners/typescript_spec.js

ENTRYPOINT ["node"]
ENTRYPOINT ["./entrypoint.sh"]
5 changes: 4 additions & 1 deletion docker/objc.docker
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,11 @@ COPY test/runner.js test/
COPY test/runners/objc_spec.js test/runners/
COPY frameworks/objc /usr/local/include

COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh

USER codewarrior
ENV USER=codewarrior HOME=/home/codewarrior
RUN mocha -t 5000 test/runners/objc_spec.js

ENTRYPOINT ["node"]
ENTRYPOINT ["./entrypoint.sh"]
5 changes: 4 additions & 1 deletion docker/ocaml.docker
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ COPY examples/ocaml.yml examples/
COPY test/runner.js test/
COPY test/runners/ocaml_spec.js test/runners/

COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh

USER codewarrior
ENV USER=codewarrior HOME=/home/codewarrior

Expand Down Expand Up @@ -51,4 +54,4 @@ RUN (echo 'let () ='; \
WORKDIR /runner
RUN mocha -t 5000 test/runners/ocaml_spec.js

ENTRYPOINT ["node"]
ENTRYPOINT ["./entrypoint.sh"]
5 changes: 4 additions & 1 deletion docker/powershell.docker
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@ COPY frameworks/powershell frameworks/powershell
COPY test/runner.js test/
COPY test/runners/powershell_spec.js test/runners/

COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh

USER codewarrior
ENV USER=codewarrior HOME=/home/codewarrior
RUN mocha -t 5000 test/runners/powershell_spec.js

ENTRYPOINT ["node"]
ENTRYPOINT ["./entrypoint.sh"]
5 changes: 4 additions & 1 deletion docker/python.docker
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,11 @@ COPY frameworks/python3 frameworks/python3
COPY test/runner.js test/
COPY test/runners/python_spec.js test/runners/

COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh

USER codewarrior
ENV USER=codewarrior HOME=/home/codewarrior
RUN mocha -t 5000 test/runners/python_spec.js

ENTRYPOINT ["node"]
ENTRYPOINT ["./entrypoint.sh"]
5 changes: 4 additions & 1 deletion docker/r.docker
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ COPY frameworks/r frameworks/r
COPY test/runner.js test/
COPY test/runners/r_spec.js test/runners/

COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh

USER codewarrior
ENV USER=codewarrior HOME=/home/codewarrior
RUN mocha -t 5000 test/runners/r_spec.js

ENTRYPOINT ["node"]
ENTRYPOINT ["./entrypoint.sh"]
5 changes: 4 additions & 1 deletion docker/ruby.docker
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ COPY test/runners/ruby_spec.js test/runners/
COPY test/runners/shell_spec.js test/runners/
COPY test/runners/sql_spec.js test/runners/

COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh

USER codewarrior
ENV USER=codewarrior HOME=/home/codewarrior

Expand All @@ -191,4 +194,4 @@ RUN mocha -t 5000 test/runners/shell_spec.js
#RUN mocha -t 5000 test/runners/sql_spec.js
RUN sh /runner/lib/cleanup.sh

ENTRYPOINT ["node"]
ENTRYPOINT ["./entrypoint.sh"]
5 changes: 4 additions & 1 deletion docker/rust.docker
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,13 @@ COPY examples/rust.yml examples/
COPY test/runner.js test/
COPY test/runners/rust_spec.js test/runners/

COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh

USER codewarrior
ENV USER=codewarrior HOME=/home/codewarrior
ENV PATH=$HOME/.cargo/bin:$PATH

RUN mocha -t 10000 test/runners/rust_spec.js

ENTRYPOINT ["node"]
ENTRYPOINT ["./entrypoint.sh"]
5 changes: 4 additions & 1 deletion docker/solidity.docker
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ COPY lib/runners/solidity.js lib/runners/
COPY test/runner.js test/
COPY test/runners/solidity_spec.js test/runners/

COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh

USER codewarrior
ENV USER=codewarrior HOME=/home/codewarrior

Expand All @@ -44,4 +47,4 @@ RUN cd /workspace/solidity \
&& truffle version
RUN mocha test/runners/solidity_spec.js

ENTRYPOINT ["node"]
ENTRYPOINT ["./entrypoint.sh"]
5 changes: 4 additions & 1 deletion docker/swift.docker
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,11 @@ COPY frameworks/swift frameworks/swift
COPY test/runner.js test/
COPY test/runners/swift_spec.js test/runners/

COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh

USER codewarrior
ENV USER=codewarrior HOME=/home/codewarrior
RUN mocha -t 5000 test/runners/swift_spec.js

ENTRYPOINT ["node"]
ENTRYPOINT ["./entrypoint.sh"]
Loading

0 comments on commit 818d8f7

Please sign in to comment.