Open
Description
I'm running Ubuntu 18.04 and so created the following initial Dockerfile to get around the cmake version requirements that prevent my following the steps listed in the Demo
section of the README:
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update \
&& apt-get install --yes \
build-essential \
cmake \
python-is-python3 \
&& apt-get clean \
&& rm --recursive --force \
/var/lib/apt/lists/* \
/tmp/* \
/var/tmp/*
RUN mkdir /src
WORKDIR /src
COPY CMakeLists.txt ./
RUN mkdir --parents build/release \
&& cp CMakeLists.txt build/release/
COPY example ./example
COPY src ./src
COPY temp ./temp
COPY util ./util
RUN cmake -DCMAKE_BUILD_TYPE=Release -S . -B build/release \
&& cmake --build build/release --target Demo
I then build it via
# Wouldn't need to use `sudo` on macOS
sudo docker build . --tag midas
and run the compile Demo
app via
sudo docker run \
--tty \
--interactive \
--rm \
--volume $PWD/data:/src/data \
midas \
build/release/Demo
which, when shelling out to the Python scripts, aborts with the following
Traceback (most recent call last):
File "/src/util/EvaluateScore.py", line 20, in <module>
from pandas import read_csv
ModuleNotFoundError: No module named 'pandas'
since pandas
is not available.
To better avoid the need for local environment debugging, my personal preference would be for a known-working Dockerfile.
Metadata
Metadata
Assignees
Labels
No labels