furrtek / portapack-havoc

Custom firmware for the HackRF SDR + PortaPack H1 addon
GNU General Public License v2.0
805 stars 221 forks source link

Dockerfile-no-git + ccache symlinks for gcc-arm-none-eabi #346

Closed eried closed 4 years ago

eried commented 4 years ago

This is a dockerfile that uses the local source instead of pulling a fresh copy from git, and additionally installs ccache for a fast compilation (with few changes the compile time could be less than a minute instead of the normal very long process): e5b55f78-dc9f-4e8f-8d21-6b2d470c2eaf

For building: docker build -t portapackccache -f dockerfile-nogit .

For running (in the root of the repo): docker run -it -v ${PWD}:/havoc portapackccache

For subsequential runs I use Kinematic to call this same instance, as seen in the upper gif. If you run it again, it might create a new container, hence losing the benefits of ccache.

It is also in Docker Hub.