Skip to content
briheetPublic

About

Build and orchestrate reproducible Apple Container environments from OCI images, Dockerfiles, Containerfiles, and Nix inputs.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

25 Commits

Folders and files

Repository files navigation

Nozarashi Ascii

Nozarashi orchestrates reproducible Apple Container environments from OCI images, Dockerfiles, Containerfiles and Nix inputs.

Define services and resources in nozarashi.toml, then manage their images, containers, networks and volumes as one project.

Nozarashi comes also bundled with a TUI for apple containers logs viewing.

Installation

Using Nix:

# Try before installing ?
nix run github:briheet/nozarashi

# Wanna try tui ?
nix run github:briheet/nozarashi tui

# Install
nix profile install github:briheet/nozarashi

Using Go:

# Try before installing ?
go run github.com/briheet/nozarashi/cmd/nozarashi@main

# Wanna try tui ?
go run github.com/briheet/nozarashi/cmd/nozarashi@main tui

# Install
go install github.com/briheet/nozarashi/cmd/nozarashi@main

Requirements

  • macOS with Apple Container installed
  • Nix when building services from Nix inputs

Quick start

From a directory containing nozarashi.toml:

# To create resource(volumes and networks) and dns
sudo nozarashi create

# To build and pull images
nozarashi build

# To start containers
nozarashi up

create registers the project DNS domain and creates its networks and volumes. DNS registration requires administrator privileges; see Apple’s local DNS documentation.

Use a service name to target one service:

# Stop the image's container if its running and recreate its image
nozarashi build backend

# Start the container from an image
nozarashi up backend

# Get logs for the container specified
nozarashi logs backend

# Exec commands 
nozarashi exec backend sh

Commands

Command Purpose
create Create project DNS, networks and volumes
build [services...] Build or pull service images
up [services...] Create and start containers
down [services...] Stop containers
restart [services...] Restart containers
ps List project containers
logs [services...] Print container logs
exec <service> <command> Run a command in a container
inspect <services...> Display container details
destroy Delete project containers, images and resources

See the configuration specification and examples for complete setups and every supported input type.

License

MIT

About

Build and orchestrate reproducible Apple Container environments from OCI images, Dockerfiles, Containerfiles, and Nix inputs.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages