(c) 2023 Sam Caldwell. See LICENSE.txt
- MVP: To set up a docker container service running Nginx web server and apt-mirror which will mirror the Ubuntu package repository to allow greater control over which packages we are installing and to reduce network traffic to the internet.
- ToDo: Add support for NPM to host node.js packages internally on our local package server.
- ToDo: Add support for PyPI to host Python packages internally on our local package server.
- ToDo: Add support for brew artifacts.
- This service will consume several hundred GB of disk space.
- By default, data is stored at
$(HOME)/mirror/data
where home is the home directory of the user running the docker container
To build...
- Clone this repo
- Navigate to the directory
- Run
make package_server/build
To run this locally (e.g. bootstrapping an environment):
- Build the container locally (see above).
- Run
make package_server/run_local
To upload the container image:
- Build the container (see above)
- Run
make package_server/upload
(Disclaimer: This currently is not implemented and by design it will only upload to my local docker hub.)
To stop the package server, run make package_server/stop
To tail the logs, run make package_server/logs