diff options
| author | Claus Strasburger <claus@strasburger.de> | 2017-07-17 12:17:15 +0200 |
|---|---|---|
| committer | XECDesign <XECDesign@users.noreply.github.com> | 2017-07-17 12:21:37 +0200 |
| commit | fe45b739871c2eba65ec520e00816299abbfbc5b (patch) | |
| tree | 2dbe9f7c69a96f39db0cca3579369ce3ba4527e5 | |
| parent | bab0fe3b0d4f5eba268cfeba92e6c05ab85048cc (diff) | |
Added docker-compose.yml for easy apt-cacher-ng startup
| -rw-r--r-- | .gitignore | 1 | ||||
| -rwxr-xr-x | README.md | 6 | ||||
| -rw-r--r-- | docker-compose.yml | 10 |
3 files changed, 17 insertions, 0 deletions
@@ -5,3 +5,4 @@ postrun.sh SKIP .pc *-pc +apt-cacher-ng/ @@ -41,6 +41,12 @@ The following environment variables are supported: will not be included in the image, making it safe to use an `apt-cacher` or similar package for development. + If you have Docker installed, you can set up a local apt caching proxy to + like speed up subsequent builds like this: + + docker-compose up -d + echo 'APT_PROXY=http://172.17.0.1:3142' >> config + * `BASE_DIR` (Default: location of `build.sh`) **CAUTION**: Currently, changing this value will probably break build.sh diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..f733860 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +version: '2' + +services: + apt-cacher-ng: + restart: unless-stopped + image: sameersbn/apt-cacher-ng:latest + ports: + - "3142:3142" + volumes: + - ./apt-cacher-ng:/var/cache/apt-cacher-ng |
