Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
26de8f7b3b | ||
|
|
30707087b8 | ||
|
|
7258a028d7 | ||
|
|
588a157d18 | ||
|
|
e2d7f231d5 | ||
|
|
a850049f40 | ||
|
|
78ed1605aa | ||
|
|
6f0dd9324b | ||
|
|
296f277d40 | ||
|
|
95189976be | ||
|
|
405c15413c | ||
|
|
0afd5e92de | ||
|
|
0df20ec20a | ||
|
|
ec7adf17ec | ||
|
|
abf81fc240 | ||
|
|
a7a054a5d8 |
No files matched your search
+75
-15
@@ -1,12 +1,33 @@
|
||||
FROM ubuntu:bionic
|
||||
|
||||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||
|
||||
RUN apt-get update && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||
gnupg \
|
||||
software-properties-common \
|
||||
wget
|
||||
|
||||
RUN \
|
||||
echo "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main" >> /etc/apt/sources.list && \
|
||||
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key > llvm_key && apt-key add llvm_key
|
||||
|
||||
# Add Kitware repo to get latest cmake
|
||||
RUN \
|
||||
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | apt-key add - && \
|
||||
apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main' && \
|
||||
apt update
|
||||
|
||||
RUN \
|
||||
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||
libllvm-9-ocaml-dev libllvm9 llvm-9 llvm-9-dev llvm-9-doc llvm-9-examples llvm-9-runtime \
|
||||
clang-9 clang-tools-9 clang-9-doc libclang-common-9-dev libclang-9-dev libclang1-9 clang-format-9 python-clang-9 clangd-9 \
|
||||
libfuzzer-9-dev \
|
||||
lldb-9 \
|
||||
lld-9 \
|
||||
libc++-9-dev libc++abi-9-dev \
|
||||
autoconf \
|
||||
automake \
|
||||
bsdmainutils \
|
||||
ccache \
|
||||
clang-format \
|
||||
clang \
|
||||
cmake \
|
||||
curl \
|
||||
libunwind8 \
|
||||
@@ -22,13 +43,11 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||
htop \
|
||||
iputils-ping \
|
||||
libc6-dbg \
|
||||
libclang-dev \
|
||||
liblttng-ust-dev \
|
||||
libncurses5-dev \
|
||||
libreadline-dev \
|
||||
libtool \
|
||||
libz-dev \
|
||||
llvm \
|
||||
locales \
|
||||
lttng-modules-dkms \
|
||||
lttng-tools \
|
||||
@@ -39,6 +58,8 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||
openssh-server \
|
||||
pkg-config \
|
||||
python-pip \
|
||||
python3-pip \
|
||||
python3-venv \
|
||||
screen \
|
||||
silversearcher-ag \
|
||||
sudo \
|
||||
@@ -70,10 +91,29 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||
libpq-dev \
|
||||
libpqxx-dev \
|
||||
zip \
|
||||
parallel \
|
||||
patchelf \
|
||||
# aws tools
|
||||
awscli \
|
||||
&& rm -rf /var/lig/apt/lists/*
|
||||
|
||||
|
||||
run \
|
||||
update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-9 100; \
|
||||
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-9 100; \
|
||||
update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-9 100; \
|
||||
update-alternatives --install /usr/bin/clangd clangd /usr/bin/clangd-9 100; \
|
||||
update-alternatives --config clang; \
|
||||
update-alternatives --config clang++; \
|
||||
update-alternatives --config clang-format; \
|
||||
update-alternatives --config clangd
|
||||
|
||||
# this is done here so that ccache sees clang++ installed, not clang-9
|
||||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y ccache
|
||||
|
||||
|
||||
run pip install pybars3 paramiko mkdocs
|
||||
run pip3 install paramiko cryptography
|
||||
run npm install -g npx
|
||||
|
||||
# fix locale so we can run tmux
|
||||
@@ -84,9 +124,6 @@ run locale-gen
|
||||
# expand libc sources
|
||||
run cd /usr/src/glibc ; tar xvf glibc-*.tar.xz
|
||||
|
||||
# build cgdb (the version shipped with ubuntu is too old)
|
||||
copy cgdb-0.7.0.tar.gz /externals/
|
||||
run cd /externals/ && tar -xvzf cgdb-0.7.0.tar.gz && cd cgdb-0.7.0 && ./configure && make -j$(nproc) && make install
|
||||
|
||||
# setup ssh
|
||||
RUN mkdir /var/run/sshd && echo 'root:root' | chpasswd && \
|
||||
@@ -119,7 +156,7 @@ RUN wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsof
|
||||
&& sudo apt-get install apt-transport-https -y \
|
||||
&& sudo apt-get update \
|
||||
&& sudo apt-get install dotnet-sdk-2.1 -y \
|
||||
&& sudo apt-get install dotnet-sdk-3.0 -y
|
||||
&& sudo apt-get install dotnet-sdk-3.1 -y
|
||||
|
||||
# Enable detection of running in a container
|
||||
ENV DOTNET_RUNNING_IN_CONTAINER=true \
|
||||
@@ -185,15 +222,18 @@ RUN \
|
||||
libpcap0.8-dev \
|
||||
libtool-bin \
|
||||
&& cd /tmp \
|
||||
&& curl -fSL https://www.openonload.org/download/openonload-${ONLOAD_VERSION}.tgz -o /tmp/openonload-${ONLOAD_VERSION}.tgz \
|
||||
&& echo "${ONLOAD_MD5SUM} openonload-${ONLOAD_VERSION}.tgz" | md5sum --check \
|
||||
&& tar -zxf openonload-${ONLOAD_VERSION}.tgz \
|
||||
&& cd /tmp/openonload-${ONLOAD_VERSION} \
|
||||
## && curl -fSL https://www.openonload.org/download/openonload-${ONLOAD_VERSION}.tgz -o /tmp/openonload-${ONLOAD_VERSION}.tgz \
|
||||
&& curl -fSL https://github.com/rigtorp/openonload/archive/master.zip -o /tmp/openonload-${ONLOAD_VERSION}.zip \
|
||||
## && echo "${ONLOAD_MD5SUM} openonload-${ONLOAD_VERSION}.tgz" | md5sum --check \
|
||||
## && tar -zxf openonload-${ONLOAD_VERSION}.tgz \
|
||||
&& unzip -a openonload-${ONLOAD_VERSION}.zip \
|
||||
## && cd /tmp/openonload-${ONLOAD_VERSION} \
|
||||
&& cd /tmp/openonload-master \
|
||||
&& cd scripts \
|
||||
&& ./onload_build --user \
|
||||
&& ./onload_install --userfiles --nobuild \
|
||||
&& cd /tmp \
|
||||
&& rm -rf openonload-${ONLOAD_VERSION}.tgz openonload-${ONLOAD_VERSION} \
|
||||
&& rm -rf openonload* \
|
||||
&& if [ -z ${ONLOAD_WITHZF} ] ; then rm -rf /usr/include/zf /usr/bin/zf_stackdump /usr/bin/zf_debug /usr/lib/x86_64-linux-gnu/zf /usr/lib/x86_64-linux-gnu/libonload_zf* ; fi \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get remove -y --purge \
|
||||
curl \
|
||||
@@ -201,3 +241,23 @@ RUN \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get autoremove -y
|
||||
|
||||
########################
|
||||
|
||||
# build rtags
|
||||
run \
|
||||
git clone --recursive https://github.com/Andersbakken/rtags.git && \
|
||||
cd rtags && \
|
||||
git submodule update && \
|
||||
git checkout v2.38 && \
|
||||
cmake . -DCMAKE_EXPORT_COMPILE_COMMANDS=1 . && \
|
||||
make -j$(nproc) install && \
|
||||
cd .. && \
|
||||
rm -rf rtags
|
||||
|
||||
# build cgdb (the version shipped with ubuntu is too old)
|
||||
run \
|
||||
git clone https://github.com/cgdb/cgdb.git && \
|
||||
cd cgdb && \
|
||||
git checkout v0.7.1 && \
|
||||
./autogen.sh && \
|
||||
./configure && make -j$(nproc) && \
|
||||
make install
|
||||
Binary file not shown.
Reference in new issue
Block a user