Browse Source

add entrypoint and Dockerfile and rename

pull/603/head
Clement Denis 4 years ago committed by Clément
parent
commit
b1e775a1ab
  1. 8
      dom/Dockerfile
  2. 0
      dom/build-brick-and-break.js
  3. 0
      dom/build-brick-and-break_test.js
  4. 23
      dom/entrypoint.sh
  5. 0
      dom/fifty-shades-of-cold.js
  6. 0
      dom/fifty-shades-of-cold_test.js
  7. 0
      dom/get-them-all.js
  8. 0
      dom/get-them-all_test.js
  9. 0
      dom/gossip-grid.js
  10. 0
      dom/gossip-grid_test.js
  11. 0
      dom/harder-bigger-bolder-stronger.js
  12. 0
      dom/harder-bigger-bolder-stronger_test.js
  13. 0
      dom/keycodes-symphony.js
  14. 0
      dom/keycodes-symphony_test.js
  15. 0
      dom/mouse-trap.js
  16. 0
      dom/mouse-trap_test.js
  17. 0
      dom/package.json
  18. 0
      dom/pick-and-click.js
  19. 0
      dom/pick-and-click_test.js
  20. 0
      dom/pimp-my-style.js
  21. 0
      dom/pimp-my-style_test.js
  22. 0
      dom/subjects
  23. 0
      dom/test.js
  24. 0
      dom/where-do-we-go.js
  25. 0
      dom/yarn.lock

8
dom/Dockerfile

@ -0,0 +1,8 @@
FROM buildkite/puppeteer:latest
ENV GIT_TERMINAL_PROMPT=0
# RUN apk add --no-cache git
WORKDIR /app
COPY ./puppeteer .
COPY ./subjects ./subjects
ENTRYPOINT ["/bin/sh", "/app/entrypoint.sh"]

0
puppeteer/build-brick-and-break.js → dom/build-brick-and-break.js

0
puppeteer/build-brick-and-break_test.js → dom/build-brick-and-break_test.js

23
dom/entrypoint.sh

@ -0,0 +1,23 @@
#!/bin/sh
set -o noglob
set -o errexit
set -o nounset
IFS='
'
mkdir student
cd student
if test "$REPOSITORY"; then
password=$(cat)
git clone --quiet --depth=1 --shallow-submodules http://root:"${password}"@"$REPOSITORY" .
else
first_file=$(echo "$EXPECTED_FILES" | cut -d' ' -f1)
mkdir -p "$(dirname "$first_file")"
cat > "$first_file"
fi
cd
node --unhandled-rejections=strict /app/test.js "${EXERCISE}"

0
puppeteer/fifty-shades-of-cold.js → dom/fifty-shades-of-cold.js

0
puppeteer/fifty-shades-of-cold_test.js → dom/fifty-shades-of-cold_test.js

0
puppeteer/get-them-all.js → dom/get-them-all.js

0
puppeteer/get-them-all_test.js → dom/get-them-all_test.js

0
puppeteer/gossip-grid.js → dom/gossip-grid.js

0
puppeteer/gossip-grid_test.js → dom/gossip-grid_test.js

0
puppeteer/harder-bigger-bolder-stronger.js → dom/harder-bigger-bolder-stronger.js

0
puppeteer/harder-bigger-bolder-stronger_test.js → dom/harder-bigger-bolder-stronger_test.js

0
puppeteer/keycodes-symphony.js → dom/keycodes-symphony.js

0
puppeteer/keycodes-symphony_test.js → dom/keycodes-symphony_test.js

0
puppeteer/mouse-trap.js → dom/mouse-trap.js

0
puppeteer/mouse-trap_test.js → dom/mouse-trap_test.js

0
puppeteer/package.json → dom/package.json

0
puppeteer/pick-and-click.js → dom/pick-and-click.js

0
puppeteer/pick-and-click_test.js → dom/pick-and-click_test.js

0
puppeteer/pimp-my-style.js → dom/pimp-my-style.js

0
puppeteer/pimp-my-style_test.js → dom/pimp-my-style_test.js

0
puppeteer/where-do-we-go.js → dom/where-do-we-go.js

0
puppeteer/yarn.lock → dom/yarn.lock

Loading…
Cancel
Save