Open suvarchal opened 2 years ago
A container for hecuba without needing to build arrow and usable with python upto 3.8 after #375 is merged.
this leverages binaries in conda repositories, could be a template for also installing hecuba without minimal building of dependencies.
Dockerfile
FROM continuumio/miniconda3:latest
RUN apt-get update && apt-get install -y \
automake \
build-essential \
curl \
cmake \
git \
libtool \
libuv1 \
m4 \
&& rm -rf /var/lib/apt/lists/*
# only upto python 3.8 is supported for arrow=0.15.1
RUN conda install python=3.8
RUN conda install -c conda-forge \
pyarrow=0.15.1 \
tbb=2020.0 \
zlib \
&& conda clean -afy
RUN git clone https://github.com/bsc-dd/hecuba.git
WORKDIR /hecuba
ENV LD_LIBRARY_PATH=/opt/conda/lib
ENV C_INCLUDE_PATH=/opt/conda/include
RUN python setup.py install --c_binding=/opt/conda
WORKDIR /
RUN rm -rf /hecuba
Just my notes/issues on hecuba container
A example docker-compose file as such
docker-compose up -d
brings all services up and cassandra nodes can be scaled, for example, asdocker-compose up -d --scale cassandra=2
If you wish I can make a PR or wouldn't mind you doing it either.