Added more notes for using apt cacher

pull/1/head
Tim Sutton 2014-05-04 21:47:26 +02:00
rodzic bd153b0a2f
commit 3e88b08bf4
2 zmienionych plików z 22 dodań i 3 usunięć

Wyświetl plik

@ -1 +1,6 @@
Acquire::http { Proxy "http://192.168.1.13:3142"; };
# Uncomment the Acquire line below and then
# Modify the host to match your needs if you wish to
# use apt-cacher in your image build out (and the
# Subsequent running container.
#Acquire::http { Proxy "http://192.168.1.13:3142"; };

Wyświetl plik

@ -7,10 +7,24 @@ you should configure the host for it in the provided 71-apt-cacher-ng file.
## Build
To build the image do:
To build the image without apt-cacher do:
```
docker build -t kartoza/postgis git://github.com/timlinux/docker-postgis
docker build -t kartoza/postgis:2.2 git://github.com/timlinux/docker-postgis
```
To build with apt-cache do you need to clone this repo locally first and
modify the contents of 71-apt-cacher-ng to match your cacher host. Then
build using a local url instead of directly from github.
```
git clone git://github.com/timlinux/docker-postgis
```
Now edit ``71-apt-cacher-ng`` then do:
```
docker build -t kartoza/postgis:2.2 .
```
Run