Commit Graph

146 Commits

Author SHA1 Message Date
Sander van der Burg 814294f6f8 Make spoolDir, lockDir, libDir configurable 2021-03-21 14:47:39 +01:00
Sander van der Burg 53dee99baf Create nixproc-disnix-deploy, because disnix-deploy can't initialize global state 2021-03-19 21:27:10 +01:00
Sander van der Burg b325a0e3c2 Automatically default a process name to instanceName if no name was specified, update README.md with a dedicated section on instantiatable services 2021-03-13 15:26:38 +01:00
Sander van der Burg ebf962a81d Only take uid or gid from the ids map, if none was specified 2021-03-07 18:04:20 +01:00
Sander van der Burg 5f65ae4e96 Eliminate all references to stdenv.lib, add tests that build for all backends 2021-03-01 20:46:26 +01:00
Sander van der Burg 5571ba3f49 Fix some small documentation inconsistencies 2021-02-21 23:04:23 +01:00
Sander van der Burg 1a2c5c967b Document mutable container image construction 2021-02-18 21:02:49 +01:00
Sander van der Burg 8eb8c98b44 Fix problem with essential missing base packages when a PATH is provided 2021-02-17 22:13:25 +01:00
Sander van der Burg 2b35bb34de Fix the order of some deployment steps, remove obsolete image args script 2021-02-17 19:53:45 +01:00
Sander van der Burg 704eb98a42 Allow supervisord and launchd to initialize as root by using nixproc-chainload-user to change identities 2021-02-16 20:02:16 +01:00
Sander van der Burg aa3900919c Revert "Do not run initialize script as root, because it is not portable"
This reverts commit 69b9623570.
2021-02-16 19:33:03 +01:00
Sander van der Burg 6918e6d638 Always initialize the su module regardless of the backend used 2021-02-15 23:30:02 +01:00
Sander van der Burg 69b9623570 Do not run initialize script as root, because it is not portable 2021-02-15 23:29:41 +01:00
Sander van der Burg 15cae81018 Re-organize constructor functions, separate processes models 2021-02-15 19:11:57 +01:00
Sander van der Burg e59675dd56 Add parameters to copy an ID resources file, and ids file, make channel configurable 2021-02-13 20:23:23 +01:00
Sander van der Burg d347c04fd6 Initial implementation of a buildImage function with configurable build steps, and an implementation of a mutable image building function 2021-02-11 23:23:02 +01:00
Sander van der Burg c69248bb7c Fix function pointer warning 2021-02-09 21:31:44 +01:00
Sander van der Burg 25d3af2cbb Fix nixproc-id-assign tool, reassign IDs, add s6-rc test to the release expression 2021-02-07 20:07:56 +01:00
Sander van der Burg 972fa2278e Move all non-essential services that are not required for testing to the nix-processmgmt-services repository 2021-02-07 14:34:32 +01:00
Sander van der Burg 9cd9e240e0 Introduce NIXPROC_PROCESS environment variable to more easily rebuild the same configuration 2021-02-04 19:56:45 +01:00
Sander van der Burg bf4a09e2af Fix some small documentation inconsistencies 2021-02-04 19:00:12 +01:00
Sander van der Burg 68a77686a1 Do not generate redundant initialize scripts for s6-rc services 2021-01-30 00:54:05 +01:00
Sander van der Burg f4f315021d Small documentation fixes 2021-01-27 21:22:35 +01:00
Sander van der Burg 065c10e5da Add check that only deploys if there is a new database 2021-01-26 20:51:01 +01:00
Sander van der Burg 600c0b14cf Make createMultiProcessImage function composable, move all target-specific process manager stuff into the backends/ folder, add script for easy startup of s6-svscan 2021-01-25 20:26:34 +01:00
Sander van der Burg acd56b6207 Initial version of running multi-process container using s6 for supervision 2021-01-24 23:38:21 +01:00
Sander van der Burg 80e74014ef Add note on s6-rc logging 2021-01-20 23:46:23 +01:00
Sander van der Burg a0f6da840e Create function to automatically generate log companion services 2021-01-20 23:28:24 +01:00
Sander van der Burg b773dfe295 Fix stopping daemons, write preliminary testcases for s6-rc 2021-01-19 22:07:25 +01:00
Sander van der Burg e123cbdaa3 Add tooling to deploy s6-rc services, modify profile to have a default bundle 2021-01-19 21:07:10 +01:00
Sander van der Burg a65ced49aa Initial version of the function abstractions generating s6-rc services and a translation strategy for process manager-agnostic configurations 2021-01-18 22:49:43 +01:00
Sander van der Burg 2eede58df3 Move generator function for each process manager to its own folder, separate the universal abstraction and utility functions 2021-01-14 22:52:45 +01:00
Sander van der Burg cc254f4538 Remove hack that refers to local tarball 2020-11-29 17:30:57 +01:00
Sander van der Burg 3a3865425f Write daemon log files in the temp dir for processes running without root privileges 2020-11-25 22:14:32 +01:00
Sander van der Burg 5ab68c5b55 Get rid of obsolete start instruction 2020-11-25 21:29:37 +01:00
Sander van der Burg 40179fb02c Allow parameters without values 2020-11-25 21:27:59 +01:00
Sander van der Burg f42360bc20 Make the influxdbUsername configurable 2020-11-15 19:43:23 +01:00
Sander van der Burg 19fef5e2dc Add corresponding type for the docker process management backend 2020-11-08 22:53:04 +01:00
Sander van der Burg e22e76792c Get rid of createCredentials wrapper, create config files for users that require home directories even when forceDisableUserChange is enabled 2020-11-08 21:21:28 +01:00
Sander van der Burg 43efbd9ca2 Expose the InfluxDB port, run InfluxDB as unprivileged user 2020-11-06 22:36:33 +01:00
Sander van der Burg 9d44a383e5 Add a PostgreSQL service container provider 2020-11-04 21:42:57 +01:00
Sander van der Burg 1ac650cf36 Fix loading PHP extensions 2020-11-01 21:52:35 +01:00
Sander van der Burg 2ec81d053c Fix Nginx examples to work with nginx package in Nixpkgs 20.09, fix test cases to work with Nixpkgs 20.09 2020-11-01 18:30:12 +01:00
Sander van der Burg 833eac29d8 Add openssh service 2020-10-26 21:58:30 +01:00
Sander van der Burg 8acd35909f Remove compound process stuff, it was a bad idea 2020-10-25 20:26:10 +01:00
Sander van der Burg 0a637bfb8a Make it possible to also define functions for overrides, supervisord always accepts a pidfile parameter 2020-10-25 17:05:58 +01:00
Sander van der Burg cd0f384b9b Invoke BSD rc scripts from compound process, document interactive multi-process containers, remove obsolete check for loading Docker images 2020-10-23 19:57:57 +02:00
Sander van der Burg b0da46b268 Add createMultiProcessImage and an initial implementation for constructing compound processes 2020-10-22 22:01:32 +02:00
Sander van der Burg 847bee6ffb Make cacheDir configurable in profile build function, minor tweaks 2020-10-14 20:41:21 +02:00
Sander van der Burg aceee4f138 Add state initialization to the deploy scripts, make cache dir configurable 2020-10-13 19:37:23 +02:00