-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from AgPipeline/develop
Merging develop into master - no review
- Loading branch information
Showing
3 changed files
with
67 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,54 @@ | ||
FROM agdrone/agpypeline:1.0 | ||
FROM ubuntu:18.04 | ||
LABEL maintainer="Chris Schnaufer <[email protected]>" | ||
|
||
# Add user | ||
RUN useradd -u 49044 extractor \ | ||
&& mkdir /home/extractor | ||
RUN chown -R extractor /home/extractor \ | ||
&& chgrp -R extractor /home/extractor | ||
|
||
# Install the Python version we want | ||
RUN apt-get update && \ | ||
apt-get upgrade -y && \ | ||
apt-get install -y --no-install-recommends \ | ||
python3.7 \ | ||
python3-pip && \ | ||
ln -sfn /usr/bin/python3.7 /usr/bin/python && \ | ||
ln -sfn /usr/bin/python3.7 /usr/bin/python3 && \ | ||
ln -sfn /usr/bin/python3.7m /usr/bin/python3m && \ | ||
apt-get autoremove -y && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Perform some upgrades | ||
RUN python3 -m pip install --upgrade --no-cache-dir pip | ||
RUN python3 -m pip install --upgrade --no-cache-dir setuptools | ||
|
||
# Install applications we need | ||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
python3-gdal \ | ||
gdal-bin \ | ||
libgdal-dev \ | ||
gcc \ | ||
g++ \ | ||
python3.7-dev && \ | ||
python3 -m pip install --upgrade --no-cache-dir \ | ||
wheel && \ | ||
python3 -m pip install --upgrade --no-cache-dir \ | ||
numpy && \ | ||
python3 -m pip install --upgrade --no-cache-dir \ | ||
pygdal==2.2.3.* && \ | ||
apt-get remove -y \ | ||
libgdal-dev \ | ||
gcc \ | ||
g++ \ | ||
python3-dev && \ | ||
apt-get autoremove -y && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Install the requirements we need for this Transformer | ||
COPY requirements.txt packages.txt /home/extractor/ | ||
|
||
USER root | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
liblas | ||
agpypeline==0.0.20 | ||
agpypeline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters