-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
14 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.22 as build | ||
FROM golang:1.22 AS build | ||
RUN set -ex \ | ||
&& apt-get update --fix-missing \ | ||
&& apt-get install -qy --no-install-recommends \ | ||
|
@@ -22,14 +22,18 @@ COPY . . | |
|
||
RUN --mount=type=cache,id=build,target=/root/.cache/go-build go test -failfast -v -c -o ./build/tests.test ./systest/tests/ | ||
|
||
FROM ubuntu:22.04 | ||
ENV GOBIN=/bin | ||
RUN --mount=type=cache,id=build,target=/root/.cache/go-build go install gotest.tools/[email protected] | ||
|
||
FROM golang:1.22 AS runtime | ||
RUN set -ex \ | ||
&& apt-get update --fix-missing \ | ||
&& apt-get install -qy --no-install-recommends \ | ||
ocl-icd-libopencl1 clinfo \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
&& apt-get update --fix-missing \ | ||
&& apt-get install -qy --no-install-recommends \ | ||
ocl-icd-libopencl1 clinfo \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
COPY --from=build /src/build/tests.test /bin/tests | ||
COPY --from=build /bin/gotestsum /bin/ | ||
COPY --from=build /src/build/libpost.so /bin/ | ||
COPY --from=build /src/build/post-service /bin/ | ||
ENV LD_LIBRARY_PATH="/bin/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters