mirror of https://github.com/01-edu/public.git
xpetit
4 years ago
9 changed files with 31 additions and 103 deletions
@ -1,11 +1,6 @@
|
||||
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 |
||||
COPY dom . |
||||
COPY subjects ./subjects |
||||
ENTRYPOINT ["/bin/sh", "/app/entrypoint.sh"] |
||||
ENTRYPOINT ["/app/entrypoint.sh"] |
||||
|
@ -1,22 +1,6 @@
|
||||
#!/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 https://root:"${password}"@"$REPOSITORY" . |
||||
else |
||||
first_file=$(echo "$EXPECTED_FILES" | cut -d' ' -f1) |
||||
mkdir -p "$(dirname "$first_file")" |
||||
cat > "$first_file" |
||||
fi |
||||
set -e |
||||
|
||||
cd /app |
||||
node --no-warnings --unhandled-rejections=strict test.js "${EXERCISE}" |
||||
|
@ -1,9 +1,5 @@
|
||||
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 |
||||
COPY . . |
||||
ENTRYPOINT ["/bin/sh", "/app/entrypoint.sh"] |
||||
ENTRYPOINT ["/app/entrypoint.sh"] |
||||
|
@ -1,23 +1,5 @@
|
||||
#!/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 https://root:"${password}"@"$REPOSITORY" . |
||||
else |
||||
first_file=$(echo "$EXPECTED_FILES" | cut -d' ' -f1) |
||||
mkdir -p "$(dirname "$first_file")" |
||||
cat > "$first_file" |
||||
fi |
||||
|
||||
cd |
||||
set -e |
||||
|
||||
node /app/test.mjs "${EXERCISE}" |
||||
|
Loading…
Reference in new issue