Init
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simon Bruder 2020-02-22 15:27:40 +00:00
commit 93b435e377
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
2 changed files with 54 additions and 0 deletions

13
.drone.yml Normal file
View file

@ -0,0 +1,13 @@
kind: pipeline
name: default
steps:
- name: docker
image: plugins/docker
settings:
registry: r.sbruder.de
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: r.sbruder.de/arc_unpacker

41
Dockerfile Normal file
View file

@ -0,0 +1,41 @@
FROM debian:testing as builder
RUN apt-get update \
&& apt-get -y install \
build-essential \
cmake \
git \
libboost-filesystem-dev \
libboost-locale-dev \
libjpeg-dev \
libpng-dev \
libssl-dev \
libwebp-dev \
&& rm -rf /var/lib/apt/lists
RUN git clone --depth=1 https://github.com/vn-tools/arc_unpacker \
&& cd arc_unpacker \
&& grep -v test CMakeLists.txt > CMakeLists.txt.tmp \
&& mv CMakeLists.txt.tmp CMakeLists.txt \
&& touch /tmp/catch.h \
&& mkdir build \
&& cd build \
&& cmake -DCMAKE_BUILD_TYPE=release -DCATCH_PATH=/tmp/catch.h .. \
&& make -j 4
FROM debian:testing-slim
RUN apt-get update \
&& apt-get -y install --no-install-recommends \
libboost-filesystem1.67 \
libboost-locale1.67 \
libjpeg62 \
libpng16-16 \
libssl1.1 \
libwebp6 \
&& rm -rf /var/lib/apt/lists
COPY --from=builder /arc_unpacker/build/arc_unpacker /usr/local/bin/
COPY --from=builder /arc_unpacker/etc/ /usr/local/etc/
ENTRYPOINT ["/usr/local/bin/arc_unpacker"]