Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a Dockerfile based on entwine:dependencies base images #100

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# docker build -t untwine:latest .
# docker run -it -v "$PWD":/untwine untwine:latest --files=/untwine/test.las --output_dir=/untwine/test.ept.copc --single_file --stats

FROM connormanning/entwine:dependencies
MAINTAINER Howard Butler <[email protected]>

RUN cd /opt/ && \
wget https://ftp.gnu.org/gnu/time/time-1.9.tar.gz && \
tar zxvf time-1.9.tar.gz && \
cd time-1.9 && \
./configure && \
make && \
make install && \
cp time /usr/bin/time

RUN cd /opt && \
git clone -b 3.0.0 https://github.com/verma/laz-perf.git && \
cd /opt/laz-perf && \
mkdir build && \
cd build && \
cmake .. && \
make && \
make install && \
cd ..

ENV LAZPERF_DIR /opt/laz-perf/build/cpp
ENV LD_LIBRARY_PATH /opt/laz-perf/build/cpp

RUN cd /opt && \
git clone -b main https://github.com/hobu/untwine.git && \
cd /opt/untwine && \
mkdir build && \
cd build && \
cmake .. && \
make && \
make install

RUN chmod -R go+rX /opt/laz-perf /opt/untwine
RUN mkdir /untwine
RUN chmod -R go+rwX /untwine

RUN useradd --create-home --no-log-init --shell /bin/bash untwine
USER untwine
RUN cd $HOME

ENTRYPOINT ["/usr/bin/time", "-v", "untwine"]
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ cmake ..
make
```

Building a local docker image:
--------
```
docker build -t untwine:latest .
```

Using Untwine
-------------

Expand All @@ -37,6 +43,11 @@ Example:
untwine --files=some_directory --output_dir=output_directory
```

Or with your previously built local docker image:
```
docker run -it -v "$PWD":/untwine untwine:latest --files=/untwine/test.laz --output_dir=/untwine/test.ept.copc --single_file --stats
```

Options
-------

Expand Down