summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rwxr-xr-xREADME.md6
-rw-r--r--docker-compose.yml10
3 files changed, 17 insertions, 0 deletions
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