Skip to content
Snippets Groups Projects

TST: Make NamedTemporaryFiles Windows-compatible

Merged Florian Spreckelsen requested to merge release-0.11.0 into main
54 files
+ 2059
283
Compare changes
  • Side-by-side
  • Inline
Files
54
+ 24
9
###############################
###### Temporary Image ########
###############################
FROM debian:bookworm as git_base
# Check for availability of DNS
RUN if getent hosts indiscale.com > /dev/null; \
then echo "Connected to the internet and DNS available"; \
else echo "No internet connection or DNS not available"; \
fi
COPY . /git
# Delete .git because it is huge.
RUN rm -r /git/.git
# Install pycaosdb.ini for the tests
RUN mv /git/.docker/tester_pycaosdb.ini /git/integrationtests/pycaosdb.ini
###############################
###### Main Image Build #######
###############################
FROM debian:bookworm
RUN apt-get update && \
apt-get install \
@@ -26,16 +49,8 @@ ADD https://gitlab.indiscale.com/api/v4/projects/104/repository/commits/${ADVANC
advanced_version.json
RUN git clone https://gitlab.indiscale.com/caosdb/src/caosdb-advanced-user-tools.git && \
cd caosdb-advanced-user-tools && git checkout ${ADVANCED} && pip3 install --break-system-packages .[h5-crawler]
COPY . /git
# Delete .git because it is huge.
RUN rm -r /git/.git
# Install pycaosdb.ini for the tests
RUN mv /git/.docker/tester_pycaosdb.ini /git/integrationtests/pycaosdb.ini
# TODO Remove once https://github.com/ResearchObject/ro-crate-py/issues/203 has been resolved.
RUN pip3 install --break-system-packages git+https://github.com/salexan2001/ro-crate-py.git@f-automatic-dummy-ids
COPY --from=git_base /git /git
RUN cd /git/ && pip3 install --break-system-packages .[h5-crawler,spss,rocrate]
Loading