Clean Dockerfile & Clone repositories with HTTPS

This commit is contained in:
2020-06-20 16:43:32 +02:00
parent 9daf18532d
commit 4627cd898b
6 changed files with 11 additions and 8 deletions

View File

@ -1,10 +1,11 @@
FROM buildkite/puppeteer:latest
FROM buildkite/puppeteer
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
RUN ls -la
COPY dom .
COPY subjects ./subjects
ENTRYPOINT ["/bin/sh", "/app/entrypoint.sh"]

View File

@ -11,7 +11,7 @@ cd student
if test "$REPOSITORY"; then
password=$(cat)
git clone --quiet --depth=1 --shallow-submodules http://root:"${password}"@"$REPOSITORY" .
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")"

View File

@ -11,7 +11,7 @@ cd src/student
if test "$REPOSITORY"; then
password=$(cat)
git clone --quiet --depth=1 --shallow-submodules http://root:"${password}"@"$REPOSITORY" .
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")"

View File

@ -2,6 +2,8 @@ FROM node:14-alpine
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"]

View File

@ -11,7 +11,7 @@ cd student
if test "$REPOSITORY"; then
password=$(cat)
git clone --quiet --depth=1 --shallow-submodules http://root:"${password}"@"$REPOSITORY" .
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")"

View File

@ -10,7 +10,7 @@ cd student
if test "$REPOSITORY"; then
password=$(cat)
git clone --quiet --depth=1 --shallow-submodules http://root:"${password}"@"$REPOSITORY" .
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")"