From fe45b739871c2eba65ec520e00816299abbfbc5b Mon Sep 17 00:00:00 2001 From: Claus Strasburger Date: Mon, 17 Jul 2017 12:17:15 +0200 Subject: [PATCH] Added docker-compose.yml for easy apt-cacher-ng startup --- .gitignore | 1 + README.md | 6 ++++++ docker-compose.yml | 10 ++++++++++ 3 files changed, 17 insertions(+) create mode 100644 docker-compose.yml diff --git a/.gitignore b/.gitignore index d9926f3..9f385f6 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ postrun.sh SKIP .pc *-pc +apt-cacher-ng/ diff --git a/README.md b/README.md index a0b6f84..2b0f439 100755 --- a/README.md +++ b/README.md @@ -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