Skip to content
Snippets Groups Projects
Dockerfile 1.06 KiB
Newer Older
Henrik tom Woerden's avatar
Henrik tom Woerden committed
FROM debian:latest
RUN apt-get update && \
Henrik tom Wörden's avatar
Henrik tom Wörden committed
	 apt-get install \
	 curl \
	 python3 \
	 python3-pip \
	 git \
	 openjdk-11-jdk-headless \
	 python-autopep8 \
     python3-pytest \
Henrik tom Wörden's avatar
ne  
Henrik tom Wörden committed
     libxml2 \
Henrik tom Wörden's avatar
Henrik tom Wörden committed
	 -y
Henrik tom Woerden's avatar
Henrik tom Woerden committed
COPY .docker/wait-for-it.sh /wait-for-it.sh
Henrik tom Wörden's avatar
Henrik tom Wörden committed
ADD https://gitlab.com/api/v4/projects/13656973/repository/branches/master \
   pylib_version.json
RUN git clone https://gitlab.com/caosdb/caosdb-pylib.git && \
Henrik tom Woerden's avatar
Henrik tom Woerden committed
   cd caosdb-pylib && pip3 install .
Henrik tom Wörden's avatar
Henrik tom Wörden committed
ADD https://gitlab.com/api/v4/projects/13656965/repository/branches/master \
   model_version.json
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/master \
   scifolder_version.json
    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
CMD /wait-for-it.sh caosdb-server:10443 -t 500 -- ./test.sh