https://github.com/ahmetozer/repo-cache
Caching package manager packets. The reason for the design of this system is to cache the requests coming from the package management in the containers, and thus, to save the packages from the bandwith and to load the packages faster.
https://github.com/ahmetozer/repo-cache
alpine linux raspberry-pi repository ubuntu
Last synced: about 2 months ago
JSON representation
Caching package manager packets. The reason for the design of this system is to cache the requests coming from the package management in the containers, and thus, to save the packages from the bandwith and to load the packages faster.
- Host: GitHub
- URL: https://github.com/ahmetozer/repo-cache
- Owner: ahmetozer
- License: mit
- Created: 2020-02-11T15:59:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-06T20:45:36.000Z (almost 6 years ago)
- Last Synced: 2025-10-20T09:49:52.756Z (8 months ago)
- Topics: alpine, linux, raspberry-pi, repository, ubuntu
- Language: HTML
- Homepage: https://hub.docker.com/r/ahmetozer/repo-cache
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Repo-Cache
Repository Cache Container
This Container is designed for Cache the package installer contents to reduce network bandwidth and also increase docker build speed.
You can use with docker port share for the external accessibility.
```bash
docker run --restart always -it -p 80:80 ahmetozer/repo-cache
```
## Local or without docker port share
If you don't want to expose your Container to everyone you can create a new network and use with only local network.
```bash
docker network create mynewnet
```
### Check the static IP address for Container
Check your IP addresses which ever you want to use for repository cache.
```bash
server:~ docker inspect mynewnet | grep Subnet
"Subnet": "172.19.0.0/16",
"Subnet": "2001:4700:4700:1111:f6a0::/80",
server:~ docker inspect bridge | grep 172.19.0.30 && echo 'your IP is used, please select another one' || echo 'Your IP is not used'
Your IP is not used
```
### Start Container
Set static IP address with --ip argumant and also for the automatically start Container requires custom --restart policy.
```bash
docker run --ip 172.19.0.30 --restart always --network mynewnet ahmetozer/repo-cache
```
### Forwarding hostnames to Container
```bash
IP=172.19.0.30
echo $IP dl-cdn.alpinelinux.org archive.ubuntu.com >> /etc/hostnames
```
Your Installation is completed and ready to use.