This commit is contained in:
2025-11-28 02:19:48 +01:00
parent b1295f4329
commit 90ce6bc907
2 changed files with 18 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ RUN apt-get update && \
COPY --from=build /build/target/troostwijk-scraper-1.0-SNAPSHOT-jar-with-dependencies.jar app.jar
# Set OpenCV library path and notification config
ENV LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
ENV LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu
ENV NOTIFICATION_CONFIG=desktop
ENTRYPOINT ["java", "-Djava.library.path=/usr/lib/x86_64-linux-gnu", "-jar", "/app/app.jar"]

View File

@@ -1,8 +1,23 @@
package com.auction;
public class Main {
public static void main(String[] args) throws Exception {
public static void main(String[] args) {
System.out.println("Starting Troostwijk Auction Scraper...");
//TroostwijkScraper.main(args);
try {
//TroostwijkScraper.main(args);
System.out.println("This is fine..");
} catch (Exception e) {
System.err.println("Error starting scraper: " + e.getMessage());
e.printStackTrace();
// Keep container alive for debugging
System.out.println("\nContainer will remain running. Check logs for errors.");
try {
Thread.sleep(Long.MAX_VALUE);
} catch (InterruptedException ie) {
Thread.currentThread().interrupt();
}
}
}
}