Skip to content

Commit

Permalink
Merge pull request #26 from mynttt/infrastructure-rework
Browse files Browse the repository at this point in the history
Infrastructure rework
  • Loading branch information
mynttt authored May 22, 2020
2 parents 5768a73 + be6067a commit 7c308e3
Show file tree
Hide file tree
Showing 23 changed files with 467 additions and 229 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.8
1.3.9
2 changes: 1 addition & 1 deletion updatetool-docker/build → build-docker
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#Needs experimental features enabled and qemu support / a builder set up with arm included!
docker buildx build --platform linux/amd64,linux/arm64/v8 --no-cache -t mynttt/updatetool:latest . --push
docker buildx build --platform linux/amd64,linux/arm64/v8 --no-cache -t mynttt/updatetool:latest -f updatetool-docker/Dockerfile . --push
2 changes: 1 addition & 1 deletion updatetool-docker-32bit/build → build-docker-32bit
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#Needs experimental features enabled and qemu support / a builder set up with arm included!
docker buildx build --platform linux/arm/v7,linux/386 --no-cache -t mynttt/updatetool:32bit . --push
docker buildx build --platform linux/arm/v7,linux/386 --no-cache -t mynttt/updatetool:32bit -f updatetool-docker-32bit/Dockerfile . --push
22 changes: 18 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ plugins {
id 'java'
id 'application'
id 'eclipse'
id 'com.github.spotbugs' version '2.0.1'
}

version = '1.3.8'
version = '1.3.9'
sourceCompatibility = '11'

new File(projectDir, "VERSION").text = version;
Expand All @@ -23,11 +24,13 @@ dependencies {
// https://mvnrepository.com/artifact/org.xerial/sqlite-jdbc
implementation group: 'org.xerial', name: 'sqlite-jdbc', version: '3.30.1'

// https://mvnrepository.com/artifact/org.tinylog/tinylog-api
implementation group: 'org.tinylog', name: 'tinylog-api', version: '2.0.1'

// https://mvnrepository.com/artifact/org.tinylog/tinylog-impl
implementation group: 'org.tinylog', name: 'tinylog-impl', version: '2.0.1'

// https://mvnrepository.com/artifact/de.mynttt/ezconf
implementation group: 'de.mynttt', name: 'ezconf', version: '1.1.0'

compileOnly group: 'com.github.spotbugs', name: 'spotbugs-annotations', version: '3.1.12'
}

run {
Expand All @@ -50,4 +53,15 @@ jar {
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}

spotbugs {
ignoreFailures = false
effort = "max"
sourceSets = [sourceSets.main]
}

tasks.withType(com.github.spotbugs.SpotBugsTask) {
reports.xml.enabled = false
reports.html.enabled = true
}
File renamed without changes.
16 changes: 16 additions & 0 deletions docker-shared/entry.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash
cd /usr/app
./bootstrap.sh
cd /config
PLEX_DATA_DIR="/c/Users/myntt/Dev/resources/Plex Media Server"
#"/plexdata"
export PLEX_DATA_DIR
RUN_EVERY_N_HOURS=${RUN_EVERY_N_HOURS:="12"}
if [ -z "$JVM_MAX_HEAP" ]; then
__heap="-Xmx256m"
else
__heap="-Xmx${JVM_MAX_HEAP}"
fi
echo "MAX JVM HEAP: ${__heap}"
echo "**** Invoking tool! Logs in /config ****"
java -Xms64m "${__heap}" -XX:+UseG1GC -XX:MinHeapFreeRatio=15 -XX:MaxHeapFreeRatio=30 -jar /usr/app/tool.jar imdb-docker "{schedule=$RUN_EVERY_N_HOURS}"
File renamed without changes.
Loading

0 comments on commit 7c308e3

Please sign in to comment.