mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-19 04:49:36 -07:00
Add items needed to create Docker image
This commit is contained in:
parent
89248ad46a
commit
f572943a7b
4 changed files with 74 additions and 0 deletions
5
.dockerignore
Normal file
5
.dockerignore
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
.git
|
||||||
|
.github
|
||||||
|
.gitignore
|
||||||
|
*.md
|
||||||
|
!CHANGELOG*.md
|
17
.github/workflows/publishdocker-branch.yml
vendored
Normal file
17
.github/workflows/publishdocker-branch.yml
vendored
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
name: Publish Docker Branch
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- name: Publish to Registry
|
||||||
|
uses: elgohr/Publish-Docker-Github-Action@master
|
||||||
|
env:
|
||||||
|
VERSION: ${{ github.sha }}
|
||||||
|
with:
|
||||||
|
name: wreave/tautulli
|
||||||
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
buildargs: VERSION
|
22
.github/workflows/publishdocker-release.yml
vendored
Normal file
22
.github/workflows/publishdocker-release.yml
vendored
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
name: Publish Docker Release
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [published, prereleased]
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- name: Set env
|
||||||
|
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF/refs\/tags\//}
|
||||||
|
- name: Publish to Registry
|
||||||
|
uses: elgohr/Publish-Docker-Github-Action@master
|
||||||
|
env:
|
||||||
|
VERSION: ${{ github.sha }}
|
||||||
|
with:
|
||||||
|
name: wreave/tautulli
|
||||||
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
buildargs: VERSION
|
||||||
|
tags: ${{ env.RELEASE_VERSION }}
|
30
Dockerfile
Normal file
30
Dockerfile
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
FROM python:2.7.17-slim
|
||||||
|
|
||||||
|
LABEL maintainer="TheMeanCanEHdian"
|
||||||
|
|
||||||
|
ARG VERSION
|
||||||
|
|
||||||
|
ENV TAUTULLI_DOCKER=True
|
||||||
|
ENV TZ=UTC
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
RUN \
|
||||||
|
apt-get -q -y update --no-install-recommends && \
|
||||||
|
apt-get install -q -y --no-install-recommends \
|
||||||
|
curl && \
|
||||||
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
|
pip install --no-cache-dir --upgrade pip && \
|
||||||
|
pip install --no-cache-dir --upgrade \
|
||||||
|
plexapi \
|
||||||
|
pycryptodomex \
|
||||||
|
pyopenssl && \
|
||||||
|
echo ${VERSION} > /app/version.txt
|
||||||
|
|
||||||
|
COPY . /app
|
||||||
|
|
||||||
|
CMD [ "python", "Tautulli.py", "--datadir", "/config" ]
|
||||||
|
|
||||||
|
VOLUME /config /plex_logs
|
||||||
|
EXPOSE 8181
|
||||||
|
HEALTHCHECK --start-period=90s CMD curl -ILfSs http://localhost:8181/status > /dev/null || curl -ILfkSs https://localhost:8181/status > /dev/null || exit 1
|
Loading…
Add table
Add a link
Reference in a new issue