Skip to content

Commit

Permalink
fix plex schema and update lib on apps (#101)
Browse files Browse the repository at this point in the history
* plex: fix host_path config indentation

* update library

* Improve logging for detected changed items
  • Loading branch information
stavros-k authored Aug 7, 2024
1 parent 5cfbc70 commit b1f6277
Show file tree
Hide file tree
Showing 132 changed files with 1,067 additions and 213 deletions.
6 changes: 4 additions & 2 deletions .github/scripts/changed_apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@ def find_test_files(changed_files):
continue

full_name = f"{match.group(1)}/{match.group(2)}"
print(f"Detected changed item for {full_name}", file=sys.stderr)

for file in pathlib.Path("ix-dev", full_name, TEST_VALUES_DIR).glob("*.yaml"):
item_tuple = (match.group(1), match.group(2), file.name)
if item_tuple not in seen:
print(
f"Detected changed item for [{full_name}] adding [{file.name}] to matrix",
file=sys.stderr,
)
seen.add(item_tuple)
matrix.append(
{
Expand Down
4 changes: 2 additions & 2 deletions ix-dev/community/actual-budget/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ keywords:
- finance
- budget
lib_version: 1.0.0
lib_version_hash: f2610d4386f9f2f65b1e69176effe945f2d9cc7b9489e6386de82f1f63986c4e
lib_version_hash: 909c14fa5586b5738632ff5ec8489eb26af143ecc601cf199df0b8b9e6d6a10c
maintainers:
- email: [email protected]
name: truenas
Expand All @@ -33,4 +33,4 @@ sources:
- https://hub.docker.com/r/actualbudget/actual-server
title: Actual Budget
train: community
version: 1.0.0
version: 1.0.1
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import hashlib
import secrets
import sys

Expand Down Expand Up @@ -65,6 +66,18 @@ def get_image(images={}, name=""):
if name not in images:
throw_error(f"Expected [images.{name}] to be set")
if not images[name].get("repository") or not images[name].get("tag"):
throw_error(f"Expected [images.{name}.repository] and [images.{name}.tag] to be set")
throw_error(
f"Expected [images.{name}.repository] and [images.{name}.tag] to be set"
)

return f"{images[name]['repository']}:{images[name]['tag']}"


def hash_data(data=""):
if not data:
throw_error("Expected [data] to be set")
return hashlib.sha256(data.encode("utf-8")).hexdigest()


def get_image_with_hashed_data(images={}, name="", data=""):
return f"ix-{get_image(images, name)}-{hash_data(data)}"
4 changes: 2 additions & 2 deletions ix-dev/community/adguard-home/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ keywords:
- dns
- adblock
lib_version: 1.0.0
lib_version_hash: f2610d4386f9f2f65b1e69176effe945f2d9cc7b9489e6386de82f1f63986c4e
lib_version_hash: 909c14fa5586b5738632ff5ec8489eb26af143ecc601cf199df0b8b9e6d6a10c
maintainers:
- email: [email protected]
name: truenas
Expand All @@ -40,4 +40,4 @@ sources:
- https://hub.docker.com/r/adguard/adguardhome
title: AdGuard Home
train: community
version: 1.0.1
version: 1.0.2
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import hashlib
import secrets
import sys

Expand Down Expand Up @@ -65,6 +66,18 @@ def get_image(images={}, name=""):
if name not in images:
throw_error(f"Expected [images.{name}] to be set")
if not images[name].get("repository") or not images[name].get("tag"):
throw_error(f"Expected [images.{name}.repository] and [images.{name}.tag] to be set")
throw_error(
f"Expected [images.{name}.repository] and [images.{name}.tag] to be set"
)

return f"{images[name]['repository']}:{images[name]['tag']}"


def hash_data(data=""):
if not data:
throw_error("Expected [data] to be set")
return hashlib.sha256(data.encode("utf-8")).hexdigest()


def get_image_with_hashed_data(images={}, name="", data=""):
return f"ix-{get_image(images, name)}-{hash_data(data)}"
4 changes: 2 additions & 2 deletions ix-dev/community/audiobookshelf/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ keywords:
- media
- audiobook
lib_version: 1.0.0
lib_version_hash: f2610d4386f9f2f65b1e69176effe945f2d9cc7b9489e6386de82f1f63986c4e
lib_version_hash: 909c14fa5586b5738632ff5ec8489eb26af143ecc601cf199df0b8b9e6d6a10c
maintainers:
- email: [email protected]
name: truenas
Expand All @@ -33,4 +33,4 @@ sources:
- https://github.com/advplyr/audiobookshelf
title: Audiobookshelf
train: community
version: 1.0.1
version: 1.0.2
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import hashlib
import secrets
import sys

Expand Down Expand Up @@ -65,6 +66,18 @@ def get_image(images={}, name=""):
if name not in images:
throw_error(f"Expected [images.{name}] to be set")
if not images[name].get("repository") or not images[name].get("tag"):
throw_error(f"Expected [images.{name}.repository] and [images.{name}.tag] to be set")
throw_error(
f"Expected [images.{name}.repository] and [images.{name}.tag] to be set"
)

return f"{images[name]['repository']}:{images[name]['tag']}"


def hash_data(data=""):
if not data:
throw_error("Expected [data] to be set")
return hashlib.sha256(data.encode("utf-8")).hexdigest()


def get_image_with_hashed_data(images={}, name="", data=""):
return f"ix-{get_image(images, name)}-{hash_data(data)}"
4 changes: 2 additions & 2 deletions ix-dev/community/autobrr/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ keywords:
- torrent
- usenet
lib_version: 1.0.0
lib_version_hash: f2610d4386f9f2f65b1e69176effe945f2d9cc7b9489e6386de82f1f63986c4e
lib_version_hash: 909c14fa5586b5738632ff5ec8489eb26af143ecc601cf199df0b8b9e6d6a10c
maintainers:
- email: [email protected]
name: truenas
Expand All @@ -31,4 +31,4 @@ sources:
- https://github.com/autobrr/autobrr
title: Autobrr
train: community
version: 1.0.1
version: 1.0.2
15 changes: 14 additions & 1 deletion ix-dev/community/autobrr/templates/library/base_v1_0_0/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import hashlib
import secrets
import sys

Expand Down Expand Up @@ -65,6 +66,18 @@ def get_image(images={}, name=""):
if name not in images:
throw_error(f"Expected [images.{name}] to be set")
if not images[name].get("repository") or not images[name].get("tag"):
throw_error(f"Expected [images.{name}.repository] and [images.{name}.tag] to be set")
throw_error(
f"Expected [images.{name}.repository] and [images.{name}.tag] to be set"
)

return f"{images[name]['repository']}:{images[name]['tag']}"


def hash_data(data=""):
if not data:
throw_error("Expected [data] to be set")
return hashlib.sha256(data.encode("utf-8")).hexdigest()


def get_image_with_hashed_data(images={}, name="", data=""):
return f"ix-{get_image(images, name)}-{hash_data(data)}"
4 changes: 2 additions & 2 deletions ix-dev/community/bazarr/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ keywords:
- media
- subtitles
lib_version: 1.0.0
lib_version_hash: f2610d4386f9f2f65b1e69176effe945f2d9cc7b9489e6386de82f1f63986c4e
lib_version_hash: 909c14fa5586b5738632ff5ec8489eb26af143ecc601cf199df0b8b9e6d6a10c
maintainers:
- email: [email protected]
name: truenas
Expand All @@ -31,4 +31,4 @@ sources:
- https://github.com/morpheus65535/bazarr
title: Bazarr
train: community
version: 1.0.2
version: 1.0.3
15 changes: 14 additions & 1 deletion ix-dev/community/bazarr/templates/library/base_v1_0_0/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import hashlib
import secrets
import sys

Expand Down Expand Up @@ -65,6 +66,18 @@ def get_image(images={}, name=""):
if name not in images:
throw_error(f"Expected [images.{name}] to be set")
if not images[name].get("repository") or not images[name].get("tag"):
throw_error(f"Expected [images.{name}.repository] and [images.{name}.tag] to be set")
throw_error(
f"Expected [images.{name}.repository] and [images.{name}.tag] to be set"
)

return f"{images[name]['repository']}:{images[name]['tag']}"


def hash_data(data=""):
if not data:
throw_error("Expected [data] to be set")
return hashlib.sha256(data.encode("utf-8")).hexdigest()


def get_image_with_hashed_data(images={}, name="", data=""):
return f"ix-{get_image(images, name)}-{hash_data(data)}"
4 changes: 2 additions & 2 deletions ix-dev/community/briefkasten/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ icon: https://media.sys.truenas.net/apps/briefkasten/icons/icon.svg
keywords:
- bookmark
lib_version: 1.0.0
lib_version_hash: f2610d4386f9f2f65b1e69176effe945f2d9cc7b9489e6386de82f1f63986c4e
lib_version_hash: 909c14fa5586b5738632ff5ec8489eb26af143ecc601cf199df0b8b9e6d6a10c
maintainers:
- email: [email protected]
name: truenas
Expand All @@ -35,4 +35,4 @@ sources:
- https://docs.briefkastenhq.com/
title: Briefkasten
train: community
version: 1.0.1
version: 1.0.2
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import hashlib
import secrets
import sys

Expand Down Expand Up @@ -65,6 +66,18 @@ def get_image(images={}, name=""):
if name not in images:
throw_error(f"Expected [images.{name}] to be set")
if not images[name].get("repository") or not images[name].get("tag"):
throw_error(f"Expected [images.{name}.repository] and [images.{name}.tag] to be set")
throw_error(
f"Expected [images.{name}.repository] and [images.{name}.tag] to be set"
)

return f"{images[name]['repository']}:{images[name]['tag']}"


def hash_data(data=""):
if not data:
throw_error("Expected [data] to be set")
return hashlib.sha256(data.encode("utf-8")).hexdigest()


def get_image_with_hashed_data(images={}, name="", data=""):
return f"ix-{get_image(images, name)}-{hash_data(data)}"
4 changes: 2 additions & 2 deletions ix-dev/community/clamav/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ keywords:
- anti-virus
- clamav
lib_version: 1.0.0
lib_version_hash: f2610d4386f9f2f65b1e69176effe945f2d9cc7b9489e6386de82f1f63986c4e
lib_version_hash: 909c14fa5586b5738632ff5ec8489eb26af143ecc601cf199df0b8b9e6d6a10c
maintainers:
- email: [email protected]
name: truenas
Expand All @@ -38,4 +38,4 @@ sources:
- https://www.clamav.net/
title: ClamAV
train: community
version: 1.0.1
version: 1.0.2
15 changes: 14 additions & 1 deletion ix-dev/community/clamav/templates/library/base_v1_0_0/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import hashlib
import secrets
import sys

Expand Down Expand Up @@ -65,6 +66,18 @@ def get_image(images={}, name=""):
if name not in images:
throw_error(f"Expected [images.{name}] to be set")
if not images[name].get("repository") or not images[name].get("tag"):
throw_error(f"Expected [images.{name}.repository] and [images.{name}.tag] to be set")
throw_error(
f"Expected [images.{name}.repository] and [images.{name}.tag] to be set"
)

return f"{images[name]['repository']}:{images[name]['tag']}"


def hash_data(data=""):
if not data:
throw_error("Expected [data] to be set")
return hashlib.sha256(data.encode("utf-8")).hexdigest()


def get_image_with_hashed_data(images={}, name="", data=""):
return f"ix-{get_image(images, name)}-{hash_data(data)}"
4 changes: 2 additions & 2 deletions ix-dev/community/cloudflared/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ keywords:
- cloudflare
- tunnel
lib_version: 1.0.0
lib_version_hash: f2610d4386f9f2f65b1e69176effe945f2d9cc7b9489e6386de82f1f63986c4e
lib_version_hash: 909c14fa5586b5738632ff5ec8489eb26af143ecc601cf199df0b8b9e6d6a10c
maintainers:
- email: [email protected]
name: truenas
Expand All @@ -30,4 +30,4 @@ sources:
- https://hub.docker.com/r/cloudflare/cloudflared
title: Cloudflared
train: community
version: 1.0.1
version: 1.0.2
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import hashlib
import secrets
import sys

Expand Down Expand Up @@ -65,6 +66,18 @@ def get_image(images={}, name=""):
if name not in images:
throw_error(f"Expected [images.{name}] to be set")
if not images[name].get("repository") or not images[name].get("tag"):
throw_error(f"Expected [images.{name}.repository] and [images.{name}.tag] to be set")
throw_error(
f"Expected [images.{name}.repository] and [images.{name}.tag] to be set"
)

return f"{images[name]['repository']}:{images[name]['tag']}"


def hash_data(data=""):
if not data:
throw_error("Expected [data] to be set")
return hashlib.sha256(data.encode("utf-8")).hexdigest()


def get_image_with_hashed_data(images={}, name="", data=""):
return f"ix-{get_image(images, name)}-{hash_data(data)}"
4 changes: 2 additions & 2 deletions ix-dev/community/dashy/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ icon: https://media.sys.truenas.net/apps/dashy/icons/icon.png
keywords:
- dashboard
lib_version: 1.0.0
lib_version_hash: f2610d4386f9f2f65b1e69176effe945f2d9cc7b9489e6386de82f1f63986c4e
lib_version_hash: 909c14fa5586b5738632ff5ec8489eb26af143ecc601cf199df0b8b9e6d6a10c
maintainers:
- email: [email protected]
name: truenas
Expand All @@ -29,4 +29,4 @@ sources:
- https://github.com/lissy93/dashy
title: Dashy
train: community
version: 1.0.1
version: 1.0.2
15 changes: 14 additions & 1 deletion ix-dev/community/dashy/templates/library/base_v1_0_0/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import hashlib
import secrets
import sys

Expand Down Expand Up @@ -65,6 +66,18 @@ def get_image(images={}, name=""):
if name not in images:
throw_error(f"Expected [images.{name}] to be set")
if not images[name].get("repository") or not images[name].get("tag"):
throw_error(f"Expected [images.{name}.repository] and [images.{name}.tag] to be set")
throw_error(
f"Expected [images.{name}.repository] and [images.{name}.tag] to be set"
)

return f"{images[name]['repository']}:{images[name]['tag']}"


def hash_data(data=""):
if not data:
throw_error("Expected [data] to be set")
return hashlib.sha256(data.encode("utf-8")).hexdigest()


def get_image_with_hashed_data(images={}, name="", data=""):
return f"ix-{get_image(images, name)}-{hash_data(data)}"
4 changes: 2 additions & 2 deletions ix-dev/community/ddns-updater/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ keywords:
- ddns-updater
- ddns
lib_version: 1.0.0
lib_version_hash: f2610d4386f9f2f65b1e69176effe945f2d9cc7b9489e6386de82f1f63986c4e
lib_version_hash: 909c14fa5586b5738632ff5ec8489eb26af143ecc601cf199df0b8b9e6d6a10c
maintainers:
- email: [email protected]
name: truenas
Expand All @@ -30,4 +30,4 @@ sources:
- https://hub.docker.com/r/qmcgaw/ddns-updater
title: DDNS Updater
train: community
version: 1.0.1
version: 1.0.2
Loading

0 comments on commit b1f6277

Please sign in to comment.