Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/casperklein/docker-debian-repo
https://github.com/casperklein/docker-debian-repo
debian docker repository
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/casperklein/docker-debian-repo
- Owner: casperklein
- Created: 2019-12-03T23:53:13.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-26T21:52:35.000Z (2 months ago)
- Last Synced: 2024-08-27T00:40:51.876Z (2 months ago)
- Topics: debian, docker, repository
- Language: Dockerfile
- Size: 34.2 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# debian-repo
![Version][version-shield]
![Supports amd64 architecture][amd64-shield]
![Supports aarch64 architecture][aarch64-shield]
![Supports armhf architecture][armhf-shield]
![Supports armv7 architecture][armv7-shield]
![Docker image size][image-size-shield]Docker image for running a Debian repository based on [this](https://wiki.debian.org/DebianRepository/SetupWithReprepro) wiki page.
## Run a demo repository
# Passphrase for GPG key: insecure
docker run --rm -it -p 80:80 -v $PWD/repo-demo:/mnt:ro -e RELEASE=bookworm casperklein/debian-repo## Build Docker image (optional)
./build.sh
## Create and serve repository
1. Copy repo-demo
`cp -a repo-demo myrepo`
2. Create/Export new GPG key
`gpg --gen-key`
`gpg -a -o myrepo/key.gpg --export-secret-keys `
3. Edit *myrepo/distributions* to your needs
At least, you have to set *SignWith* to your GPG subkey ID
`gpg --list-secret-key --with-subkey-fingerprint # show subkey ID`
If you change "Codename", you have to adjust `-e RELEASE=` below accordingly.
4. Serve repository via HTTP
`docker run --rm -it -p 80:80 -v $PWD/myrepo:/mnt:ro -e RELEASE=bookworm casperklein/debian-repo`
## Setup client
### Import repository public key
wget -O - http://HOSTNAME/repos/apt/debian/repo.gpg | apt-key add -
### Add repository to apt sources
echo "deb http://HOSTNAME/repos/apt/debian/ $(lsb_release -cs) main" >> /etc/apt/sources.list
[aarch64-shield]: https://img.shields.io/badge/aarch64-yes-blue.svg
[amd64-shield]: https://img.shields.io/badge/amd64-yes-blue.svg
[armhf-shield]: https://img.shields.io/badge/armhf-yes-blue.svg
[armv7-shield]: https://img.shields.io/badge/armv7-yes-blue.svg
[version-shield]: https://img.shields.io/github/v/release/casperklein/docker-debian-repo
[image-size-shield]: https://img.shields.io/docker/image-size/casperklein/debian-repo/latest