Skip to content

Instantly share code, notes, and snippets.

@tvalimaki
Created April 5, 2019 07:34
Show Gist options
  • Save tvalimaki/231c8bd8d415b34038be9c81f21d6080 to your computer and use it in GitHub Desktop.
Save tvalimaki/231c8bd8d415b34038be9c81f21d6080 to your computer and use it in GitHub Desktop.
MADP Toolbox Dockerfile
FROM nvidia/cuda:10.1-devel AS build
WORKDIR /tmp
COPY . /tmp
RUN apt-get update && apt-get install -y --no-install-recommends \
automake autoconf libtool \
liblpsolve55-dev libgmp3-dev libxml2-dev
RUN sh autogen.sh
RUN ./configure --prefix=/madp
RUN make
RUN make install
FROM nvidia/cuda:10.1-runtime
RUN apt-get update && apt-get install -y --no-install-recommends \
liblpsolve55-dev libgmp3-dev libxml2-dev
COPY --from=build /madp /madp
WORKDIR /root/.madp
RUN mkdir results
COPY ./problems problems
ENV LD_LIBRARY_PATH /madp/lib:$LD_LIBRARY_PATH
ENV PATH /madp/bin:$PATH
CMD ["GMAA", "DT", "-h2", "-v"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment