3rd party repo is used for aptly, thus it will do upgrade everytime.
now add aptly repo to Dockerfile, thus avoid upgrade aptly everytime.
Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>
* Docker: a chance to rebuild docker image
when Dockerfile is updated, docker image will not be rebuilt,
let armbian docker image tag with framework version, thus has
a chance to rebuild it.
V2: use VERSION file to track build script version.
Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>
* Docker: use upgrade instead of dist-upgrade to speed up docker build
this patch also change to use apt instead of apt-get
when compile in docker, it will run apt update&&upgrade everytime.
this is very time consuming.
apt-get dist-upgrade will not upgrade packages, thus will make build framework
do upgrade each time.
Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>
Rationale:
1. It means we don't have to keep up to date https://github.com/armbian/build/blob/master/lib/general.sh#L540 with this dockerfile.
2. We also download the deps `gcc-linaro-*`
What we can do in a follow up PR is to remove the dependencies in this apt-get install, as they should be installed in `prepare_host`.
It's a file that will allow lib to run outside of its happy native debian environment, for example, on arch, or in fact... anywhere. That should actually do it, that single line. I can make it more complicated if need be, but I think that will work..... wait wait wait, have to do something about the path relativity, so..... I had it clone the repository anyway instead of just using the files that Docker will automatically copy over. May want to put this in igorpekovnik/docker to maximum cleanliness, but the idea here is that the docker image will be updated each time your repo is. It should be usable like this: docker run igorpekovnik/lib ./compile.sh