Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 4eda62a
Showing
18 changed files
with
578 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# | ||
# Travis CI recipe to build docker image. | ||
# | ||
|
||
sudo: required | ||
|
||
language: generic | ||
|
||
services: | ||
- docker | ||
|
||
#before_script: | ||
# - echo "Validating Dockerfile..." | ||
# - docker run --rm -v "$(pwd)/Dockerfile:/Dockerfile:ro" redcoolbeans/dockerlint | ||
|
||
script: | ||
- echo "Starting build of Docker image..." | ||
- docker build --no-cache --pull -t $TRAVIS_REPO_SLUG:$TRAVIS_JOB_ID . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
# | ||
# filebot Dockerfile | ||
# | ||
# https://github.com/jlesage/docker-filebot | ||
# | ||
|
||
# Pull base image. | ||
FROM jlesage/baseimage-gui:alpine-3.7-v3.3.1 | ||
|
||
# Define software versions. | ||
ARG FILEBOT_VERSION=4.7.9 | ||
ARG OPENJFX_VERSION=8.151.12-r0 | ||
|
||
# Define software download URLs. | ||
ARG FILEBOT_URL=https://downloads.sourceforge.net/project/filebot/filebot/FileBot_${FILEBOT_VERSION}/FileBot_${FILEBOT_VERSION}-portable.tar.xz | ||
ARG OPENJFX_URL=https://github.com/sgerrand/alpine-pkg-java-openjfx/releases/download/${OPENJFX_VERSION}/java-openjfx-${OPENJFX_VERSION}.apk | ||
|
||
# Define working directory. | ||
WORKDIR /tmp | ||
|
||
# Install FileBot | ||
RUN \ | ||
add-pkg --virtual build-dependencies curl zip && \ | ||
# Download sources. | ||
curl -# -L ${FILEBOT_URL} | tar xJ && \ | ||
# Install. | ||
mkdir -p /opt/filebot/lib && \ | ||
cp -v FileBot.jar /opt/filebot/ && \ | ||
zip -d /opt/filebot/FileBot.jar com/sun/jna/* && \ | ||
# Cleanup. | ||
del-pkg build-dependencies && \ | ||
rm -rf /tmp/* /tmp/.[!.]* | ||
|
||
# Install dependencies. | ||
RUN \ | ||
add-pkg --virtual build-dependencies curl && \ | ||
# OpenJFX | ||
curl -# -L -o java-openjfx.apk ${OPENJFX_URL} && \ | ||
apk --no-cache add --allow-untrusted ./java-openjfx.apk && \ | ||
add-pkg \ | ||
gtk+2.0 \ | ||
openjdk8-jre \ | ||
java-jna \ | ||
libmediainfo \ | ||
&& \ | ||
# AcousItD (fpcalc) | ||
add-pkg chromaprint --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing && \ | ||
# Cleanup. | ||
del-pkg build-dependencies && \ | ||
rm -rf /tmp/* /tmp/.[!.]* | ||
|
||
# Temporary workaround for missing libraries in OenJFX package (see | ||
# https://github.com/sgerrand/alpine-pkg-java-openjfx/issues/1) | ||
COPY openjfx-lib/* /usr/lib/jvm/java-1.8-openjdk/jre/lib/amd64/ | ||
|
||
# Adjust the openbox config. | ||
RUN \ | ||
# Maximize only the main window. | ||
sed-patch 's/<application type="normal">/<application type="normal" title="FileBot \*">/' \ | ||
/etc/xdg/openbox/rc.xml && \ | ||
# Make sure the main window is always in the background. | ||
sed-patch '/<application type="normal" title="FileBot \*">/a \ <layer>below</layer>' \ | ||
/etc/xdg/openbox/rc.xml | ||
|
||
# Generate and install favicons. | ||
RUN \ | ||
APP_ICON_URL=https://raw.githubusercontent.com/jlesage/docker-templates/master/jlesage/images/filebot-icon.png && \ | ||
install_app_icon.sh "$APP_ICON_URL" | ||
|
||
# Add files. | ||
COPY rootfs/ / | ||
|
||
# Set environment variables. | ||
ENV APP_NAME="FileBot" | ||
|
||
# Define mountable directories. | ||
VOLUME ["/config"] | ||
VOLUME ["/storage"] | ||
|
||
# Metadata. | ||
LABEL \ | ||
org.label-schema.name="filebot" \ | ||
org.label-schema.description="Docker container for FileBot" \ | ||
org.label-schema.version="unknown" \ | ||
org.label-schema.vcs-url="https://github.com/jlesage/docker-filebot" \ | ||
org.label-schema.schema-version="1.0" |
Oops, something went wrong.