From c774e97c96e0768a3c671b587a877cad0bb7b3c2 Mon Sep 17 00:00:00 2001 From: Benjamin Bohard Date: Tue, 20 Mar 2018 14:00:30 +0100 Subject: [PATCH] Simple aptly statically serving packages placed in volume /packages --- Dockerfile | 11 +++++++++++ aptly.conf | 16 ++++++++++++++++ aptly.sh | 6 ++++++ 3 files changed, 33 insertions(+) create mode 100644 Dockerfile create mode 100644 aptly.conf create mode 100755 aptly.sh 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