[Ipopt] Dockerized Ipopt

Alex Marvin alex.marvin at gmail.com
Fri Nov 16 11:07:00 EST 2018


Hello COIN-OR Ipopt community,

It was nice to meet some of you in person at INFORMS in Phoenix. I use
COIN-OR daily and love the suite of tools, and want to contribute! One
thing I mentioned and wanted to share is how I build Ipopt in my Dockerized
app deployments.

Here is revelant part of my Dockerfile:

# install ipopt
RUN apt-get update && apt-get install -y \
    build-essential \
    gfortran \
    unzip \
    wget
ENV IPOPT_VERSION 3.12.9
ENV IPOPT_BASE_FOLDER /src
RUN mkdir ${IPOPT_BASE_FOLDER} && \
    cd ${IPOPT_BASE_FOLDER} && \
    wget
https://www.coin-or.org/download/source/Ipopt/Ipopt-${IPOPT_VERSION}.zip &&
\
    unzip Ipopt-${IPOPT_VERSION}.zip && \
    rm Ipopt-${IPOPT_VERSION}.zip && \
    cd Ipopt-${IPOPT_VERSION} && \
    cd ThirdParty/Blas && ./get.Blas && cd ../.. && \
    cd ThirdParty/Lapack && ./get.Lapack && cd ../.. && \
    cd ThirdParty/ASL && ./get.ASL && cd ../.. && \
    cd ThirdParty/Mumps && ./get.Mumps && cd ../.. && \
    cd ThirdParty/Metis && ./get.Metis && cd ../.. && \
    ./configure -with-pic && \
    make -j3 && \
    make test && \
    make install

# add ipopt to PATH
ENV PATH ${IPOPT_BASE_FOLDER}/Ipopt-${IPOPT_VERSION}/bin:${PATH}


My approach is based off some Ipopt install instructions
<http://wiki.icub.org/wiki/Installing_IPOPT> and this Dockerfile example on
GitHub
<https://github.com/ScazLab/baxter_react_controller/blob/master/Dockerfile>.

Best regards,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/ipopt/attachments/20181116/85e4a8a1/attachment-0001.html>


More information about the Ipopt mailing list