unbound-redis-apk/README.md

27 lines
1 KiB
Markdown
Raw Normal View History

2023-10-20 13:06:49 +02:00
# unbound-redis-apk
build .apk files for [unbound](https://nlnetlabs.nl/projects/unbound) with support for as cache backend [redis](https://redis.io) for [alpine linux](https://alpinelinux.org/).
2023-10-20 13:19:16 +02:00
## usage & configuration
there are two possible options to build a specific version:
1. you can specify the environment variable `VERSION` to build a specific version. if the environment variable is unspecified it will default to `latest`.
2. [download](https://nlnetlabs.nl/downloads/unbound/) an `.zip` or `.tar.gz` archive and put it in the `unbound/src` subfolder **(dont forget to rebuild the image)**.
2023-10-23 16:02:22 +02:00
### docker
2023-10-20 13:19:16 +02:00
`docker run --rm -it -e VERSION=latest -v .build/:/build <imageid>`
2023-10-23 16:02:22 +02:00
### docker-compose
2023-10-20 13:19:16 +02:00
`docker-compose up`
2023-10-23 16:02:22 +02:00
## installation of local packages on alpine linux
2023-10-20 13:19:16 +02:00
2023-10-23 16:02:22 +02:00
`apk add --no-cache --allow-untrusted <package>.apk`
## wrapup / oneliner
`DOCKER_IMAGE=docker.registry.velvettear.de/unbound-redis-apk:latest && docker run --rm -it -e VERSION=$UNBOUND_VERSION -v ./:/build $DOCKER_IMAGE && docker rmi $DOCKER_IMAGE`