provision and use a apt (aka debian) repository

This commit is contained in:
Rui Lopes
2020-05-09 13:30:11 +01:00
parent 663445b54f
commit abe5834991
14 changed files with 195 additions and 3 deletions
@@ -33,6 +33,12 @@ capabilityRegistry.all.findAll {it.context().type().toString().startsWith("Outre
repository.createRawHosted("adhoc-package", "default", false, WritePolicy.ALLOW_ONCE)
// create a apt repository backed by the default blob store.
// see https://help.sonatype.com/repomanager3/formats/apt-repositories
pgpPrivateKey = new File('/vagrant/shared/apt-hosted-private.key').getText('UTF-8')
repository.createAptHosted("apt-hosted", "bionic", pgpPrivateKey, "abracadabra", "default", WritePolicy.ALLOW_ONCE, true)
// create a npm repository backed by the default blob store.
repository.createNpmHosted("npm-hosted", "default", true, WritePolicy.ALLOW_ONCE)
// create a npm proxy repository backed by the default blob store.