Skip to content

Commit fde7322

Browse files
committed
Got container working
1 parent d009ea2 commit fde7322

File tree

3 files changed

+6
-23
lines changed

3 files changed

+6
-23
lines changed

Dockerfile

+4-19
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,7 @@
1-
FROM registry.access.redhat.com/ubi9/openjdk-17:1.17-1.1705573248
2-
USER root
3-
RUN microdnf -y update --nodocs
4-
RUN microdnf -y install wget
5-
RUN microdnf -y install unzip
6-
RUN microdnf -y install libatk-1.0.so.0
7-
RUN wget https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/121.0.6167.85/linux64/chromedriver-linux64.zip
8-
RUN wget https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/121.0.6167.85/linux64/chrome-headless-shell-linux64.zip
9-
RUN wget https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/121.0.6167.85/linux64/chrome-linux64.zip
10-
RUN unzip chromedriver-linux64.zip
11-
RUN unzip chrome-headless-shell-linux64.zip
12-
RUN unzip chrome-linux64.zip
13-
RUN rm chromedriver-linux64.zip
14-
RUN rm chrome-headless-shell-linux64.zip
15-
RUN rm chrome-linux64.zip
1+
FROM zenika/alpine-chrome:with-chromedriver
162
EXPOSE 8080
3+
USER root
4+
RUN apk add dpkg
5+
RUN apk add openjdk17
176
COPY /build/libs/*.jar app.jar
18-
RUN chmod 777 /home
19-
RUN chmod -R 777 /home/default
20-
RUN useradd plextvtime
21-
USER plextvtime
227
ENTRYPOINT ["java","-XX:+UseSerialGC","-Xss512k", "-Xms64m", "-Xmx128m", "-jar","-Dspring.profiles.active=docker","./app.jar"]

src/main/java/com/zggis/plextvtime/service/ShowManagerServiceImpl.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -275,12 +275,10 @@ public void loginUser(String user, String password) {
275275
ThreadUtil.delay(3000 * i);
276276
}
277277
}
278-
/*
279-
TODO Enable retries
280278
throw new TVTimeException(
281279
ConsoleColor.RED.value
282280
+ "Unable to connect to TVTime after multiple attempts, please check your internet connection. It is possible http://tvtime.com is unavailable."
283-
+ ConsoleColor.NONE.value);*/
281+
+ ConsoleColor.NONE.value);
284282
}
285283

286284
private boolean hasPlexUser(AccountLink tvTimeAccount, String plexUser) {

src/main/java/com/zggis/plextvtime/service/TVTimeServiceImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class TVTimeServiceImpl implements TVTimeService {
3434

3535
@Override
3636
public void login(String user, String password) {
37-
System.setProperty("webdriver.chrome.driver", driverLocation);
37+
//System.setProperty("webdriver.chrome.driver", driverLocation);
3838
System.setProperty("webdriver.chrome.whitelistedIps", "");
3939
ChromeOptions options = new ChromeOptions();
4040
options.addArguments("--headless","--no-sandbox","--disable-dev-shm-usage","--disable-setuid-sandbox");

0 commit comments

Comments
 (0)