mirror of
https://github.com/kevinveenbirkenbach/docker-volume-backup.git
synced 2026-10-26 16:02:08 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
389b418f42 | ||
|
|
948b8347f4 |
No files matched your search
@@ -1,5 +1,18 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [7.1.1] - 2026-10-17
|
||||||
|
|
||||||
|
Fixed:
|
||||||
|
|
||||||
|
- Tests: e2e MariaDB probe ran root passwordless and timed out at random
|
||||||
|
- Tests: probe now logs in with the root password, skips the temp server
|
||||||
|
- Tests: anonymous-preemption bootstrap now uses the root password too
|
||||||
|
|
||||||
|
Upgrade notes:
|
||||||
|
|
||||||
|
- 7.1.0 never reached stable: its CI failed, no image was published
|
||||||
|
- 7.1.1 is the first published -aHAX build; 7.1.0 upgrade notes apply
|
||||||
|
|
||||||
## [7.1.0] - 2026-10-17
|
## [7.1.0] - 2026-10-17
|
||||||
|
|
||||||
Fixed:
|
Fixed:
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "backup-docker-to-local"
|
name = "backup-docker-to-local"
|
||||||
version = "7.1.0"
|
version = "7.1.1"
|
||||||
description = "Backup Docker volumes to local with rsync and optional DB dumps."
|
description = "Backup Docker volumes to local with rsync and optional DB dumps."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.9"
|
requires-python = ">=3.9"
|
||||||
|
|||||||
@@ -96,12 +96,13 @@ def wait_for_mariadb(
|
|||||||
container: str, *, root_password: str, timeout_s: int = 90
|
container: str, *, root_password: str, timeout_s: int = 90
|
||||||
) -> None:
|
) -> None:
|
||||||
"""
|
"""
|
||||||
Liveness probe for MariaDB.
|
Readiness probe for MariaDB, as root over the socket.
|
||||||
|
|
||||||
IMPORTANT (MariaDB 11):
|
The entrypoint drops root@127.0.0.1, so root is socket-only, and it
|
||||||
Root TCP auth is often restricted (unix_socket auth), so a TCP ping like
|
installs root@localhost without unix_socket auth: a probe without the
|
||||||
`mariadb-admin -uroot -p... -h localhost ping` can fail even though the server is up.
|
password only passes in the init window before the password is set.
|
||||||
We therefore check readiness via a socket-based query.
|
`@@skip_networking` must be 0 so the entrypoint's temporary server,
|
||||||
|
which shuts down right after init, does not count as ready.
|
||||||
"""
|
"""
|
||||||
deadline = time.time() + timeout_s
|
deadline = time.time() + timeout_s
|
||||||
while time.time() < deadline:
|
while time.time() < deadline:
|
||||||
@@ -112,12 +113,15 @@ def wait_for_mariadb(
|
|||||||
container,
|
container,
|
||||||
"sh",
|
"sh",
|
||||||
"-lc",
|
"-lc",
|
||||||
'mariadb -uroot --protocol=socket -e "SELECT 1;"',
|
(
|
||||||
|
f"mariadb -uroot -p{root_password} --protocol=socket "
|
||||||
|
'-N -e "SELECT @@skip_networking;"'
|
||||||
|
),
|
||||||
],
|
],
|
||||||
capture=True,
|
capture=True,
|
||||||
check=False,
|
check=False,
|
||||||
)
|
)
|
||||||
if p.returncode == 0:
|
if p.returncode == 0 and p.stdout.strip() == "0":
|
||||||
return
|
return
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
raise TimeoutError(
|
raise TimeoutError(
|
||||||
|
|||||||
@@ -100,7 +100,10 @@ class TestE2EMariaDBAnonymousPreemption(unittest.TestCase):
|
|||||||
cls.db_container,
|
cls.db_container,
|
||||||
"sh",
|
"sh",
|
||||||
"-lc",
|
"-lc",
|
||||||
f'mariadb -uroot --protocol=socket -e "{bootstrap_sql}"',
|
(
|
||||||
|
f"mariadb -uroot -p{cls.root_password} --protocol=socket "
|
||||||
|
f'-e "{bootstrap_sql}"'
|
||||||
|
),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user