Browse Source

drone testing: add docker stuff

pull/29/head
Pyrocko Test Debugger 1 year ago
parent
commit
fd6e296e19
  1. 18
      docker/build_docker_images.sh
  2. 9
      docker/docs/Dockerfile
  3. 7
      docker/fat-aux/Dockerfile
  4. 4
      docker/fat-nest/Dockerfile
  5. 6
      docker/nest/Dockerfile

18
docker/build_docker_images.sh

@ -0,0 +1,18 @@
#!/bin/bash
docker build nest -t grond-nest
docker build docs -t grond-docs
if [ ! -d "fat-nest/grond-test-data" ] ; then
if [ ! -d "../test/data" ] ; then
echo "Make sure complete test data is in "../test/data", by running the tests."
exit 1
fi
rsync -av "../test/data/" "fat-nest/grond-test-data/"
rsync -av "../test/data/" "fat-aux/grond-test-data/"
fi
docker build fat-nest -t grond-fat-nest
docker build fat-aux -t grond-fat-aux

9
docker/docs/Dockerfile

@ -0,0 +1,9 @@
FROM grond-nest
# docs requirements
RUN apt-get install -y python3-sphinx \
texlive-fonts-recommended texlive-latex-extra \
texlive-latex-recommended texlive-generic-extra \
python3-sphinxcontrib.programoutput
RUN pip3 install git+https://git.pyrocko.org/pyrocko/sphinx-sleekcat-theme.git

7
docker/fat-aux/Dockerfile

@ -0,0 +1,7 @@
FROM pyrocko-aux
# additional runtime requirements for gmt
RUN apt-get install -y \
gmt gmt-gshhg poppler-utils imagemagick
COPY grond-test-data /grond-test-data

4
docker/fat-nest/Dockerfile

@ -0,0 +1,4 @@
FROM grond-nest
COPY grond-test-data /grond-test-data

6
docker/nest/Dockerfile

@ -0,0 +1,6 @@
FROM pyrocko
WORKDIR /src
RUN pip3 install utm
RUN git clone https://github.com/pyrocko/kite.git && cd kite \
&& python3 setup.py install
Loading…
Cancel
Save