Commit Graph

21 Commits

Author SHA1 Message Date
Igor Pecovnik
d3a5fcbefe
Docker speedup - adding pigz to the Docker package base 2019-07-18 21:07:04 +02:00
zhangn1985
2a8052d6a7 Docker: add aptly repo to Dockerfile, to speed up docker build (#1460)
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>
2019-07-18 12:09:31 +02:00
zhangn1985
94027c0f58 Docker build speed up. (#1451)
* 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>
2019-07-09 12:04:24 +02:00
Igor Pečovnik
8e1fc54fe1
Revert "Call prepare_host in the DockerFile (#1386)" (#1433)
This reverts commit c42c0df2c2.
2019-06-29 08:58:38 +02:00
Nicolas Dorier
c42c0df2c2 Call prepare_host in the DockerFile (#1386)
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`.
2019-06-29 08:35:13 +02:00
djw
7756d99c21 Docker: install more host dep packages
This avoids installing them again everytime running the docker container.
2019-06-20 11:39:22 +08:00
Igor Pečovnik
1e1973ea6b
Docker
Add missing dependency
2019-05-01 13:39:30 +02:00
Zhang Ning
5b9d2110c6 Docker: do not copy source code to docker image
map it to container, so userpatch/output no need map from container

Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>
2019-04-11 14:25:55 +08:00
Igor Pečovnik
8b4313630c
Missing dependencies
https://github.com/armbian/build/issues/1111
2018-09-26 16:14:59 +02:00
Igor Pecovnik
0419cc86a1 Building under Docker bugfix. Switched to Bionic host, tested kernel (4.17.y) building 2018-07-18 14:32:16 +02:00
zador-blood-stained
7179692dca Sync and update host dependencies 2018-04-29 15:30:20 +03:00
zador-blood-stained
a2c4700d5c Use fakeroot for dpkg-deb packaging 2017-09-11 16:53:42 +03:00
zador-blood-stained
1acf3801ae Small build script dependencies update 2017-08-23 12:37:13 +03:00
zador-blood-stained
0ef5e2ed6d Drop unused gcc 4.9 toolchain dependencies 2017-08-20 22:07:08 +03:00
zador-blood-stained
ced43bf527 Drop aarch64 host toolchain dependencies 2017-08-20 22:03:28 +03:00
zador-blood-stained
595cae9141 Drop the soft float host toolchain dependency 2017-08-20 21:13:01 +03:00
zador-blood-stained
50e593e494 Docker and Vagrant fixes and improvements 2017-08-02 21:57:33 +03:00
zador-blood-stained
61b2bfb741 Improve Docker support
Closes #489
2017-08-01 12:30:34 +03:00
zador-blood-stained
fd87d16b13 Update container dependencies 2016-07-16 17:08:24 +03:00
faddat
e590f2ffae Made the dockerfile actually work.
Build:
docker build --name lib .

Invocation:
docker run lib --privileged -it -P
2016-04-03 17:00:51 +07:00
Jacob Gadikian
715d68ff66 Create Dockerfile
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
2016-04-03 01:41:34 +07:00