16 Commits
Author SHA1 Message Date
John Colvin 26de8f7b3b Install latest cmake
The build script, build_sparkd.sh, uses the '-S' option, which wasn't
introduced until v3.13
2022-10-01 20:46:46 -04:00
John Colvin 30707087b8 Install python3-venv 2022-10-01 20:12:07 -04:00
Pete Fisher 7258a028d7 python3 2021-03-18 14:34:40 +00:00
Pete Fisher 588a157d18 Dockerfile edited online with Bitbucket 2021-03-17 19:15:44 +00:00
Pete Fisher e2d7f231d5 Dockerfile edited online with Bitbucket 2021-03-17 18:55:40 +00:00
Pete Fisher a850049f40 Dockerfile edited online with Bitbucket 2021-03-17 18:47:50 +00:00
Pedro Pinto 78ed1605aa Updated docker file to include iml 2020-08-28 15:49:44 -04:00
Pedro Pinto 6f0dd9324b Updated docker 2020-06-14 15:22:56 -04:00
Pedro Pinto 296f277d40 Updated Dockerfile 2020-06-05 09:08:58 -04:00
Pedro Pinto 95189976be Updated clang-format install 2020-06-02 09:15:13 -04:00
Pedro Pinto 405c15413c Fixed clang-format install 2020-06-02 09:08:18 -04:00
Pedro Pinto 0afd5e92de Made clangd available in docker image 2020-04-22 14:12:26 -04:00
Pedro Pinto 0df20ec20a Added gnu parallel 2020-01-31 16:16:29 -05:00
Pedro Pinto ec7adf17ec Added awscli to build 2020-01-30 13:08:05 -05:00
Kevin Darby abf81fc240 netcore 3.1 2020-01-08 12:11:08 -05:00
Pedro Pinto a7a054a5d8 Updated clang 2020-01-03 12:20:55 -05:00
3 changed files with 75 additions and 31 deletions

No files matched your search

+75 -31
View File
@@ -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 \
@@ -161,22 +198,6 @@ run ./build_sqlite.sh && rm -rf /sqlite-version-3.26.0/
copy git-lfs /usr/bin/
run chmod +x /usr/bin/git-lfs && git lfs install
#postgres
RUN sudo apt-get update \
&& wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - \
&& echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" |sudo tee /etc/apt/sources.list.d/pgdg.list \
&& sudo apt-get update \
&& sudo apt-get install -y postgresql-12 postgresql-client-12
RUN mkdir -p /var/lib/postgresql/ssl ;\
chown postgres:postgres /var/lib/postgresql/ssl ;\
cp /etc/ssl/certs/ssl-cert-snakeoil.pem /var/lib/postgresql/ssl/ ;\
cp /etc/ssl/private/ssl-cert-snakeoil.key /var/lib/postgresql/ssl/ ;\
chown -R postgres:postgres /var/lib/postgresql/ssl/ssl-cert-snakeoil.* ;\
chmod 600 /var/lib/postgresql/ssl/* ;\
chmod 700 /var/lib/postgresql/ssl
#
##### Onload Stuff #####
# Onload version and its md5sum
@@ -201,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 \
@@ -217,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
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.