Commit Graph

80 Commits

Author SHA1 Message Date
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
Sander van der Burg 196179930b When no runlevel command exists, default to runlevel 3 2020-10-12 19:00:45 +02:00
Sander van der Burg 1590fa145b Adjust MySQL socket file name generation so that no socket parameter to the client is required for a standard installation 2020-10-05 22:50:42 +02:00
Sander van der Burg de1c8b15b9 Add nixproc-id-assign to automatically assign unique IDs to processes that need them 2020-09-21 21:33:29 +02:00
Sander van der Burg 25244eeb0c Separate deployment process into new executable. Add --rollback, --list-generations and other profile features 2020-08-31 22:13:35 +02:00
Sander van der Burg 5bf40eb7d5 Add a default logging parameter to daemon command invocations to make diagnosing problems easier, add a troubleshooting section to the README.md that explains how to investigate logs 2020-08-19 20:34:23 +02:00
Sander van der Burg dad1f2f7ca Implement --undeploy option for all tools, make Docker tests a bit more robust 2020-08-17 21:08:25 +02:00
Sander van der Burg 459a8cb228 Make instanceName configurable, simplify conventions 2020-08-11 21:43:25 +02:00
Sander van der Burg 7d40f28150 Add release expression, fix docker generator 2020-07-19 20:26:50 +02:00
Sander van der Burg 12486e03db Add section on Disnix integration 2020-07-19 18:11:22 +02:00
Sander van der Burg 27ee798da9 Add option to deployer user service with systemd 2020-07-19 16:28:13 +02:00
Sander van der Burg 5b114573df Fix the nixproc-generate-config tool, create a basic testcase for it 2020-07-19 14:26:21 +02:00
Sander van der Burg 77a280e3ba Fix a few inconsistencies with the real example 2020-07-18 22:07:07 +02:00
Sander van der Burg 50c1526401 Use utility function to auto generate a relevant PID file path 2020-07-18 21:51:33 +02:00
Sander van der Burg 9e3c25c775 Simplify the credentials configuration step 2020-07-18 16:30:11 +02:00
Sander van der Burg a476bcf809 Simplify daemon command invocations in shell script based solutions 2020-07-18 16:01:25 +02:00
Sander van der Burg c9a0d6a6b4 Move some common operations to the util module, optimize testcases by caching their build results on the host system 2020-07-18 00:28:25 +02:00