-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
68 lines (56 loc) · 2.12 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
60
61
62
63
64
65
66
67
# This is the LSDTopoTools container that includes the point cloud library (PCL)
# PCL is HUGE. Also it won't compile on the lightweight alpine container so the Linxu build is also large
# This means that this container is *MUCH* larger than the lsdtt-alpine container.
# You should only use this container if you intend to use the components of LSDTopoTools
# that require the point cloud library.
# These include
# * The terrace code
# * Code that includes swath profiling
# * Any code that includes biomass
# If you are not a developer, the only place you will really encounter PCL is in the terrace code.
# If you do not plan to use this, we suggest using the lsdtt-alpine container:
# https://hub.docker.com/r/lsdtopotools/lsdtt_alpine_docker/
# For documentation see:
# https://lsdtopotools.github.io/LSDTT_documentation/
# Pull base image.
FROM ubuntu:18.04
MAINTAINER Simon Mudd ([email protected]) and Fiona Clubb ([email protected])
# Need this to shortcut the stupid tzdata noninteractive thing
ARG DEBIAN_FRONTEND=noninteractive
# These are the basic build tools
RUN apt-get update && apt-get install -y \
apt-utils \
bash \
tzdata \
build-essential \
git \
cmake \
&& rm -rf /var/lib/apt/lists/*
# Now some extra bells and whistles
RUN apt-get update && apt-get install -y \
gdal-bin \
libfftw3-dev \
python-gdal \
&& rm -rf /var/lib/apt/lists/*
# And this is the point cloud library
# install pcl
RUN apt-get update && apt-get install -y \
libpcl-dev \
&& rm -rf /var/lib/apt/lists/*
# Install some projection tools
RUN apt-get update && apt-get install -y \
libproj-dev \
&& rm -rf /var/lib/apt/lists/*
# Install some simple scripts for zipping and fetching things from the internet
RUN apt-get update && apt-get install -y \
wget \
unzip \
&& rm -rf /var/lib/apt/lists/*
# Set the working directory
WORKDIR /LSDTopoTools
# Copy the startup script
COPY Start_LSDTT.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/Start_LSDTT.sh
# 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