Execute a containerized Tang Server
These scripts are completely unsupported and have the usual "found it on Github support."
If you found this script because someone "official" passed this along, well, my condolences.
A collegue publishes Tang in a Container, which is used for FCOS testing and development. This solution, however, does not work in OCP.
xinetd is great fun, but really, in a container? This uses socat instead.
When I was trying to use Tang's xinetd unit I hit two problems:
xinetd
wants a proper/etc/service
entry or it needstype = UNLISTED
.- Running it in podman was really inconsistent with curl http0.9 errors.
- Use the pre-built container
quay.io/behoward/tanger:latest
- Build your own:
git clone github.com/darkmuggle/tanger
cd tanger
make
podman volume create tang
podman run --rm --detach -v tang:/var/db/tang -p 8180:80 quay.io/behoward/tanger
The keys will be stored in the tang
volume.
podman volume create tang
podman run --rm --detach -e PORT=8180 -v tang:/var/db/tang -p 8180:8180 quay.io/behoward/tanger
You can create or cycle the keys by running:
podman run --rm -it -v tang:/var/db/tang quay.io/behoward/tanger /usr/libexec/tangd-keygen /var/db/tang
podman run --rm -it -v tang:/var/db/tang quay.io/behoward/tanger /usr/libexec/tangd-update /var/db/tang /var/cache/tang