commit c774e97c96e0768a3c671b587a877cad0bb7b3c2 Author: Benjamin Bohard Date: Tue Mar 20 14:00:30 2018 +0100 Simple aptly statically serving packages placed in volume /packages diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..52b3cd9 --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/aptly.conf b/aptly.conf new file mode 100644 index 0000000..e0ccbc5 --- /dev/null +++ b/aptly.conf @@ -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": {} +} diff --git a/aptly.sh b/aptly.sh new file mode 100755 index 0000000..e338a56 --- /dev/null +++ b/aptly.sh @@ -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