-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
59 lines (43 loc) · 1.84 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# This is the full lsdtopytools container
# It includes all the python packages needed to run both lsdtopytools and lsdviztools
# lsdtopytools and lsdviztools are installed
# lsdtt command line tools are also installed
# As is the jupyter notebook which you can start with
# jupyter notebook --ip 0.0.0.0 --port 8888 --no-browser --allow-root
# Pull base image. We start from the mambaforge image
FROM condaforge/mambaforge
MAINTAINER Simon Mudd ([email protected])
# Need this to shortcut the stupid tzdata noninteractive thing
ARG DEBIAN_FRONTEND=noninteractive
# We need to change the python version
RUN mamba install -y python=3.9
# We need some stuff to get lsdtopytools to install
RUN apt-get update && apt-get install -y \
build-essential \
libfftw3-dev \
&& rm -rf /var/lib/apt/lists/*
# Some tools for fetching data
RUN mamba install -y wget unzip
# Some of the plotting tools use ffmpeg
RUN mamba install -y ffmpeg
# Install topotools command line interface
RUN mamba install -y lsdtopotools=0.8
# Now an environment for building conda
RUN mamba install -y conda-build
# Add git
RUN mamba install -y git
# Now the ipython stack for creating local ipython servers
RUN mamba install -y ipython ipykernel jupyter jupyter-book
# Now add some conda packages
RUN mamba install -y gdal rasterio geopandas matplotlib numpy scipy pytables numba feather-format pandas pip pybind11 xtensor xtensor-python fiona utm pyproj cartopy folium h5py descartes
# Add viztools and paramselector
RUN pip install lsdviztools==0.4.11 lsdttparamselector
# Add lsdtopytools
#RUN mamba install -y lsdtt-xtensor-python
# Add lsdtopytools
#RUN mamba install -y lsdtopytools
# Set the working directory
WORKDIR /LSDTopoTools
# Copy the script for fetching example data
COPY Get_LSDTT_example_data.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/Get_LSDTT_example_data.sh