Portal live on Dokploy: ODBC Kerberos library and India time in the image

Dockerfile installs libgssapi-krb5-2 (ODBC Driver 18 could not load
without it) and runs on TZ=Asia/Kolkata with tzdata (the server is UTC).
Context.md: how the Portal was deployed (Drop zip, SQL login, DB host).
71 test files, 1224 tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ManikandanandClaude Opus 5.5 committed 2026-10-27 16:03:44 +05:30
1 parent c049cece23
commit 83a0cf65ae
3 files changed
+64 -8

No files matched your search

+24
View File
@@ -378,6 +378,30 @@ def the_portal_url_gives_the_hosts_origins_and_a_secure_cookie():
assert "; secure" in r.headers["set-cookie"].lower(), r.headers
@case
def the_container_keeps_the_odbc_drivers_kerberos_library():
"""Dokploy, 2026-10-27: autoremove took libgssapi-krb5-2 with curl, so
ODBC Driver 18 could not load ("Can't open lib ... file not found")."""
docker = (pathlib.Path(__file__).resolve().parent.parent
/ "Dockerfile").read_text(encoding="utf-8")
line = next(l for l in docker.splitlines() if "msodbcsql18" in l
and "install" in l)
assert "libgssapi-krb5-2" in line, line
@case
def the_container_keeps_india_time():
"""Dokploy, 2026-10-27: the server clock is UTC, so a Sign-in at 15:45
IST was recorded 10:15 and "today" would turn at 18:30 IST. The bot's
rows are IST; the Portal must be too."""
docker = (pathlib.Path(__file__).resolve().parent.parent
/ "Dockerfile").read_text(encoding="utf-8")
assert "TZ=Asia/Kolkata" in docker
line = next(l for l in docker.splitlines() if "msodbcsql18" in l
and "install" in l)
assert "tzdata" in line, line
@case
def no_signed_in_page_carries_an_inline_style():
app, _, _ = _portal()