mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 17:14:08 +02:00
add 8.3
This commit is contained in:
parent
924485eb01
commit
c49fb38a88
2 changed files with 9 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ haze start [database] [php-version] [services]
|
||||||
```
|
```
|
||||||
|
|
||||||
Where `database` is one of `sqlite`, `mysql`, `mariadb`, `pgsql` or `oracle` with an optional version (e.g. `pgsql:12`), defaults to `sqlite`.
|
Where `database` is one of `sqlite`, `mysql`, `mariadb`, `pgsql` or `oracle` with an optional version (e.g. `pgsql:12`), defaults to `sqlite`.
|
||||||
And `php-version` is one of `8.0`, `8.1`, `8.2`, defaults to `8.1`. `7.3` and `7.4` are still supported but the docker images for those versions aren't being updated anymore so they might be missing some newer features.
|
And `php-version` is one of `8.0`, `8.1`, `8.2`, `8.3`, defaults to `8.1`. `7.3` and `7.4` are still supported but the docker images for those versions aren't being updated anymore so they might be missing some newer features.
|
||||||
|
|
||||||
Each php version also comes with a `-dbg` variant that has php compiled in debug mode and can be used for debugging php itself with gdb.
|
Each php version also comes with a `-dbg` variant that has php compiled in debug mode and can be used for debugging php itself with gdb.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,12 +16,14 @@ use tokio::time::{sleep, timeout};
|
||||||
#[derive(Clone, Debug, Eq, PartialEq, Default)]
|
#[derive(Clone, Debug, Eq, PartialEq, Default)]
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
pub enum PhpVersion {
|
pub enum PhpVersion {
|
||||||
|
Php83,
|
||||||
Php82,
|
Php82,
|
||||||
#[default]
|
#[default]
|
||||||
Php81,
|
Php81,
|
||||||
Php80,
|
Php80,
|
||||||
Php74,
|
Php74,
|
||||||
Php73,
|
Php73,
|
||||||
|
Php83Dbg,
|
||||||
Php82Dbg,
|
Php82Dbg,
|
||||||
Php81Dbg,
|
Php81Dbg,
|
||||||
Php80Dbg,
|
Php80Dbg,
|
||||||
|
|
@ -43,6 +45,7 @@ impl FromStr for PhpVersion {
|
||||||
"8.0" => Ok(PhpVersion::Php80),
|
"8.0" => Ok(PhpVersion::Php80),
|
||||||
"8.1" => Ok(PhpVersion::Php81),
|
"8.1" => Ok(PhpVersion::Php81),
|
||||||
"8.2" => Ok(PhpVersion::Php82),
|
"8.2" => Ok(PhpVersion::Php82),
|
||||||
|
"8.3" => Ok(PhpVersion::Php83),
|
||||||
"7-dbg" => Ok(PhpVersion::Php74Dbg),
|
"7-dbg" => Ok(PhpVersion::Php74Dbg),
|
||||||
"7.3-dbg" => Ok(PhpVersion::Php73Dbg),
|
"7.3-dbg" => Ok(PhpVersion::Php73Dbg),
|
||||||
"7.4-dbg" => Ok(PhpVersion::Php74Dbg),
|
"7.4-dbg" => Ok(PhpVersion::Php74Dbg),
|
||||||
|
|
@ -50,6 +53,7 @@ impl FromStr for PhpVersion {
|
||||||
"8.0-dbg" => Ok(PhpVersion::Php80Dbg),
|
"8.0-dbg" => Ok(PhpVersion::Php80Dbg),
|
||||||
"8.1-dbg" => Ok(PhpVersion::Php81Dbg),
|
"8.1-dbg" => Ok(PhpVersion::Php81Dbg),
|
||||||
"8.2-dbg" => Ok(PhpVersion::Php82Dbg),
|
"8.2-dbg" => Ok(PhpVersion::Php82Dbg),
|
||||||
|
"8.3-dbg" => Ok(PhpVersion::Php83Dbg),
|
||||||
_ => Err(()),
|
_ => Err(()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -64,11 +68,13 @@ impl PhpVersion {
|
||||||
PhpVersion::Php80 => "icewind1991/haze:8.0",
|
PhpVersion::Php80 => "icewind1991/haze:8.0",
|
||||||
PhpVersion::Php81 => "icewind1991/haze:8.1",
|
PhpVersion::Php81 => "icewind1991/haze:8.1",
|
||||||
PhpVersion::Php82 => "icewind1991/haze:8.2",
|
PhpVersion::Php82 => "icewind1991/haze:8.2",
|
||||||
|
PhpVersion::Php83 => "icewind1991/haze:8.3",
|
||||||
PhpVersion::Php73Dbg => "icewind1991/haze:7.3-dbg",
|
PhpVersion::Php73Dbg => "icewind1991/haze:7.3-dbg",
|
||||||
PhpVersion::Php74Dbg => "icewind1991/haze:7.4-dbg",
|
PhpVersion::Php74Dbg => "icewind1991/haze:7.4-dbg",
|
||||||
PhpVersion::Php80Dbg => "icewind1991/haze:8.0-dbg",
|
PhpVersion::Php80Dbg => "icewind1991/haze:8.0-dbg",
|
||||||
PhpVersion::Php81Dbg => "icewind1991/haze:8.1-dbg",
|
PhpVersion::Php81Dbg => "icewind1991/haze:8.1-dbg",
|
||||||
PhpVersion::Php82Dbg => "icewind1991/haze:8.2-dbg",
|
PhpVersion::Php82Dbg => "icewind1991/haze:8.2-dbg",
|
||||||
|
PhpVersion::Php83Dbg => "icewind1991/haze:8.3-dbg",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -79,11 +85,13 @@ impl PhpVersion {
|
||||||
PhpVersion::Php80 => "8.0",
|
PhpVersion::Php80 => "8.0",
|
||||||
PhpVersion::Php81 => "8.1",
|
PhpVersion::Php81 => "8.1",
|
||||||
PhpVersion::Php82 => "8.2",
|
PhpVersion::Php82 => "8.2",
|
||||||
|
PhpVersion::Php83 => "8.3",
|
||||||
PhpVersion::Php73Dbg => "7.3-dbg",
|
PhpVersion::Php73Dbg => "7.3-dbg",
|
||||||
PhpVersion::Php74Dbg => "7.4-dbg",
|
PhpVersion::Php74Dbg => "7.4-dbg",
|
||||||
PhpVersion::Php80Dbg => "8.0-dbg",
|
PhpVersion::Php80Dbg => "8.0-dbg",
|
||||||
PhpVersion::Php81Dbg => "8.1-dbg",
|
PhpVersion::Php81Dbg => "8.1-dbg",
|
||||||
PhpVersion::Php82Dbg => "8.2-dbg",
|
PhpVersion::Php82Dbg => "8.2-dbg",
|
||||||
|
PhpVersion::Php83Dbg => "8.3-dbg",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue