2019-04-06 06:09:21 +00:00
|
|
|
ARG REGISTRY_PREFIX=''
|
2020-05-25 22:44:25 +00:00
|
|
|
ARG DISTRIB_VERSION=bionic
|
2019-03-03 12:42:46 +00:00
|
|
|
|
2020-05-25 22:44:25 +00:00
|
|
|
FROM ${REGISTRY_PREFIX}ubuntu:${DISTRIB_VERSION} as builder
|
2019-03-03 12:42:46 +00:00
|
|
|
|
|
|
|
RUN set -x \
|
|
|
|
&& apt update \
|
2019-03-19 23:58:06 +00:00
|
|
|
&& apt upgrade -y \
|
2019-03-03 12:42:46 +00:00
|
|
|
&& apt install --yes --no-install-recommends \
|
|
|
|
build-essential \
|
2020-06-07 14:21:15 +00:00
|
|
|
python3 \
|
|
|
|
python3-pip \
|
|
|
|
python3-setuptools \
|
|
|
|
python3-wheel \
|
2019-03-03 12:42:46 +00:00
|
|
|
cmake \
|
|
|
|
ninja-build \
|
2019-03-19 23:58:06 +00:00
|
|
|
pkg-config \
|
2019-04-02 20:21:02 +00:00
|
|
|
gdb \
|
|
|
|
gdbserver \
|
2019-04-17 20:51:16 +00:00
|
|
|
valgrind \
|
2020-06-07 14:21:15 +00:00
|
|
|
lcov \
|
|
|
|
git \
|
|
|
|
ca-certificates \
|
|
|
|
openssl \
|
|
|
|
libssl-dev \
|
|
|
|
&& pip3 install --system meson
|
2019-03-03 12:42:46 +00:00
|
|
|
|
2019-03-20 23:43:53 +00:00
|
|
|
COPY src /usr/local/src
|
2019-03-03 12:42:46 +00:00
|
|
|
|
2019-03-20 23:43:53 +00:00
|
|
|
ARG PARALLELMFLAGS=-j2
|
2019-03-03 12:42:46 +00:00
|
|
|
|
2019-04-06 06:09:21 +00:00
|
|
|
ARG DUMB_INIT_VERSION=1.2.2
|
2019-04-02 20:21:02 +00:00
|
|
|
|
|
|
|
RUN set -x \
|
|
|
|
&& builddeps="xxd" \
|
|
|
|
&& apt install --yes --no-install-recommends $builddeps \
|
|
|
|
&& builddir="/tmp/out" \
|
|
|
|
&& mkdir -p "$builddir" \
|
|
|
|
&& cd "$builddir" \
|
2019-04-06 06:09:21 +00:00
|
|
|
&& cp -R "/usr/local/src/dumb-init-$DUMB_INIT_VERSION" . \
|
|
|
|
&& cd "dumb-init-$DUMB_INIT_VERSION" \
|
2019-04-02 20:21:02 +00:00
|
|
|
&& make "$PARALLELMFLAGS" \
|
|
|
|
&& chmod +x dumb-init \
|
|
|
|
&& mv dumb-init /usr/local/bin/dumb-init \
|
|
|
|
&& dumb-init --version \
|
|
|
|
&& rm -rf "$builddir" \
|
|
|
|
&& apt purge -y $builddeps
|
|
|
|
|
2020-03-20 16:03:33 +00:00
|
|
|
ARG FUSE_VERSION=3.9.1
|
2019-03-23 01:17:44 +00:00
|
|
|
|
2019-03-03 12:42:46 +00:00
|
|
|
RUN set -x \
|
2020-06-07 14:21:15 +00:00
|
|
|
&& builddeps="udev gettext" \
|
2019-04-02 20:21:02 +00:00
|
|
|
&& apt install --yes --no-install-recommends $builddeps \
|
|
|
|
&& builddir="/tmp/out" \
|
|
|
|
&& mkdir -p "$builddir" \
|
2020-06-07 14:21:15 +00:00
|
|
|
&& meson -Dexamples=false "$builddir" "/usr/local/src/libfuse-fuse-$FUSE_VERSION" \
|
|
|
|
&& ninja "$PARALLELMFLAGS" -C "$builddir" install \
|
2019-04-02 20:21:02 +00:00
|
|
|
&& rm -rf "$builddir" \
|
|
|
|
&& apt purge -y $builddeps
|
2019-03-03 12:42:46 +00:00
|
|
|
|
2019-03-23 01:17:44 +00:00
|
|
|
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
|
2019-03-03 12:42:46 +00:00
|
|
|
|
2019-03-20 00:32:55 +00:00
|
|
|
ARG USERID=1000
|
|
|
|
|
2019-03-23 01:17:44 +00:00
|
|
|
RUN set -x \
|
2020-05-25 22:44:25 +00:00
|
|
|
&& useradd -u "$USERID" -ms /bin/bash user
|
2019-03-03 12:42:46 +00:00
|
|
|
|
2019-04-02 20:21:02 +00:00
|
|
|
ENTRYPOINT ["dumb-init", "--"]
|
2020-05-25 22:44:25 +00:00
|
|
|
CMD [ "/bin/bash" ]
|
|
|
|
|