Skip to content
Snippets Groups Projects
Dockerfile 844 B
Newer Older
Henrik tom Woerden's avatar
Henrik tom Woerden committed
FROM debian:latest
RUN apt-get update && \
	 apt-get install curl python3 python3-pip git python-autopep8 \
     python3-pytest -y
COPY .docker/wait-for-it.sh /wait-for-it.sh
RUN git clone https://gitlab.com/caosdb/caosdb-pylib.git && \
Henrik tom Woerden's avatar
Henrik tom Woerden committed
   cd caosdb-pylib && pip3 install .
RUN git clone https://gitlab.com/caosdb/caosdb-models.git && \
Henrik tom Woerden's avatar
Henrik tom Woerden committed
   cd caosdb-models && pip3 install .
ADD https://gitlab.com/api/v4/projects/13601752/repository/branches/project_cfood \
   scifolder_version.json
RUN git clone -b project_cfood \
    https://gitlab.com/henrik_indiscale/scifolder.git && \
    cd scifolder && pip3 install .
Henrik tom Woerden's avatar
Henrik tom Woerden committed
COPY . /git
RUN rm -r /git/.git \
    && mv /git/.docker/pycaosdb.ini /git/integrationtests/full_test
Henrik tom Woerden's avatar
Henrik tom Woerden committed
RUN cd /git && pip3 install .
WORKDIR /git/integrationtests/full_test
Henrik tom Woerden's avatar
Henrik tom Woerden committed
CMD /wait-for-it.sh caosdb-server:10443 -t 120 -- ./test.sh