File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ FROM ubuntu:20.04
1818RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qqy install tzdata
1919
2020# Build tool
21- RUN apt-get update && apt-get -qqy install build-essential cmake scons git lcov g++-arm-linux-gnueabihf g++-aarch64-linux-gnu pkg-config
21+ RUN apt-get update && apt-get -qqy install build-essential cmake scons git lcov g++-arm-linux-gnueabihf g++-aarch64-linux-gnu pkg-config ccache
2222
2323# Debian build tool
2424RUN apt-get update && apt-get -qqy install fakeroot devscripts debhelper python3-all dh-python
@@ -36,6 +36,9 @@ RUN apt-get update && \
3636RUN python3 -m pip install --upgrade pip
3737RUN python3 -m pip install numpy flatbuffers
3838
39+ # Setup ccache max size: 1.5GB
40+ RUN ccache -M 1536MB
41+
3942# Install libtsan_preinit.o manually (workaround for missing package in focal)
4043WORKDIR /root/tmp
4144RUN apt-get download libgcc-10-dev
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ FROM ubuntu:jammy
1818RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qqy install tzdata
1919
2020# Build tool
21- RUN apt-get update && apt-get -qqy install build-essential cmake scons git lcov g++-arm-linux-gnueabihf g++-aarch64-linux-gnu pkg-config
21+ RUN apt-get update && apt-get -qqy install build-essential cmake scons git lcov g++-arm-linux-gnueabihf g++-aarch64-linux-gnu pkg-config ccache
2222
2323# Debian build tool
2424RUN apt-get update && apt-get -qqy install fakeroot devscripts debhelper python3-all dh-python
@@ -36,6 +36,9 @@ RUN apt-get update && \
3636RUN python3 -m pip install --upgrade pip
3737RUN python3 -m pip install numpy flatbuffers
3838
39+ # Setup ccache max size: 1.5GB
40+ RUN ccache -M 1536MB
41+
3942# Setup user to match host user, and give superuser permissions
4043ARG USER_ID=1000
4144ARG GROUP_ID=${USER_ID}
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ FROM ubuntu:noble
1818RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qqy install tzdata
1919
2020# Build tool
21- RUN apt-get update && apt-get -qqy install build-essential cmake scons git lcov g++-arm-linux-gnueabihf g++-aarch64-linux-gnu pkg-config
21+ RUN apt-get update && apt-get -qqy install build-essential cmake scons git lcov g++-arm-linux-gnueabihf g++-aarch64-linux-gnu pkg-config ccache
2222
2323# Debian build tool
2424RUN apt-get update && apt-get -qqy install fakeroot devscripts debhelper python3-all dh-python
@@ -31,6 +31,9 @@ RUN apt-get update && \
3131 apt-get -qqy install doxygen graphviz wget zip unzip python3 python3-pip python3-venv python3-dev hdf5-tools curl
3232RUN python3 -m pip install numpy flatbuffers --break-system-packages
3333
34+ # Setup ccache max size: 1.5GB
35+ RUN ccache -M 1536MB
36+
3437# Setup user ubuntu: give superuser permissions without password
3538RUN apt-get update && apt-get -qqy install sudo
3639RUN usermod -aG sudo ubuntu
You can’t perform that action at this time.
0 commit comments