Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 1023 Bytes

README.org

File metadata and controls

34 lines (29 loc) · 1023 Bytes

Introduction

This reposity contains utilities for building and deploying projects meant to run in my own personal kubernetes cluster. They may be of inspiration to others. The main technologies at play are Make, Nix, and Dhall.

What this includes

  1. Semantic version tagging of git and docker images.
  2. Bootstrapping docker image generation via Nix.
  3. Generation of Kubernetes yamls via Dhall.
  4. Deployment of Kubernetes yamls via kubectl or flux.

Requirements

  • Nix
  • A service.dhall file containing the following record of the following type:
{ name :
  Text
, repo :
  Text
, port :
  Natural
, gateway :
  Text
, hosts :
  List Text
}

Usage

The primary way to plug this into a project is to import it in a makefile.

  1. If cloned to a local directory: include $(shell nix-shell ../service_utils/shell.nix --run "")
  2. If installed via nix: include $(shell print-utils-make)

This will make the utility make functions defined by this repository available in including repo.