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:
parent
90c0191735
commit
9ac444d80e
@ -69,6 +69,12 @@ rec {
|
|||||||
tag = "latest";
|
tag = "latest";
|
||||||
contents = pkgs.nginx;
|
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 = ''
|
runAsRoot = ''
|
||||||
#!${pkgs.stdenv.shell}
|
#!${pkgs.stdenv.shell}
|
||||||
${shadowSetup}
|
${shadowSetup}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user