Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile is added to the codebase #79

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Use the Gurobi Docker image as a base
FROM gurobi/python

# Install any additional dependencies for dingo
RUN apt-get update && apt-get install -y \
cmake \
lp-solve \
&& rm -rf /var/lib/apt/lists/*

# Install dingo
RUN pip install dingo
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your Dockerfile fails in this line.
This is because dingo is not on PyPi.

So, maybe, you could follow the installation instructions?
For example,

  • get dependencies
apt-get install libsuitesparse-dev &> /dev/null
pip install sparseqr 
pip install Cython 
pip install cobra  
pip install kaleido
  • clone dingo repo
git clone https://github.com/GeomScale/dingo.git
cd dingo/
git submodule update --init
  • get boost library:
wget -O boost_1_76_0.tar.bz2 https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.bz2 
tar xjf boost_1_76_0.tar.bz2 &> /dev/null
rm boost_1_76_0.tar.bz2 &> /dev/null
  • Install dingo
python setup.py install --user

I think this might work.

first clone the dingo repo on the image, then run the init submodule command, get and then follow


# Set the working directory
WORKDIR /app

# Copy the current directory contents into the container at /app
ADD . /app

# Run dingo when the container launches
CMD ["python", "setup.py"]