Browse Source

docker: update

maintenance
Pyrocko Test Debugger 1 month ago
parent
commit
2918e8e6b0
  1. 3
      .gitignore
  2. 11
      docker/build_docker_images.sh
  3. 6
      docker/docs/Dockerfile
  4. 2
      docker/fat-nest/Dockerfile
  5. 17
      docker/nest/Dockerfile
  6. 2
      docker/pyrocko/Dockerfile
  7. 5
      docker/util/Dockerfile

3
.gitignore

@ -38,4 +38,5 @@ __pycache__/
/maintenance/pip/pyrocko/
/maintenance/pip/wheels/
/docker/pyrocko-test-data/
/docker/*/pyrocko-test-data/

11
docker/build_docker_images.sh

@ -1,5 +1,16 @@
#!/bin/bash
set -e
rm -rf pyrocko-test-data
wget -r http://data.pyrocko.org/testing/pyrocko/ -nv --no-parent -nH --cut-dirs=2 -P pyrocko-test-data
docker build nest -t pyrocko-nest
rm -rf fat-nest/pyrocko-test-data
cp -r pyrocko-test-data fat-nest
docker build fat-nest -t pyrocko-fat-nest
docker build docs -t pyrocko-docs
docker build util -t pyrocko-util
docker build pyrocko -t pyrocko

6
docker/docs/Dockerfile

@ -11,10 +11,10 @@ RUN apt-get install -y make git
RUN apt-get install -y python3-dev python3-setuptools python3-numpy-dev
# docs requirements
RUN apt-get install -y python3-sphinx \
RUN apt-get install -y \
texlive-fonts-recommended texlive-latex-extra \
texlive-latex-recommended texlive-generic-extra
RUN pip3 install git+https://git.pyrocko.org/pyrocko/sphinx-sleekcat-theme.git
texlive-latex-recommended
RUN pip3 install sphinx==1.8.5 git+https://git.pyrocko.org/pyrocko/sphinx-sleekcat-theme.git
# base runtime requirements
RUN apt-get install -y \

2
docker/fat-nest/Dockerfile

@ -0,0 +1,2 @@
FROM pyrocko-nest
COPY pyrocko-test-data /pyrocko-test-data

17
docker/nest/Dockerfile

@ -4,7 +4,6 @@ RUN apt-get update -y
RUN apt-get upgrade -y
# env requirements
RUN apt-get install -y python-pip
RUN apt-get install -y python3-pip
RUN pip3 install twine
RUN apt-get install -y wget
@ -14,20 +13,13 @@ RUN pip3 install flake8
# build requirements
RUN apt-get install -y make git
RUN apt-get install -y python-dev python-setuptools python-numpy-dev
RUN apt-get install -y python3-dev python3-setuptools python3-numpy-dev
# testing requirements
RUN apt-get install -y xvfb libgles2-mesa
RUN apt-get install -y python-coverage python-nose
RUN apt-get install -y python3-coverage python3-nose
# base runtime requirements
RUN apt-get install -y \
python-numpy python-scipy python-matplotlib \
python-requests python-future \
python-yaml python-progressbar
RUN apt-get install -y \
python3-numpy python3-scipy python3-matplotlib \
python3-requests python3-future \
@ -35,19 +27,10 @@ RUN apt-get install -y \
# gui runtime requirements
RUN apt-get install -y \
python-qt4 python-qt4-gl \
python-pyqt5 python-pyqt5.qtopengl python-pyqt5.qtsvg \
python-pyqt5.qtwebengine python-pyqt5.qtwebkit
RUN apt-get install -y \
python3-pyqt4 python3-pyqt4.qtopengl \
python3-pyqt5 python3-pyqt5.qtopengl python3-pyqt5.qtsvg \
python3-pyqt5.qtwebengine python3-pyqt5.qtwebkit
# optional runtime requirements
RUN apt-get install -y \
python-jinja2 python-pybtex
RUN apt-get install -y \
python3-jinja2 python3-pybtex

2
docker/pyrocko/Dockerfile

@ -2,4 +2,4 @@ FROM pyrocko-nest
WORKDIR /src
RUN git clone https://git.pyrocko.org/pyrocko/pyrocko.git \
&& cd pyrocko && python2 setup.py install && python3 setup.py install
&& cd pyrocko && python3 setup.py install

5
docker/util/Dockerfile

@ -0,0 +1,5 @@
FROM debian:stable
RUN apt-get update -y
RUN apt-get upgrade -y
RUN apt-get install -y rsync git python3-pip xvfb libgles2-mesa libfontconfig1 libxrender1 libxkbcommon-x11-0 python3-requests
Loading…
Cancel
Save