Skip to content
Snippets Groups Projects
Dockerfile 825 B
Newer Older
FROM debian:11
Henrik tom Woerden's avatar
Henrik tom Woerden committed
RUN apt-get update && \
    apt-get install \
    curl \
Henrik tom Wörden's avatar
Henrik tom Wörden committed
    pkgconf \
    python3 \
    python3-pip \
    tox \
    git \
    openjdk-11-jdk-headless \
    -y
Henrik tom Woerden's avatar
Henrik tom Woerden committed
COPY .docker/wait-for-it.sh /wait-for-it.sh
ADD https://gitlab.com/api/v4/projects/13656973/repository/branches/dev \
  pylib_version.json
RUN pip install -U pip
RUN git clone --depth 1 --branch dev https://gitlab.com/caosdb/caosdb-pylib.git && \
   cd caosdb-pylib && pip install -U .
Henrik tom Wörden's avatar
Henrik tom Wörden committed
# At least recommonmark 0.6 required.
# RUN pip install -U html2text pycodestyle pylint recommonmark sphinx-rtd-theme gitignore-parser
Henrik tom Woerden's avatar
Henrik tom Woerden committed
COPY . /git
RUN rm -r /git/.git \
    && mv /git/.docker/pycaosdb.ini /git/integrationtests
RUN cd /git && pip install -U .[all]
WORKDIR /git/integrationtests
CMD /wait-for-it.sh caosdb-server:10443 -t 500 -- ./test.sh --force