mini-mirror: Allow per-source Aptly config files
Current mini-mirror images are build using a single Aptly config file provided at build time. In some cases, it may be desirable to provide an Aptly configuration file for each source to change the behavior of a single mirror. This commit introduces support for providing an Aptly configuration file for each individual source. The config file should be named aptly.conf and placed in the root source path. Change-Id: Ic51fa2ab6898eaa14b45b67ba6708f2d7aea75eb
|1 month ago|
|etc||3 months ago|
|sources/aptly-example/squeeze||2 months ago|
|tools||1 month ago|
|Dockerfile.ubuntu_xenial||1 month ago|
|README.rst||1 month ago|
|build.sh||1 month ago|
Mini-mirror is a service that mirrors existing Debian/Ubuntu repositories and can be used as an APT source for OpenStack-Helm deployments with no internet connectivity.
Mini-mirror requires a directory at build-time that contains the repositories and packages that will be mirrored.
sources/ | -- source1-prefix/ |-- source-name/ |-- source.txt |-- packages.txt | -- source2-prefix/ |-- source-name/ |-- source.txt |-- packages.txt
Sources are defined as directories containing the files:
source_url source_key_url dist components
package1 package2 package3 (>=3.6)
To specify the location of your sources directory, export the following environment variable:
The demo image published in the
OpenStack-Helm-Addons repository is not signed. It should NOT be used in production and signing should be enabled in the Aptly config file.
Mini-mirror signs the release file during the image build process. Supply a path to a valid GPG key using the
RELEASE_SIGN_KEY environment variable.
Additionally, supply your GPG key passphrase with the
RELEASE_SIGN_KEY_PASSPHRASE environment variable:
Specify the location of your Aptly config file using the
APTLY_CONFIG_PATH environment variable:
Mini-mirror can be configured on a per-repo basis by adding an Aptly config file to the root directory of a source. This overrides the Aptly config file taken from
If building the mini-mirror image behind a proxy server, define the standard
NO_PROXY environment variables. They will be passed as build-args.
To build the mini-mirror image, execute the following: