|
@@ -40,12 +40,11 @@ RUN CGO_ENABLED=0 go build -buildmode=pie -o /build/httpserver/httpserver github
|
|
FROM base AS builder
|
|
FROM base AS builder
|
|
|
|
|
|
# Set tag and add sources
|
|
# Set tag and add sources
|
|
-ARG DOCKER_GITCOMMIT
|
|
|
|
-ENV DOCKER_GITCOMMIT=${DOCKER_GITCOMMIT:-undefined}
|
|
|
|
COPY . .
|
|
COPY . .
|
|
# Copy test sources tests that use assert can print errors
|
|
# Copy test sources tests that use assert can print errors
|
|
RUN mkdir -p /build${PWD} && find integration integration-cli -name \*_test.go -exec cp --parents '{}' /build${PWD} \;
|
|
RUN mkdir -p /build${PWD} && find integration integration-cli -name \*_test.go -exec cp --parents '{}' /build${PWD} \;
|
|
# Build and install test binaries
|
|
# Build and install test binaries
|
|
|
|
+ARG DOCKER_GITCOMMIT=undefined
|
|
RUN hack/make.sh build-integration-test-binary
|
|
RUN hack/make.sh build-integration-test-binary
|
|
RUN mkdir -p /build/tests && find . -name test.main -exec cp --parents '{}' /build/tests \;
|
|
RUN mkdir -p /build/tests && find . -name test.main -exec cp --parents '{}' /build/tests \;
|
|
|
|
|