Export cache to external (#18)

* Update .dockerignore

* Update .dockerignore

* Delete .gitignore

* Update ova_defconfig

* Update enter.sh

* Fix cache
This commit is contained in:
Pascal Vizeli 2018-05-14 23:38:13 +02:00 committed by GitHub
parent 3a5d2de705
commit 5b3eb8cc7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

@ -1 +0,0 @@
buildroot/ccache

View File

@ -1,6 +1,7 @@
BR2_x86_64=y
BR2_DL_DIR="/cache/dl"
BR2_CCACHE=y
BR2_CCACHE_DIR="$(TOPDIR)/ccache"
BR2_CCACHE_DIR="/cache/cc"
BR2_GLOBAL_PATCH_DIR="$(BR2_EXTERNAL_HASSOS_PATH)/patches $(BR2_EXTERNAL_HASSOS_PATH)/board/ova/patches"
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
BR2_GCC_VERSION_7_X=y

View File

@ -1,4 +1,5 @@
#!/bin/bash
modprobe overlayfs
docker build -t hassbuildroot .
docker run -it --rm --privileged -v "$(pwd):/build" hassbuildroot bash
docker run -it --rm --privileged -v $(pwd):/build -v ${CACHE_DIR:=~/hassos-cache}:/cache hassbuildroot bash