kopia lustrzana https://github.com/kartoza/docker-postgis
Added more notes for using apt cacher
rodzic
bd153b0a2f
commit
3e88b08bf4
|
@ -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"; };
|
||||||
|
|
18
README.md
18
README.md
|
@ -7,10 +7,24 @@ you should configure the host for it in the provided 71-apt-cacher-ng file.
|
||||||
|
|
||||||
## Build
|
## 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
|
Run
|
||||||
|
|
Ładowanie…
Reference in New Issue