2021-05-17 10:05:54 +02:00
|
|
|
# debian:unstable to get a go version > 1.11 (migth have other packages with different version, please check before updating)
|
2020-06-18 16:16:07 +02:00
|
|
|
FROM debian:unstable
|
2020-04-22 16:51:22 +02:00
|
|
|
|
|
|
|
RUN echo 'intall build dependencies'; \
|
|
|
|
apt-get update ;\
|
|
|
|
apt-get install -y --no-install-recommends \
|
2020-06-18 10:54:57 +02:00
|
|
|
locales openssh-client gnupg ca-certificates \
|
|
|
|
zip wget git \
|
|
|
|
cmake gdb build-essential \
|
|
|
|
ninja-build \
|
2021-12-09 17:16:30 +01:00
|
|
|
libelf-dev libffi-dev gcc-multilib \
|
2020-06-18 10:54:57 +02:00
|
|
|
ccache \
|
|
|
|
python3 python3-psutil \
|
2020-04-22 16:51:22 +02:00
|
|
|
python3-pip python3-setuptools \
|
2021-05-17 10:05:54 +02:00
|
|
|
lsb-release software-properties-common \
|
2021-12-16 09:23:18 +01:00
|
|
|
libjemalloc-dev \
|
2020-06-18 10:54:57 +02:00
|
|
|
swig python3-dev libedit-dev libncurses5-dev libxml2-dev liblzma-dev golang rsync jq;
|
2021-05-17 10:05:54 +02:00
|
|
|
RUN wget https://apt.llvm.org/llvm.sh; \
|
|
|
|
chmod +x llvm.sh; \
|
2021-12-09 17:16:30 +01:00
|
|
|
./llvm.sh 13;\
|
|
|
|
apt install -y clang-format-13 clang-tidy-13
|
2020-06-18 10:54:57 +02:00
|
|
|
|
|
|
|
RUN echo 'configure locale'; \
|
2020-04-22 16:51:22 +02:00
|
|
|
sed --in-place '/en_US.UTF-8/s/^#//' /etc/locale.gen ;\
|
|
|
|
locale-gen ;\
|
|
|
|
echo 'make python 3 default'; \
|
|
|
|
rm -f /usr/bin/python && ln -s /usr/bin/python3 /usr/bin/python; \
|
|
|
|
pip3 install wheel
|
|
|
|
|
|
|
|
# Configure locale
|
|
|
|
ENV LANG en_US.UTF-8
|
|
|
|
ENV LANGUAGE en_US:en
|
|
|
|
ENV LC_ALL en_US.UTF-8
|
|
|
|
|
2021-12-09 17:16:30 +01:00
|
|
|
RUN ln -s /usr/bin/clang-13 /usr/bin/clang;\
|
|
|
|
ln -s /usr/bin/clang++-13 /usr/bin/clang++;\
|
|
|
|
ln -s /usr/bin/clang-tidy-13 /usr/bin/clang-tidy;\
|
|
|
|
ln -s /usr/bin/clang-tidy-diff-13.py /usr/bin/clang-tidy-diff;\
|
|
|
|
ln -s /usr/bin/clang-format-13 /usr/bin/clang-format;\
|
|
|
|
ln -s /usr/bin/clang-format-diff-13 /usr/bin/clang-format-diff;\
|
|
|
|
ln -s /usr/bin/lld-13 /usr/bin/lld
|
2020-06-18 16:16:07 +02:00
|
|
|
|