Skip to content

Commit

Permalink
updates for time zone in alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
petersem committed Apr 1, 2021
1 parent c188c8d commit 0046f27
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 7 deletions.
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# any excluded dir with a .keep file will stay in github, but all other files will not :)
!.keep

# ignore the following folders
/node_modules
/public/mp3cache/**
/public/imagecache/**
# any excluded dir with a .keep file will stay in github, but all other files will not :)
!.keep
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
FROM node:12.18-alpine

# tzdata for timzone
RUN apk update
RUN apk add tzdata

ENV NODE_ENV=production

WORKDIR /usr/src/app
COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"]
RUN npm install --production --silent && mv node_modules ../

COPY . .
EXPOSE 3000
HEALTHCHECK --interval=10s --start-period=60s CMD wget http://127.0.0.1:3000 -qO /dev/null || exit 1
CMD ["node", "index.js"]

2 changes: 1 addition & 1 deletion classes/arr/radarr.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class Radarr {
medCard.cardType = cType.CardTypeEnum.ComingSoon;

// dont bother to download if only looking for premiers
if (premieres && md.episodeNumber != 1) {
if (premieres == "true" && md.episodeNumber != 1) {
// dont get cached files
} else {
// cache mp3 file
Expand Down
2 changes: 1 addition & 1 deletion classes/arr/sonarr.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class Sonarr {
medCard.cardType = cType.CardTypeEnum.ComingSoon;

// dont bother to download if only looking for premiers
if (premieres && md.episodeNumber != 1) {
if (premieres == "true" && md.episodeNumber != 1) {
// dont get cached files
} else {
// cache mp3 file
Expand Down
2 changes: 1 addition & 1 deletion classes/mediaservers/plex.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class Plex {
medCard.decision = transcode;

// add generic random theme if applicable
if (medCard.theme == "" && playGenenericThemes == true) {
if (medCard.theme == "" && playGenenericThemes == "true") {
medCard.theme = "/randomthemes/" + (await core.GetRandomMP3());
}

Expand Down
27 changes: 25 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,35 @@
version: '3.4'
version: '2.4'

services:
poster:
image: poster
container_name: poster
build:
context: .
dockerfile: ./Dockerfile
environment:
TZ: Australia/Brisbane
NODE_ENV: production
PLEXTOKEN: ""
PLEXIP: 192.168.1.135
PLEX_HTTPS: "false"
PLEX_PORT: 32400
SLIDE_DURATION: 7
REFRESH_PERIOD: 120
PLAY_THEMES: "true"
PLAY_GENERIC_THEMES: "true"
ON_DEMAND_LIBRARIES: "movies,anime,tv shows"
NUMBER_ON_DEMAND: 2
ON_DEMAND_REFRESH: 30
SONARR_URL: "http://192.168.1.135:8989"
SONARR_TOKEN: ""
SONARR_CAL_DAYS: 175
SONARR_PREMIERES: "true"
RADARR_URL: "http://192.168.1.135:7878"
RADARR_TOKEN: ""
RADARR_CAL_DAYS: 15
volumes:
- c:/code/poster/public/randomthemes:/usr/src/app/public/randomthemes
ports:
- 3000:3000
- 9876:3000

0 comments on commit 0046f27

Please sign in to comment.