1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 09:04:12 +02:00
No description
  • Rust 89.9%
  • Nix 5.9%
  • PHP 2.2%
  • Nushell 2%
Find a file
2021-04-21 17:51:40 +02:00
.github/workflows no cross 2021-03-12 22:39:24 +01:00
images aws cli 2 2021-04-08 21:39:13 +02:00
src no hard error when datadir cant be deleted 2021-04-09 20:12:20 +02:00
.gitignore init repo 2021-03-11 21:15:24 +01:00
Cargo.lock update dependencies 2021-04-21 17:51:40 +02:00
Cargo.toml update dependencies 2021-04-21 17:51:40 +02:00
LICENSE images and linking 2021-03-12 21:49:58 +01:00
README.md bit more readme 2021-03-15 22:46:03 +01:00

Haze

Hazy with a chance of clouds.

Setup

Requirements

  • Docker

Config

Create a file ~/.config/haze/haze.toml with the following options:

sources_root = "/path/to/nextcloud/sources"

See the configuration section for more options.

Managing instances

Start an instance

haze start [database] [php-version]

Where database is one of sqlite, mysql, mariadb or pgsql with an optional version (e.g. pgsql:12), defaults to sqlite. And php-version is one of 7.2, 7.3, 7.4, 8.0, 7 or 8, defaults to 8.0

Run tests in a new instance

haze test [database] [php-version] [path]

Where path is a file or folder to run phpunit in, relative to the sources root.

List running instances

haze

or

haze list

Remove all running instances

haze clean

Controlling running instances

The following commands run against the most recently started instance and allow optionally providing a match to select a specific instance by it's name.

Open an instance

haze [match] open

Open the database of an instance

haze [match] db

Execute a command on an instance

haze [match] exec [cmd]

If no cmd is specified it will launch bash

Execute an occ command on an instance

haze [match] occ [cmd]

Show the logs of an instance

haze [match] logs

Stop an instance

haze [match] stop

Configuration

Configuration is loaded from ~/.config/haze/haze.toml and has the following options

sources_root = "/path/to/sources" # path of the nextcloud sources. required
work_dir = "/path/to/temp/dir" # path to temporary directory. optional, defaults to "/tmp/haze"

[auto_setup] # optional
enabled = false # whether or not to automatically install nextcloud on `haze start`. optional, defaults to false
username = "foo" # username for admin user during auto setup. optional, defaults to "admin"
password = "bar" # password for admin user during auto setup. optional, defaults to "admin"