Compare commits
7 Commits
1af565ae1b
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
288ee6a2a6 | ||
|
|
a25c0bdf5d | ||
|
|
4ecb6625c8 | ||
|
|
174d0b136e | ||
|
|
d8f7464944 | ||
|
|
9f5003ecc5 | ||
|
|
cda9b648ad |
@@ -21,13 +21,12 @@ RUN apt-get update && \
|
||||
wget \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
||||
# 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
|
||||
|
||||
@@ -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.
|
||||
|
||||
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,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());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user