Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nobodyxu/apt-cache
A docker image for caching apt packages based on squid-deb-proxy.
https://github.com/nobodyxu/apt-cache
apt apt-cache debian-buster docker docker-cloud docker-image server squid-deb-proxy
Last synced: about 2 months ago
JSON representation
A docker image for caching apt packages based on squid-deb-proxy.
- Host: GitHub
- URL: https://github.com/nobodyxu/apt-cache
- Owner: NobodyXu
- License: mit
- Created: 2019-07-23T14:22:16.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-08-16T13:04:14.000Z (over 5 years ago)
- Last Synced: 2024-12-10T11:51:08.212Z (about 2 months ago)
- Topics: apt, apt-cache, debian-buster, docker, docker-cloud, docker-image, server, squid-deb-proxy
- Language: Shell
- Size: 13.7 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# apt-cache
![Docker Cloud Automated build](https://img.shields.io/docker/cloud/automated/nobodyxu/apt-cache.svg)
![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/nobodyxu/apt-cache.svg)![MicroBadger Size (tag)](https://img.shields.io/microbadger/image-size/nobodyxu/apt-cache/latest)
A docker image for caching apt packages for (the following is in the whitelist `/etc/squid-deb-proxy/mirror-dstdomain.acl.d/`)
- debian
- raspberry pi
- ubuntu official source
- ubuntu PPA
- canonical's partner
- docker-cesource based on squid-deb-proxy.
# Usage
## Pull from docker hub
Simply run:
```
docker pull nobodyxu/apt-cache
```## Build it yourself
Use `make` to build the image.
## How to run it
Simply run `make run` to run the image as a container and also create a volume and publish the port 8000 for you.
## Use the proxy
Then add the following to `/etc/apt/apt.conf.d/01proxy` (create it if not exist) in your other containers or other machines:
```
Acquire::HTTP::Proxy "http://${HOST_IP}:${APT_PROXY_PORT}";
Acquire::HTTPS::Proxy "false";'
```and it is all set!
If you have any problem using this repository or have advices on how to improve, please open a github issue and I will answer you as soon
as possible.Pull request is welcomed.
# Reference:
1. https://github.com/sameersbn/docker-apt-cacher-ng
2. https://gist.github.com/dergachev/8441335