1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2024-10-27 20:44:10 +00:00

replaces arm32v7-debian by arm32v7-alpine image

This commit is contained in:
Falk Werner 2019-05-25 02:44:32 +02:00
parent 9c7fe85312
commit 8ede6595d9
2 changed files with 24 additions and 25 deletions

View File

@ -36,7 +36,6 @@ CONTAINER_USER ?= user
CONTAINER_GROUP ?= user
UBUNTU_CODENAME ?= bionic
DEBIAN_CODENAME ?= testing-slim
ALPINE_CODENAME ?= 3.9
SKIP_MD5SUM ?= $(call filter_out_command,md5sum)
@ -87,16 +86,13 @@ $(SKIP_MD5SUM)$(FETCHDIR)/qemu-arm-static-$(QEMU_VERSION): MD5 := 8ebd24e63fdfa0
CMAKE_TARGETS += amd64-ubuntu-builder
CMAKE_TARGETS += amd64-alpine-builder
CMAKE_TARGETS += arm32v7-ubuntu-builder
CMAKE_TARGETS += arm32v7-debian-builder
CMAKE_TARGETS += arm32v7-alpine-builder
MEMCHECK_FILTER = $(call regex_march_distro,'$(HOST_MARCH)','.*')
UBUNTU_FILTER = $(call regex_march_distro,'.*','ubuntu')
UBUNTU_TARGETS = $(addprefix $(OUTDIR)/docker/,$(call filter_targets,$(UBUNTU_FILTER),$(TARGETS)))
DEBIAN_FILTER = $(call regex_march_distro,'.*','debian')
DEBIAN_TARGETS = $(addprefix $(OUTDIR)/docker/,$(call filter_targets,$(DEBIAN_FILTER),$(TARGETS)))
ALPINE_FILTER = $(call regex_march_distro,'.*','alpine')
ALPINE_TARGETS = $(addprefix $(OUTDIR)/docker/,$(call filter_targets,$(ALPINE_FILTER),$(TARGETS)))
@ -142,8 +138,6 @@ $(CHECK_TARGETS): GOALS := test
$(UBUNTU_TARGETS): CODENAME := $(UBUNTU_CODENAME)
$(DEBIAN_TARGETS): CODENAME := $(DEBIAN_CODENAME)
$(ALPINE_TARGETS): CODENAME := $(ALPINE_CODENAME)
$(FETCH_TARGETS): | $(FETCHDIR)

View File

@ -1,23 +1,27 @@
ARG REGISTRY_PREFIX=''
ARG CODENAME=testing-slim
ARG CODENAME=3.9
FROM ${REGISTRY_PREFIX}arm32v7/debian:${CODENAME} as builder
FROM ${REGISTRY_PREFIX}arm32v7/alpine:${CODENAME} as builder
ARG QEMU_VERSION_=v3.1.0-2
COPY docker/qemu-arm-static-$QEMU_VERSION_ /usr/bin/qemu-arm-static
RUN set -x \
&& apt update \
&& apt upgrade -y \
&& apt install --yes --no-install-recommends \
build-essential \
&& apk add --no-cache \
bash \
coreutils \
gcc \
g++ \
make \
cmake \
ninja-build \
pkg-config \
ninja \
pkgconf \
rsync \
gdb \
gdbserver
valgrind \
util-linux \
util-linux-dev
COPY src /usr/local/src
@ -26,8 +30,8 @@ ARG PARALLELMFLAGS=-j2
ARG DUMB_INIT_VERSION=1.2.2
RUN set -x \
&& builddeps="xxd" \
&& apt install --yes --no-install-recommends $builddeps \
&& builddeps="vim" \
&& apk add --no-cache --virtual .build-deps $builddeps \
&& builddir="/tmp/out" \
&& mkdir -p "$builddir" \
&& cd "$builddir" \
@ -38,7 +42,7 @@ RUN set -x \
&& mv dumb-init /usr/local/bin/dumb-init \
&& dumb-init --version \
&& rm -rf "$builddir" \
&& apt purge -y $builddeps
&& apk del .build-deps
ARG GTEST_VERSION=1.8.1
@ -53,8 +57,8 @@ RUN set -x \
ARG FUSE_VERSION=3.1.1
RUN set -x \
&& builddeps="libtool automake gettext" \
&& apt install --yes --no-install-recommends $builddeps \
&& builddeps="libtool automake autoconf gettext-dev m4 linux-headers" \
&& apk add --no-cache --virtual .build-deps $builddeps \
&& cd "/usr/local/src/libfuse-fuse-$FUSE_VERSION" \
&& ./makeconf.sh \
&& builddir="/tmp/out" \
@ -63,15 +67,15 @@ RUN set -x \
&& "/usr/local/src/libfuse-fuse-$FUSE_VERSION/configure" \
&& make "$PARALLELMFLAGS" install \
&& rm -rf "$builddir" \
&& apt purge -y $builddeps
&& apk del .build-deps
ARG WEBSOCKETS_VERSION=3.1.0
RUN set -x \
&& apt install --yes --no-install-recommends \
&& apk add --no-cache \
ca-certificates \
openssl \
libssl-dev \
openssl-dev \
&& builddir="/tmp/out" \
&& mkdir -p "$builddir" \
&& cd "$builddir" \
@ -90,6 +94,7 @@ RUN set -x \
&& rm -rf "$builddir"
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
ENV PKG_CONFIG_PATH=/usr/local/lib32/pkgconfig
ARG USERID=1000
@ -98,7 +103,7 @@ ARG OUTDIR=/workspace/out
ARG SCRIPTDIR=/workspace/bin
RUN set -x \
&& useradd -u "$USERID" -ms /bin/bash user \
&& adduser -u "$USERID" -s /bin/bash -D user \
&& mkdir -p "$PROJECTDIR" "$OUTDIR" "$SCRIPTDIR" \
&& chown user:user "$PROJECTDIR" "$OUTDIR" "$SCRIPTDIR"