diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1ab8ba3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM tetafro/golang-gcc as installer + +RUN apk update && apk add git + +RUN cd src \ + && git clone https://github.com/angt/slurm-https \ + && git clone https://github.com/SchedMD/slurm \ + && pwd + +FROM installer as configer + +RUN mkdir -p /src/slurm && mkdir -p /src/slurm-https + +# COPY --from=installer /src/slurm-https /src/slurm-https +COPY --from=installer /go/src/slurm /src/slurm +COPY --from=installer /go/src/slurm-https /src/slurm-https + + +COPY slurm.pc / diff --git a/slurm.pc b/slurm.pc new file mode 100644 index 0000000..f5f84b4 --- /dev/null +++ b/slurm.pc @@ -0,0 +1,5 @@ +Name: slurm +Description: Slurm +Version: 1.0.0 +Cflags: -I/usr/include/slurm +Libs: -lslurm