fix image generation

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
ahuston-0 2024-06-29 11:34:25 -04:00
parent 898379ab13
commit 337caba1f0
No known key found for this signature in database
GPG Key ID: 1FACF4075E3212F7
3 changed files with 26 additions and 4 deletions

View File

@ -2,14 +2,14 @@
let
nextcloud-apache = pkgs.dockerTools.pullImage {
imageName = "nextcloud";
digest = "sha256:2ab0c5de2afd33c55721e69e87bd1667cad6c4550ba0fd0303cfeb7abb260750";
sha256sum = "11fh4jaz1asiihf2092sh7ma9xm35hmnkafpbjr3igkv8jicsky1";
imageDigest = "sha256:2ab0c5de2afd33c55721e69e87bd1667cad6c4550ba0fd0303cfeb7abb260750";
sha256 = "11fh4jaz1asiihf2092sh7ma9xm35hmnkafpbjr3igkv8jicsky1";
finalImageName = "nextcloud";
finalImageTag = "apache";
};
in
pkgs.dockerTools.buildLayeredImage {
pkgs.dockerTools.buildImage {
name = "nextcloud-custom";
tag = "latest";
fromImage = nextcloud-apache;

View File

@ -6,7 +6,7 @@
}:
let
nextcloud-image = import ./nextcloud-image.nix;
nextcloud-image = import ./nextcloud-image.nix { inherit pkgs; };
in
{
virtualisation.oci-containers.containers = {

View File

@ -0,0 +1,22 @@
[supervisord]
nodaemon=true
logfile=/var/log/supervisord/supervisord.log
pidfile=/var/run/supervisord/supervisord.pid
childlogdir=/var/log/supervisord/
logfile_maxbytes=50MB ; maximum size of logfile before rotation
logfile_backups=10 ; number of backed up logfiles
loglevel=error
[program:apache2]
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
command=apache2-foreground
[program:cron]
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
command=/cron.sh