use unstable debian release
This commit is contained in:
parent
5205b53fbf
commit
77b08754c6
2 changed files with 16 additions and 12 deletions
|
@ -1,4 +1,4 @@
|
|||
FROM debian:buster
|
||||
FROM debian:unstable
|
||||
|
||||
RUN echo 'intall build dependencies'; \
|
||||
apt-get update ;\
|
||||
|
@ -12,21 +12,14 @@ RUN echo 'intall build dependencies'; \
|
|||
python3-pip python3-setuptools \
|
||||
swig python3-dev libedit-dev libncurses5-dev libxml2-dev liblzma-dev golang rsync jq;
|
||||
RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - ;\
|
||||
echo "deb http://apt.llvm.org/buster/ llvm-toolchain-buster-10 main\ndeb-src http://apt.llvm.org/buster/ llvm-toolchain-buster-10 main\n$(cat /etc/apt/sources.list)" > /etc/apt/sources.list ;\
|
||||
echo "deb http://apt.llvm.org/unstable/ llvm-toolchain-10 main\ndeb-src http://apt.llvm.org/unstable/ llvm-toolchain-10 main\n$(cat /etc/apt/sources.list)" > /etc/apt/sources.list ;\
|
||||
cat /etc/apt/sources.list; \
|
||||
apt-get update ;\
|
||||
apt-get upgrade -y ;\
|
||||
apt-get install -y \
|
||||
clang-10 lld-10 clang-tidy-10 clang-format-10 \
|
||||
;\
|
||||
ln -s /usr/bin/clang-10 /usr/bin/clang;\
|
||||
ln -s /usr/bin/clang++-10 /usr/bin/clang++;\
|
||||
ln -s /usr/bin/clang-tidy-10 /usr/bin/clang-tidy;\
|
||||
ln -s /usr/bin/clang-tidy-diff-10 /usr/bin/clang-tidy-diff;\
|
||||
ln -s /usr/bin/clang-format-10 /usr/bin/clang-format;\
|
||||
ln -s /usr/bin/clang-format-diff-10 /usr/bin/clang-format-diff;\
|
||||
ln -s /usr/bin/lld-10 /usr/bin/lld;\
|
||||
apt-get clean;
|
||||
apt-get clean
|
||||
|
||||
RUN echo 'configure locale'; \
|
||||
sed --in-place '/en_US.UTF-8/s/^#//' /etc/locale.gen ;\
|
||||
|
@ -44,3 +37,12 @@ ENV LC_ALL en_US.UTF-8
|
|||
# TODO: that should be done during the build as it will pull this repo anyway and will have latest version.
|
||||
ADD "https://raw.githubusercontent.com/google/llvm-premerge-checks/master/scripts/requirements.txt" requirements.txt
|
||||
RUN pip3 install -r requirements.txt
|
||||
|
||||
RUN ln -s /usr/bin/clang-10 /usr/bin/clang;\
|
||||
ln -s /usr/bin/clang++-10 /usr/bin/clang++;\
|
||||
ln -s /usr/bin/clang-tidy-10 /usr/bin/clang-tidy;\
|
||||
ln -s /usr/bin/clang-tidy-diff-10.py /usr/bin/clang-tidy-diff;\
|
||||
ln -s /usr/bin/clang-format-10 /usr/bin/clang-format;\
|
||||
ln -s /usr/bin/git-clang-format-10 /usr/bin/git-clang-format;\
|
||||
ln -s /usr/bin/clang-format-diff-10 /usr/bin/clang-format-diff;\
|
||||
ln -s /usr/bin/lld-10 /usr/bin/lld
|
||||
|
|
|
@ -32,3 +32,5 @@ chmod 600 /var/lib/buildkite-agent/.ssh/*
|
|||
chown -R $USER:$USER /var/lib/buildkite-agent/.ssh
|
||||
|
||||
su buildkite-agent -c "buildkite-agent start"
|
||||
echo "agent exited"
|
||||
sleep 10m
|
Loading…
Reference in a new issue