Commit c659235e authored by root's avatar root
Browse files

Adding dockerization

parent 997b1151
#
#
#
#
# ------------------------------------------------------------------
FROM continuumio/miniconda3
SHELL ["/bin/bash", "--login", "-c"]
ARG ROOTPATH=/tmp
ARG WORKSPACE=$ROOTPATH/workspace
ARG APPDATA=$ROOTPATH/appdata
RUN cd $ROOTPATH && \
git clone https://gitlab.ifremer.fr/downloader/downloader_daemon.git && \
conda env create -f downloader_daemon/environment.yaml && \
apt-get -y update && \
apt-get -y install gcc && \
conda init bash && \
rm -rf /var/cache/apk/*
WORKDIR $ROOTPATH/downloader_daemon
RUN conda clean -a && \
conda activate downloader && \
pip install -r requirements.txt --index-url https://nexus-test.ifremer.fr/repository/pypi-public-release/pypi \
--index-url https://nexus-test.ifremer.fr/repository/pypi-public-release/simple \
--extra-index-url https://nexus-test.ifremer.fr/repository/pypi-public-snapshot/simple \
--extra-index-url https://nexus-test.ifremer.fr/repository/pypi-private-release/simple \
--extra-index-url https://nexus-test.ifremer.fr/repository/pypi-private-snapshot/simple && \
pip install .
# ------------------------------------------------------------------
EXPOSE 80
ENV DATAPATH=/home
ENV CONFIG_FILE=${APPDATA}/application.yaml OPTIONS="-f"
RUN mkdir -p ${WORKSPACE} && \
mkdir -p ${APPDATA} && \
mkdir -p /home/data && \
chmod 777 ${WORKSPACE} && \
chmod 777 ${APPDATA} && \
chmod 777 ${DATAPATH}
VOLUME [ "${WORKSPACE}" , "${APPDATA}" , "${DATAPATH}"]
ENTRYPOINT conda activate downloader && \
downloader -c ${CONFIG_FILE} ${OPTIONS}
CMD [ "/bin/bash" ]
netCDF4~=1.4.0
celery~=4.3.0
simplejson~=3.16.0
SQLAlchemy~=1.3.8
......@@ -11,3 +10,4 @@ elasticsearch~=6.4
urllib3<=1.24.3
eccodes-python~=0.9.7
numpy~=1.18
netCDF4~=1.5.0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment