Dockerfile: create wrapper
create wrapper so one can start the demo with an http requestpull/2/head
parent
465a9cf5cc
commit
485d9796df
@ -0,0 +1,16 @@
|
|||||||
|
FROM rust as builder
|
||||||
|
RUN apt-get update
|
||||||
|
RUN apt-get install ocl-icd-opencl-dev -y
|
||||||
|
COPY . .
|
||||||
|
RUN cargo build --release
|
||||||
|
|
||||||
|
FROM golang as builder2
|
||||||
|
RUN go get github.com/parallel-programming-hwr/http-exec
|
||||||
|
|
||||||
|
FROM nvidia/opencl:devel-ubuntu18.04
|
||||||
|
WORKDIR benchmark
|
||||||
|
COPY --from=builder2 /go/bin/http-exec .
|
||||||
|
RUN apt-get update
|
||||||
|
COPY --from=builder target/release/rust-opencl-demo .
|
||||||
|
ENV PATH="${PATH}:/benchmark"
|
||||||
|
ENTRYPOINT ["./http-exec","--command=rust-opencl-demo"]
|
Loading…
Reference in New Issue