This commit is contained in:
David Arnold 2021-05-13 17:27:08 -04:00
parent c3fa598922
commit db6d83c61e
No known key found for this signature in database
GPG key ID: 6D6A936E69C59D08
53 changed files with 1916 additions and 1599 deletions

View file

@ -1,4 +1,4 @@
{ kubenix ? import ./.. {} }:
{ kubenix ? import ./.. { } }:
{
nginx-deployment = import ./nginx-deployment { inherit kubenix; };

View file

@ -1,4 +1,4 @@
{ kubenix ? import ../.. {}, registry ? "docker.io/gatehub" }:
{ kubenix ? import ../.. { }, registry ? "docker.io/gatehub" }:
with kubenix.lib;

View file

@ -10,9 +10,9 @@ dockerTools.buildLayeredImage {
echo "nginx:x:1000:nginx" > etc/group
'';
config = {
Cmd = ["nginx" "-c" "/etc/nginx/nginx.conf"];
Cmd = [ "nginx" "-c" "/etc/nginx/nginx.conf" ];
ExposedPorts = {
"80/tcp" = {};
"80/tcp" = { };
};
};
}

View file

@ -1,10 +1,10 @@
{ config, lib, pkgs, kubenix, ... }:
with lib;
let
nginx = pkgs.callPackage ./image.nix { };
in {
in
{
imports = with kubenix.modules; [ k8s docker ];
docker.images.nginx.image = nginx;