Merge branch 'mandatory-project.name' into HEAD

This commit is contained in:
Robert Hensing 2022-06-09 01:16:17 +02:00
commit c24a87f429
8 changed files with 13 additions and 11 deletions

View file

@ -5,6 +5,7 @@
### Changed
* Healthcheck-based dependencies in `service.depends_on`.
* The `project.name` option is now mandatory.
### Added

View file

@ -112,17 +112,14 @@ Name of the project.
See link:https://docs.docker.com/compose/reference/envvars/#compose_project_name[COMPOSE_PROJECT_NAME]
This is not optional, because getting the project name from a directory name tends to produce different results for different repo checkout location names.
[discrete]
=== details
Type:: null or string
Default::
+
----
null
----
Type:: string
No Default:: {blank}
No Example:: {blank}

View file

@ -1,4 +1,5 @@
{
project.name = "full-nixos";
services.webserver = { pkgs, lib, ... }: {
nixos.useSystemd = true;
nixos.configuration.boot.tmpOnTmpfs = true;

View file

@ -17,6 +17,7 @@
*/
{
project.name = "nixos-unit";
services.webserver = { config, pkgs, ... }: {
nixos.configuration = {config, lib, options, pkgs, ...}: {

View file

@ -9,7 +9,7 @@
*/
{ lib, pkgs, ... }: {
config.project.name = "traefik";
config.services = {
traefik = {
image.command = [

View file

@ -37,7 +37,7 @@
}
],
"project": {
"name": null
"name": "unit-test-data"
},
"serviceInfo": {
"webserver": {

View file

@ -1,4 +1,5 @@
{
project.name = "unit-test-data";
services.webserver = { pkgs, ... }: {
nixos.useSystemd = true;
nixos.configuration.boot.tmpOnTmpfs = true;

View file

@ -16,9 +16,10 @@ in
Name of the project.
See ${link "https://docs.docker.com/compose/reference/envvars/#compose_project_name" "COMPOSE_PROJECT_NAME"}
This is not optional, because getting the project name from a directory name tends to produce different results for different repo checkout location names.
'';
type = types.nullOr types.str;
default = null;
type = types.str;
};
};
config = {