core-lightning/contrib/docker/Dockerfile.tester
ShahanaFarooqui 7783658489 ci: Unify bitcoin versions for whole project
- Updated all Bitcoin version 27.1
- Updated all Elements versions 23.2.1

Changelog-Changed: Updated Bitcoin to v27.1 and Elements to v23.2.1
2024-07-02 11:41:36 +09:30

79 lines
2.0 KiB
Docker

FROM ubuntu:22.04
LABEL mantainer="Christian Decker <decker.christian@gmail.com>"
ENV DEBIAN_FRONTEND noninteractive
ENV BITCOIN_VERSION 27.1
ENV ELEMENTS_VERSION 23.2.1
RUN useradd -ms /bin/bash tester
RUN mkdir /build /bolts && chown tester -R /build /bolts
WORKDIR /build
RUN apt-get -qq update && \
apt-get -qq install --no-install-recommends --allow-unauthenticated -yy \
autoconf \
autoconf \
automake \
binfmt-support \
build-essential \
clang \
cppcheck \
docbook-xml \
eatmydata \
gcc-aarch64-linux-gnu \
gcc-arm-linux-gnueabihf \
gcc-arm-none-eabi \
gettext \
git \
libc6-dev-arm64-cross \
libc6-dev-armhf-cross \
libpq-dev \
libprotobuf-c-dev \
libsqlite3-dev \
libtool \
libxml2-utils \
locales \
net-tools \
postgresql-10 \
python-pkg-resources \
python3 \
python3-dev \
python3-pip \
python3-setuptools \
qemu \
qemu-system-arm \
qemu-user-static \
shellcheck \
software-properties-common \
sudo \
tcl \
unzip \
valgrind \
wget \
jq \
xsltproc \
zlib1g-dev && \
rm -rf /var/lib/apt/lists/*
ENV LANGUAGE=en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV LC_ALL=en_US.UTF-8
RUN locale-gen en_US.UTF-8 && dpkg-reconfigure locales
RUN echo "tester ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/tester && \
chmod 0440 /etc/sudoers.d/tester
RUN cd /tmp/ && \
wget https://bitcoincore.org/bin/bitcoin-core-$BITCOIN_VERSION/bitcoin-$BITCOIN_VERSION-x86_64-linux-gnu.tar.gz && \
wget https://github.com/ElementsProject/elements/releases/download/elements-$ELEMENTS_VERSION/elements-$ELEMENTS_VERSION-x86_64-linux-gnu.tar.gz && \
tar -xzf bitcoin-$BITCOIN_VERSION-x86_64-linux-gnu.tar.gz && \
tar -xzf elements-$ELEMENTS_VERSION-x86_64-linux-gnu.tar.gz && \
mv bitcoin-$BITCOIN_VERSION/bin/* /usr/local/bin && \
mv elements-$ELEMENTS_VERSION/bin/* /usr/local/bin && \
rm -rf \
bitcoin-$BITCOIN_VERSION-x86_64-linux-gnu.tar.gz \
bitcoin-$BITCOIN_VERSION \
elements-$ELEMENTS_VERSION-x86_64-linux-gnu.tar.gz \
elements-$ELEMENTS_VERSION
USER tester