Sign inSign up

cavcrosby/aptly-api

By cavcrosby

•Updated 6 days ago

Swiss army knife for Debian repository management.

Image
Web servers
0

2.4K

cavcrosby/aptly-api repository overview

⁠aptly-api

This is a container image for Aptly's HTTP REST API. Aptly⁠ is a swiss army knife for Debian repository management. Aptly can be used as either via CLI or an API⁠.

⁠How to use this image

Something of importance to note is that by default, the API stores its database, downloaded packages, and published repositories all within the /var/lib/aptly-api directory. Hence, it's advisable that a volume be mounted to this directory. Said volume can be used by multiple instances of the API as it runs with the -no-lock option.

docker run --detach --volume "aptly-api:/var/lib/aptly-api" --publish "8080:8080" "cavcrosby/aptly-api"

In addition, a volume containing GPG keys (either ASCII armored or binary) can be mounted at the /etc/aptly-api/secrets/gpg path to have those added to the container's keyring to be used by the API.

⁠Using a different listening port
docker run --detach --volume "aptly-api:/var/lib/aptly-api" --publish "8080:8081" --env "PORT=8081" "cavcrosby/aptly-api"
⁠Using a different configuration file
docker run --detach --volume "aptly-api:/var/lib/aptly-api" --volume "${PWD}/aptly.conf:/tmp/aptly.conf" --publish "8080:8080" --env "CONFIG_PATH=/tmp/aptly.conf" "cavcrosby/aptly-api"

⁠License

See LICENSE.

Tag summary

Content type

Image

Digest

sha256:94627856b…

Size

70.6 MB

Last updated

6 days ago

docker pull cavcrosby/aptly-api