Compare commits

..

7 Commits

Author SHA1 Message Date
Tour
288ee6a2a6 test 2025-12-06 07:08:07 +01:00
Tour
a25c0bdf5d %* 2025-12-06 07:04:53 +01:00
Tour
4ecb6625c8 all 2025-12-06 06:23:34 +01:00
Tour
174d0b136e all 2025-12-06 06:19:23 +01:00
Tour
d8f7464944 front-end-fix 2025-12-06 06:14:26 +01:00
Tour
9f5003ecc5 front-end-fix 2025-12-06 06:03:43 +01:00
Tour
cda9b648ad front-end-fix 2025-12-06 05:59:22 +01:00
5 changed files with 72 additions and 7 deletions

View File

@@ -21,13 +21,12 @@ RUN apt-get update && \
wget \
&& rm -rf /var/lib/apt/lists/*
# Create user (Debian syntax)
# Create user (Debian syntax)
RUN groupadd -r quarkus && useradd -r -g quarkus quarkus
# Create user with explicit UID 1000 (Debian syntax)
# RUN groupadd -r -g 1000 quarkus && useradd -r -u 1000 -g quarkus quarkus
# Create the data directory and set ownership BEFORE switching user
RUN mkdir -p /mnt/okcomputer/output && \
chown -R quarkus:quarkus /mnt/okcomputer/output
# RUN mkdir -p /mnt/okcomputer/output && chown -R quarkus:quarkus /mnt/okcomputer/output
# Copy the built jar with correct pattern
COPY --from=builder --chown=quarkus:quarkus /app/target/auctiora-*.jar app.jar

View File

@@ -442,6 +442,10 @@ Kavel 12345 sluit binnen 5 min.
- OpenCV native libraries must match your platform architecture
- YOLO weights file is ~245 MB
```shell
git add . | git commit -a -m all | git push
```
## License
This is example code for educational purposes.

View File

@@ -40,7 +40,7 @@ services:
- "traefik.http.services.auctiora.loadbalancer.server.port=8081"
#healthcheck:
# test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8081/q/health/live"]
# test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8081/q/health/live"]
# interval: 30s
# timeout: 3s
# retries: 3

30
script/persist.sh Normal file
View File

@@ -0,0 +1,30 @@
@echo off
if "%1"=="" (
echo Error: Commit message is required
echo Usage: persist "Your commit message"
echo Example: persist "Fixed login bug"
exit /b 1
)
echo Adding all changes...
git add .
if errorlevel 1 (
echo Error: Failed to add changes
exit /b 1
)
echo Committing with message: "%*"
git commit -a -m "%*"
if errorlevel 1 (
echo Error: Failed to commit
exit /b 1
)
echo Pushing to remote...
git push
if errorlevel 1 (
echo Error: Failed to push
exit /b 1
)
echo All operations completed successfully!

View File

@@ -252,6 +252,38 @@ public class DatabaseService {
// Table might not exist yet, which is fine
log.debug("Could not check lots table schema: " + e.getMessage());
}
// Check images table for missing columns and migrate
try (var rs = stmt.executeQuery("PRAGMA table_info(images)")) {
var hasLabels = false;
var hasLocalPath = false;
var hasProcessedAt = false;
while (rs.next()) {
var colName = rs.getString("name");
switch (colName) {
case "labels" -> hasLabels = true;
case "local_path" -> hasLocalPath = true;
case "processed_at" -> hasProcessedAt = true;
}
}
if (!hasLabels) {
log.info("Migrating schema: Adding 'labels' column to images table");
stmt.execute("ALTER TABLE images ADD COLUMN labels TEXT");
}
if (!hasLocalPath) {
log.info("Migrating schema: Adding 'local_path' column to images table");
stmt.execute("ALTER TABLE images ADD COLUMN local_path TEXT");
}
if (!hasProcessedAt) {
log.info("Migrating schema: Adding 'processed_at' column to images table");
stmt.execute("ALTER TABLE images ADD COLUMN processed_at INTEGER");
}
} catch (SQLException e) {
// Table might not exist yet, which is fine
log.debug("Could not check images table schema: " + e.getMessage());
}
}
/**