dockerTools.examples: fix the nginx image

Nginx now requires directories `/var/log/nginx` and `/var/cache/nginx`
to be existing.

The objective is to fix the test `nixosTests.docker-tools`.
This commit is contained in:
Antoine Eiche 2020-05-13 10:24:36 +02:00
parent 90c0191735
commit 9ac444d80e

View file

@ -69,6 +69,12 @@ rec {
tag = "latest";
contents = pkgs.nginx;
extraCommands = ''
# nginx still tries to read this directory even if error_log
# directive is specifying another file :/
mkdir -p var/log/nginx
mkdir -p var/cache/nginx
'';
runAsRoot = ''
#!${pkgs.stdenv.shell}
${shadowSetup}