Compare commits
9 Commits
528a217708
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
288ee6a2a6 | ||
|
|
a25c0bdf5d | ||
|
|
4ecb6625c8 | ||
|
|
174d0b136e | ||
|
|
d8f7464944 | ||
|
|
9f5003ecc5 | ||
|
|
cda9b648ad | ||
|
|
1af565ae1b | ||
|
|
36b03dea7b |
@@ -21,13 +21,12 @@ RUN apt-get update && \
|
|||||||
wget \
|
wget \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Create user (Debian syntax)
|
||||||
# Create user (Debian syntax)
|
|
||||||
RUN groupadd -r quarkus && useradd -r -g quarkus quarkus
|
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
|
# Create the data directory and set ownership BEFORE switching user
|
||||||
RUN mkdir -p /mnt/okcomputer/output && \
|
# RUN mkdir -p /mnt/okcomputer/output && chown -R quarkus:quarkus /mnt/okcomputer/output
|
||||||
chown -R quarkus:quarkus /mnt/okcomputer/output
|
|
||||||
|
|
||||||
# Copy the built jar with correct pattern
|
# Copy the built jar with correct pattern
|
||||||
COPY --from=builder --chown=quarkus:quarkus /app/target/auctiora-*.jar app.jar
|
COPY --from=builder --chown=quarkus:quarkus /app/target/auctiora-*.jar app.jar
|
||||||
|
|||||||
@@ -442,6 +442,10 @@ Kavel 12345 sluit binnen 5 min.
|
|||||||
- OpenCV native libraries must match your platform architecture
|
- OpenCV native libraries must match your platform architecture
|
||||||
- YOLO weights file is ~245 MB
|
- YOLO weights file is ~245 MB
|
||||||
|
|
||||||
|
|
||||||
|
```shell
|
||||||
|
git add . | git commit -a -m all | git push
|
||||||
|
```
|
||||||
## License
|
## License
|
||||||
|
|
||||||
This is example code for educational purposes.
|
This is example code for educational purposes.
|
||||||
|
|||||||
@@ -39,12 +39,12 @@ services:
|
|||||||
- "traefik.http.routers.auctiora.tls.certresolver=letsencrypt"
|
- "traefik.http.routers.auctiora.tls.certresolver=letsencrypt"
|
||||||
- "traefik.http.services.auctiora.loadbalancer.server.port=8081"
|
- "traefik.http.services.auctiora.loadbalancer.server.port=8081"
|
||||||
|
|
||||||
healthcheck:
|
#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
|
# interval: 30s
|
||||||
timeout: 3s
|
# timeout: 3s
|
||||||
retries: 3
|
# retries: 3
|
||||||
start_period: 10s
|
# start_period: 10s
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
traefik_net:
|
traefik_net:
|
||||||
|
|||||||
30
script/persist.sh
Normal file
30
script/persist.sh
Normal 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!
|
||||||
@@ -252,8 +252,40 @@ public class DatabaseService {
|
|||||||
// Table might not exist yet, which is fine
|
// Table might not exist yet, which is fine
|
||||||
log.debug("Could not check lots table schema: " + e.getMessage());
|
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());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Inserts or updates an auction record (typically called by external scraper)
|
* Inserts or updates an auction record (typically called by external scraper)
|
||||||
*/
|
*/
|
||||||
|
|||||||
0
troostwijk.db
Normal file
0
troostwijk.db
Normal file
Reference in New Issue
Block a user