-
Notifications
You must be signed in to change notification settings - Fork 25
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 #17 from camptocamp/aws
Add AWS S3 support
- Loading branch information
Showing
9 changed files
with
283 additions
and
12 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/.git | ||
/build | ||
/Dockerfile* | ||
/.dockerignore | ||
/docs | ||
/README.md |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Build | ||
|
||
on: | ||
- push | ||
|
||
jobs: | ||
main: | ||
name: Build with AWS | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- run: docker build --file=Dockerfile --tag=test . | ||
- run: docker run test extract_profile --help && docker run test extract_area --help | ||
|
||
- run: docker build --file=Dockerfile-aws --tag=aws . | ||
- run: docker run aws extract_profile --help && docker run aws extract_area --help |
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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM ubuntu:23.10 | ||
|
||
RUN --mount=type=cache,target=/var/lib/apt/lists \ | ||
--mount=type=cache,target=/var/cache,sharing=locked \ | ||
apt-get update \ | ||
&& apt-get install --yes build-essential git cmake python3 \ | ||
zlib1g-dev libssl-dev libcurlpp-dev | ||
|
||
WORKDIR /app | ||
|
||
COPY . . | ||
|
||
WORKDIR /app/build | ||
|
||
RUN --mount=type=cache,target=/app/build \ | ||
cmake .. \ | ||
&& make \ | ||
&& cp extract_area extract_profile /usr/bin \ | ||
&& cp liblaszip.so /usr/lib | ||
|
||
RUN extract_profile --help |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
FROM ubuntu:22.04 | ||
|
||
RUN --mount=type=cache,target=/var/lib/apt/lists \ | ||
--mount=type=cache,target=/var/cache,sharing=locked \ | ||
apt-get update \ | ||
&& apt-get install --yes build-essential git cmake python3 \ | ||
zlib1g-dev libssl-dev libcurlpp-dev | ||
|
||
WORKDIR /opt/ | ||
|
||
RUN git clone --recurse-submodules https://github.com/aws/aws-sdk-cpp.git \ | ||
&& cd aws-sdk-cpp \ | ||
&& git checkout 1.11.205 | ||
|
||
WORKDIR /opt/aws-sdk-cpp/build | ||
|
||
|
||
RUN --mount=type=cache,target=/opt/aws-sdk-cpp/build \ | ||
cmake .. -DCMAKE_TOOLCHAIN_FILE=../toolchains/gcc-c++20.cmake -DBUILD_ONLY="s3" \ | ||
&& cmake --build . \ | ||
&& cmake --install . | ||
|
||
WORKDIR /app | ||
|
||
COPY . . | ||
|
||
WORKDIR /app/build | ||
|
||
RUN --mount=type=cache,target=/app/build \ | ||
cmake .. -DWITH_AWS_SDK=ON \ | ||
&& make \ | ||
&& cp extract_area extract_profile /usr/bin \ | ||
&& cp liblaszip.so /usr/lib | ||
|
||
RUN extract_profile --help |
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
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
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
Oops, something went wrong.