Skip to content

PoC process-compose deployments for NixOS

License

Notifications You must be signed in to change notification settings

misuzu/process-compose-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

process-compose-deploy

Set up

inputs.process-compose-deploy.url = "github:misuzu/process-compose-deploy";

imports = [ inputs.process-compose-deploy.nixosModule ];

services.process-compose-deploy.default.enable = true;

Attach default instance

sudo process-compose-adm-default attach

Deploy simple example

sudo process-compose-deploy-default $(nix build --print-out-paths --no-link github:misuzu/process-compose-deploy?dir=example/simple) -v

Deploy microvm.nix instance

sudo process-compose-deploy-default $(nix build --print-out-paths --no-link github:misuzu/process-compose-deploy?dir=example/microvm) -v

Deploy services-flake service

sudo process-compose-deploy-default $(nix build --print-out-paths --no-link github:juspay/services-flake?dir=example/simple) -v

Remote deployments

# build the flake
nix build github:juspay/services-flake?dir=example/simple
# push the build result to cache (e.g. attic)
nix shell nixpkgs#attic-client -c attic push mycache $(readlink -f ./result)
# deploy
ssh myuser@myhost sudo process-compose-deploy-default $(readlink -f ./result)

Related projects

  • process-compose-flake: A flake-parts module to spin up processes for development by leveraging process-compose.
  • services-flake: NixOS-like services built on top of process-compose-flake.
  • microvm.nix: NixOS MicroVMs.
  • attic: Multi-tenant Nix Binary Cache.

About

PoC process-compose deployments for NixOS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages