nixpkgs/home/packages/custom/typo3-documentation-rendering/default.nix
Daniel Siepmann a3ebd243a8
Use podman for t3 docs rendering but docker-compose everywhere else
podman-compose has some issues on ubuntu and with volumes.
I'll keep docker-compose.

But I prefer podman for t3docs rendering as it doesn't fuck up the file
permissions.
2023-04-06 13:52:54 +02:00

24 lines
536 B
Nix

{
writeShellApplication,
podman
}:
writeShellApplication {
name = "custom-typo3-render-documentation";
runtimeInputs = [
podman
];
# See: https://t3docs.github.io/DRC-The-Docker-Rendering-Container/07-To-be-sorted/quickstart.html#build-html-with-plain-docker-commands
text = ''
mkdir -p Documentation-GENERATED-temp
podman \
run --rm \
-v "$(pwd)":/PROJECT:ro \
-v "$(pwd)/Documentation-GENERATED-temp":/RESULT \
docker.io/t3docs/render-documentation:latest \
makehtml
'';
}