Compare commits
11
Commits
upgrade_20.04
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
26de8f7b3b | ||
|
|
30707087b8 | ||
|
|
7258a028d7 | ||
|
|
588a157d18 | ||
|
|
e2d7f231d5 | ||
|
|
a850049f40 | ||
|
|
78ed1605aa | ||
|
|
6f0dd9324b | ||
|
|
296f277d40 | ||
|
|
95189976be | ||
|
|
405c15413c |
No files matched your search
+46
-12
@@ -2,12 +2,21 @@ FROM ubuntu:bionic
|
|||||||
|
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get install -y gnupg wget
|
DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||||
|
gnupg \
|
||||||
|
software-properties-common \
|
||||||
|
wget
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
echo "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main" >> /etc/apt/sources.list && \
|
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
|
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 \
|
RUN \
|
||||||
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
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 \
|
libllvm-9-ocaml-dev libllvm9 llvm-9 llvm-9-dev llvm-9-doc llvm-9-examples llvm-9-runtime \
|
||||||
@@ -49,6 +58,8 @@ apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
|||||||
openssh-server \
|
openssh-server \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
python-pip \
|
python-pip \
|
||||||
|
python3-pip \
|
||||||
|
python3-venv \
|
||||||
screen \
|
screen \
|
||||||
silversearcher-ag \
|
silversearcher-ag \
|
||||||
sudo \
|
sudo \
|
||||||
@@ -81,6 +92,7 @@ apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
|||||||
libpqxx-dev \
|
libpqxx-dev \
|
||||||
zip \
|
zip \
|
||||||
parallel \
|
parallel \
|
||||||
|
patchelf \
|
||||||
# aws tools
|
# aws tools
|
||||||
awscli \
|
awscli \
|
||||||
&& rm -rf /var/lig/apt/lists/*
|
&& rm -rf /var/lig/apt/lists/*
|
||||||
@@ -89,17 +101,19 @@ apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
|||||||
run \
|
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 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 --install /usr/bin/clangd clangd /usr/bin/clangd-9 100; \
|
||||||
update-alternatives --config clang; \
|
update-alternatives --config clang; \
|
||||||
update-alternatives --config clang++
|
update-alternatives --config clang++; \
|
||||||
|
update-alternatives --config clang-format; \
|
||||||
run update-alternatives --config clangd
|
update-alternatives --config clangd
|
||||||
|
|
||||||
# this is done here so that ccache sees clang++ installed, not clang-9
|
# 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 apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y ccache
|
||||||
|
|
||||||
|
|
||||||
run pip install pybars3 paramiko mkdocs
|
run pip install pybars3 paramiko mkdocs
|
||||||
|
run pip3 install paramiko cryptography
|
||||||
run npm install -g npx
|
run npm install -g npx
|
||||||
|
|
||||||
# fix locale so we can run tmux
|
# fix locale so we can run tmux
|
||||||
@@ -110,9 +124,6 @@ run locale-gen
|
|||||||
# expand libc sources
|
# expand libc sources
|
||||||
run cd /usr/src/glibc ; tar xvf glibc-*.tar.xz
|
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
|
# setup ssh
|
||||||
RUN mkdir /var/run/sshd && echo 'root:root' | chpasswd && \
|
RUN mkdir /var/run/sshd && echo 'root:root' | chpasswd && \
|
||||||
@@ -211,15 +222,18 @@ RUN \
|
|||||||
libpcap0.8-dev \
|
libpcap0.8-dev \
|
||||||
libtool-bin \
|
libtool-bin \
|
||||||
&& cd /tmp \
|
&& cd /tmp \
|
||||||
&& curl -fSL https://www.openonload.org/download/openonload-${ONLOAD_VERSION}.tgz -o /tmp/openonload-${ONLOAD_VERSION}.tgz \
|
## && 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 \
|
&& curl -fSL https://github.com/rigtorp/openonload/archive/master.zip -o /tmp/openonload-${ONLOAD_VERSION}.zip \
|
||||||
&& tar -zxf openonload-${ONLOAD_VERSION}.tgz \
|
## && echo "${ONLOAD_MD5SUM} openonload-${ONLOAD_VERSION}.tgz" | md5sum --check \
|
||||||
&& cd /tmp/openonload-${ONLOAD_VERSION} \
|
## && tar -zxf openonload-${ONLOAD_VERSION}.tgz \
|
||||||
|
&& unzip -a openonload-${ONLOAD_VERSION}.zip \
|
||||||
|
## && cd /tmp/openonload-${ONLOAD_VERSION} \
|
||||||
|
&& cd /tmp/openonload-master \
|
||||||
&& cd scripts \
|
&& cd scripts \
|
||||||
&& ./onload_build --user \
|
&& ./onload_build --user \
|
||||||
&& ./onload_install --userfiles --nobuild \
|
&& ./onload_install --userfiles --nobuild \
|
||||||
&& cd /tmp \
|
&& 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 \
|
&& 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 \
|
&& DEBIAN_FRONTEND=noninteractive apt-get remove -y --purge \
|
||||||
curl \
|
curl \
|
||||||
@@ -227,3 +241,23 @@ RUN \
|
|||||||
&& DEBIAN_FRONTEND=noninteractive apt-get autoremove -y
|
&& 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