Skip to content
Snippets Groups Projects
Commit 78f7bfe0 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

playing with experimental & buildkit

- without cache:       [+] Building 559.6s (12/12) FINISHED
- with ccache:         [+] Building 30.7s (12/12) FINISHED
- with docker cache:   [+] Building 3.4s (12/12) FINISHED
parent 2946eac7
No related branches found
No related tags found
1 merge request!4Update robotpkg-test-rc.py for pinocchio v2.0.0 tests
# syntax=docker/dockerfile:experimental
ARG UBUNTU=bionic
FROM ubuntu:$UBUNTU
ENV DEBIAN_FRONTEND=noninteractive CTEST_OUTPUT_ON_FAILURE=true
RUN rm -f /etc/apt/apt.conf.d/docker-clean \
&& echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache
# check ccache vs docker cache hits with "docker build --build-arg EPOCH=$(date +%s) -f Dockerfile.experimental ."
ARG EPOCH=1
ENV EPOCH=${EPOCH}
RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt \
apt-get update -y \
&& apt-get install -y \
build-essential \
ccache \
cmake \
git \
libboost-all-dev \
libeigen3-dev \
python3-numpy
RUN git clone --recursive -b devel https://github.com/stack-of-tasks/eigenpy.git \
&& mkdir /eigenpy/build
WORKDIR /eigenpy/build
ENV CXX="/usr/lib/ccache/g++" CC="/usr/lib/ccache/gcc"
RUN cmake -DPYTHON_EXECUTABLE=/usr/bin/python3 ..
RUN --mount=type=cache,target=/root/.ccache make -s
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment