Skip to content

Commit 682afb1

Browse files
committed
First commit package jellyfin docker
1 parent dd3590e commit 682afb1

File tree

5 files changed

+160
-28
lines changed

5 files changed

+160
-28
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: "3.9"
2+
3+
services:
4+
jellyfin:
5+
image: jellyfin/jellyfin:latest
6+
container_name: jellyfin
7+
environment:
8+
#- TZ=America/Sao_Paulo
9+
- UMASK_SET=022
10+
volumes:
11+
- /home/$USER/Docker/Jellyfin/config:/config
12+
- /home/$USER/Docker/Jellyfin/cache:/cache
13+
- /home/$USER/Docker/Jellyfin/media:/media
14+
ports:
15+
- "8096:8096"
16+
restart: always
17+
networks:
18+
big-net:
19+
20+
networks:
21+
big-net:
22+
name: big-net

pkgbuild/PKGBUILD

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Maintainer: Barnabé di Kartola <barnabedikartola@gmail.com>
1+
# Maintainer: Tales A. Mendonça <talesam@gmail.com>
22

3-
pkgname=biglinux-package-template
4-
pkgdesc="Package template for biglinux"
5-
# depends=('')
3+
pkgname=biglinux-docker-jellyfin
4+
pkgdesc="Open media server to manage and stream content."
5+
depends=('biglinux-docker-config')
66
# makedepends=('')
77
# conflicts=('')
88
pkgver=$(date +%y.%m.%d)

pkgbuild/pkgbuild.install

Lines changed: 37 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,43 @@
1-
## arg 1: the new package version
2-
#pre_install() {
3-
# do something here
4-
#}
1+
# File: biglinux-docker-jellyfin.install
52

6-
## arg 1: the new package version
7-
#post_install() {
8-
# do something here
9-
#}
3+
# Executed before package installation
4+
pre_install() {
5+
# Check if Docker is installed
6+
if ! command -v docker >/dev/null 2>&1; then
7+
echo "The Docker package is not installed. Please install it before continuing."
8+
exit 1
9+
fi
1010

11-
## arg 2: the old package version
12-
#pre_upgrade() {
13-
# do something here
14-
#}
11+
# Start the Jellyfin container using docker-compose
12+
echo "Starting the Jellyfin container..."
13+
docker-compose -f /etc/docker-biglinux/jellyfyn/docker-compose.yml up -d
14+
}
1515

16-
## arg 2: the old package version
17-
#post_upgrade() {
18-
#post_install
19-
#}
16+
# Executed after package installation
17+
post_install() {
18+
# Nothing to be done here
19+
}
2020

21-
## arg 1: the old package version
22-
#pre_remove() {
23-
# do something here
24-
#}
21+
# Executed before package upgrade
22+
pre_upgrade() {
23+
# Nothing to be done here
24+
}
2525

26-
## arg 1: the old package version
27-
#post_remove() {
28-
# do something here
29-
#}
26+
# Executed after package upgrade
27+
post_upgrade() {
28+
# Execute the same actions as post_install
29+
post_install
30+
}
31+
32+
# Executed before package removal
33+
pre_remove() {
34+
# Stop and remove the Jellyfin container
35+
echo "Stopping and removing the Jellyfin container..."
36+
docker-compose -f /etc/docker-biglinux/jellyfyn/docker-compose.yml down
37+
}
38+
39+
# Executed after package removal
40+
post_remove() {
41+
# Nothing to be done here
42+
}
3043

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[Desktop Entry]
2+
Version=1.0
3+
Terminal=false
4+
Type=Application
5+
Name=Jellyfin
6+
Exec=/usr/bin/biglinux-webapp --class=localhost_8096,Chromium-browser --profile-directory=Default --app=http://localhost_8096
7+
Icon=/usr/share/icons/hicolor/scalable/apps/docker-jellyfin.svg
8+
Categories=Docker;
9+
StartupWMClass=localhost:8096
Lines changed: 88 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)