all
This commit is contained in:
@@ -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"]
|
||||
|
||||
@@ -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...");
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user