1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2024-10-27 20:44:10 +00:00
falk-werner_webfuse-provider/examples/cmake-gtest-example/builder.dockerfile
nosamad b19a54d2f9 Squashed 'build/dobuild/' content from commit b017db7
git-subtree-dir: build/dobuild
git-subtree-split: b017db7c22e7c0ca6cee3f0f5ac1dd50f3b68eb9
2020-05-25 23:24:23 +02:00

31 lines
714 B
Docker

ARG REGISTRY_PREFIX=''
ARG BUILDER_TAG=0.0.1
ARG USERID=1000
ARG PARALLELMFLAGS=-j2
ARG HOSTMARCH=x86_64
ARG MARCH=$HOSTMARCH
ARG DISTRIB_ID=ubuntu
ARG DISTRIB_VERSION=bionic
ARG SYS=linux
ARG ABI=gnu
FROM ${REGISTRY_PREFIX}${HOSTMARCH}/${MARCH}/${DISTRIB_ID}/${DISTRIB_VERSION}/${SYS}/${ABI}/cmake/builder-template:${BUILDER_TAG}
COPY src /usr/local/src
ARG PARALLELMFLAGS=-j2
ARG GTEST_VERSION=1.8.1
ARG GTEST_MTIME=
RUN set -x \
&& [ -n "$GTEST_MTIME" ] && export SOURCE_DATE_EPOCH="$GTEST_MTIME" \
&& builddir="/tmp/out" \
&& mkdir -p "$builddir" \
&& cd "$builddir" \
&& cmake "/usr/local/src/googletest-release-$GTEST_VERSION" \
&& make "$PARALLELMFLAGS" install \
&& rm -rf "$builddir"