This repo starts a local apt repo from an input file of core packages and their depends
146
This was built originally for the WOS cowrie honeypot workshop but can be adapted to fit any situation where packages or git repos need to be cached.
HTTP only is configured for optimal speeds, and the fact that this is not sensitive traffic.
Bind port 80 on the container to anything you'd like
Mount: /repo/debs is where all the deb files for the packages are stored
Mount: /repo/package-list.txt is the file you add core packages and the script will automatically find all their depends. Make sure they're spelled right!
Mount: /repo/cowrie is where the cowrie git repo is cloned and tarballed for distribution. Delete the tarball and the script will remove cowrie folder and reclone.
An example docker run command is as follows:
-v /Users/animcogn/github/apt-package-cache/debs:/repo/debs
-v /Users/animcogn/github/apt-package-cache/package-list.txt:/repo/package-list.txt
--tmpfs /usr/share/nginx/html
animcogn/apt-package-cache:1.1```
Content type
Image
Digest
Size
130.9 MB
Last updated
about 8 years ago
docker pull animcogn/apt-package-cache:1.2