Skip to content

Commit

Permalink
Dockerfile and Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeongyong-park committed Apr 15, 2021
1 parent 9f970dd commit d4a9e45
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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

ENTRYPOINT ["/code/build/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 -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 d4a9e45

Please sign in to comment.