Simple aptly statically serving packages placed in volume /packages

This commit is contained in:
Benjamin Bohard 2018-03-20 14:00:30 +01:00
commit c774e97c96
3 changed files with 33 additions and 0 deletions

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM debian:stretch
MAINTAINER Benjamin Bohard
RUN apt update && apt install -y ca-certificates gnupg aptly aptly-publisher && apt clean
VOLUME ["/aptly", "/packages"]
EXPOSE 8080
COPY aptly.conf /etc/aptly.conf
COPY aptly.sh /srv/aptly.sh
CMD ["/srv/aptly.sh"]

16
aptly.conf Normal file
View File

@ -0,0 +1,16 @@
{
"rootDir": "/aptly",
"downloadConcurrency": 4,
"downloadSpeedLimit": 0,
"architectures": ["amd64"],
"dependencyFollowSuggests": false,
"dependencyFollowRecommends": false,
"dependencyFollowAllVariants": false,
"dependencyFollowSource": false,
"gpgDisableSign": true,
"gpgDisableVerify": true,
"downloadSourcePackages": false,
"ppaDistributorID": "ubuntu",
"ppaCodename": "",
"S3PublishEndpoints": {}
}

6
aptly.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
aptly repo create --component="main" --distribution="ubuntu" dev
aptly repo add dev /packages
aptly publish repo dev
aptly serve