forked from root/public
![32063953+xpetit@users.noreply.github.com](/git/assets/img/avatar_default.png)
9 changed files with 31 additions and 103 deletions
@ -1,11 +1,6 @@ |
|||||||
FROM buildkite/puppeteer:5.2.1 |
FROM buildkite/puppeteer:5.2.1 |
||||||
|
|
||||||
ENV GIT_TERMINAL_PROMPT=0 |
|
||||||
RUN apt-get update |
|
||||||
RUN apt-get install -y git |
|
||||||
COPY --from=mkcert-ca . /usr/local/share/ca-certificates |
|
||||||
RUN update-ca-certificates |
|
||||||
WORKDIR /app |
WORKDIR /app |
||||||
COPY dom . |
COPY dom . |
||||||
COPY subjects ./subjects |
COPY subjects ./subjects |
||||||
ENTRYPOINT ["/bin/sh", "/app/entrypoint.sh"] |
ENTRYPOINT ["/app/entrypoint.sh"] |
||||||
|
@ -1,22 +1,6 @@ |
|||||||
#!/bin/sh |
#!/bin/sh |
||||||
|
|
||||||
set -o noglob |
set -e |
||||||
set -o errexit |
|
||||||
set -o nounset |
|
||||||
IFS=' |
|
||||||
' |
|
||||||
|
|
||||||
mkdir student |
|
||||||
cd student |
|
||||||
|
|
||||||
if test "$REPOSITORY"; then |
|
||||||
password=$(cat) |
|
||||||
git clone --quiet --depth=1 --shallow-submodules https://root:"${password}"@"$REPOSITORY" . |
|
||||||
else |
|
||||||
first_file=$(echo "$EXPECTED_FILES" | cut -d' ' -f1) |
|
||||||
mkdir -p "$(dirname "$first_file")" |
|
||||||
cat > "$first_file" |
|
||||||
fi |
|
||||||
|
|
||||||
cd /app |
cd /app |
||||||
node --no-warnings --unhandled-rejections=strict test.js "${EXERCISE}" |
node --no-warnings --unhandled-rejections=strict test.js "${EXERCISE}" |
||||||
|
@ -1,9 +1,5 @@ |
|||||||
FROM node:14.7.0-alpine3.12 |
FROM node:14.7.0-alpine3.12 |
||||||
|
|
||||||
ENV GIT_TERMINAL_PROMPT=0 |
|
||||||
RUN apk add --no-cache git |
|
||||||
COPY --from=mkcert-ca . /usr/local/share/ca-certificates |
|
||||||
RUN update-ca-certificates |
|
||||||
WORKDIR /app |
WORKDIR /app |
||||||
COPY . . |
COPY . . |
||||||
ENTRYPOINT ["/bin/sh", "/app/entrypoint.sh"] |
ENTRYPOINT ["/app/entrypoint.sh"] |
||||||
|
@ -1,23 +1,5 @@ |
|||||||
#!/bin/sh |
#!/bin/sh |
||||||
|
|
||||||
set -o noglob |
set -e |
||||||
set -o errexit |
|
||||||
set -o nounset |
|
||||||
IFS=' |
|
||||||
' |
|
||||||
|
|
||||||
mkdir student |
|
||||||
cd student |
|
||||||
|
|
||||||
if test "$REPOSITORY"; then |
|
||||||
password=$(cat) |
|
||||||
git clone --quiet --depth=1 --shallow-submodules https://root:"${password}"@"$REPOSITORY" . |
|
||||||
else |
|
||||||
first_file=$(echo "$EXPECTED_FILES" | cut -d' ' -f1) |
|
||||||
mkdir -p "$(dirname "$first_file")" |
|
||||||
cat > "$first_file" |
|
||||||
fi |
|
||||||
|
|
||||||
cd |
|
||||||
|
|
||||||
node /app/test.mjs "${EXERCISE}" |
node /app/test.mjs "${EXERCISE}" |
||||||
|
Loading…
Reference in new issue