f2462c74b3
fix windows test run unit test round 2 attempting to fix ccache use on darwin made ccache optional, no longer pulls clang on darwin build fixing darwin build from Dockerfile fixed missing nproc on OSX updated readme to include regtest example, build examples fix QT unit tests made -j get passed down, added build.sh
43 lines
2.1 KiB
Docker
43 lines
2.1 KiB
Docker
FROM ubuntu:16.04
|
|
|
|
ARG VCS_REF
|
|
ARG BUILD_DATE
|
|
|
|
ENV LANG C.UTF-8
|
|
|
|
LABEL maintainer="Brannon King" \
|
|
decription="build_lbrycrd" \
|
|
version="1.0" \
|
|
org.label-schema.name="build_lbrycrd" \
|
|
org.label-schema.description="Use this to generate a reproducible build of LBRYcrd" \
|
|
org.label-schema.build-date=$BUILD_DATE \
|
|
org.label-schema.vcs-ref=$VCS_REF \
|
|
org.label-schema.vcs-url="https://github.com/lbryio/lbrycrd" \
|
|
org.label-schema.schema-version="1.0.0-rc1" \
|
|
org.label-schema.docker.cmd="docker build --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` --build-arg VCS_REF=`git rev-parse --short HEAD` -t build_lbrycrd packaging"
|
|
|
|
RUN set -xe; \
|
|
apt-get update; \
|
|
apt-get install --no-install-recommends -y build-essential libtool autotools-dev automake pkg-config git wget apt-utils \
|
|
librsvg2-bin libtiff-tools cmake imagemagick libcap-dev libz-dev libbz2-dev python-setuptools xz-utils ccache g++-multilib \
|
|
g++-mingw-w64-i686 mingw-w64-i686-dev bsdmainutils curl ca-certificates g++-mingw-w64-x86-64 mingw-w64-x86-64-dev; \
|
|
rm -rf /var/lib/apt/lists/*;
|
|
|
|
RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -; \
|
|
echo 'deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-8 main' >> /etc/apt/sources.list; \
|
|
apt-get update; \
|
|
apt-get install --no-install-recommends -y clang-8 lldb-8 lld-8 libc++-8-dev; \
|
|
rm -rf /var/lib/apt/lists/*;
|
|
|
|
RUN update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang-cpp-8 80; \
|
|
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-8 80; \
|
|
update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++ 80; \
|
|
update-alternatives --install /usr/bin/cc cc /usr/bin/clang 80; \
|
|
update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix; \
|
|
update-alternatives --set i686-w64-mingw32-g++ /usr/bin/i686-w64-mingw32-g++-posix; \
|
|
/usr/sbin/update-ccache-symlinks; \
|
|
cd /usr/include/c++ && ln -s /usr/lib/llvm-8/include/c++/v1;
|
|
|
|
ENV PATH "/usr/lib/ccache:$PATH"
|
|
WORKDIR /home
|
|
CMD ["/bin/bash"]
|