Skip to content

Commit

Permalink
Merge pull request #5 from Jeongyong-park/master
Browse files Browse the repository at this point in the history
Dockerfile and Readme
  • Loading branch information
pierotofy committed Jul 30, 2021
2 parents c7fbbcb + ca4ab16 commit af2f4a7
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM ubuntu:20.04 AS builder

ENV TZ=Asia/Seoul
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update
RUN apt-get --assume-yes install software-properties-common
RUN apt-get install -y gdal-bin libgdal-dev libomp-dev cmake make
RUN dpkg -l | grep -i gdal
RUN apt-get --assume-yes install build-essential
#RUN apt-get install -y gcc gpp

# Copy everything
COPY . /code

RUN mkdir /code/build
WORKDIR /code/build
RUN cmake .. && make

FROM ubuntu:20.04
ENV TZ=Asia/Seoul
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update
RUN apt-get --assume-yes install libgdal-dev libomp-dev
COPY --from=builder /code /code
WORKDIR /code
RUN ln -sfnv /code/build/dem2mesh /usr/bin/dem2mesh
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ Fast generation of 2.5D meshes from elevation models.

![image](https://user-images.githubusercontent.com/1951843/47351205-7e22bb80-d685-11e8-87c5-33b21ae05b75.png)

## Quickstart

```bash
docker run -it --rm -v /path-your-data:/data kladess/dem2mesh dem2mesh -rtc -verbose -inputFile /data/dem.tif -outputFile /data/mesh.ply
```

## Dependencies

GDAL and OpenMP are the only dependencies. To install it run:
Expand Down

0 comments on commit af2f4a7

Please sign in to comment.