mirakurun 4.0.0-beta.2 → 4.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/doc/Platforms.md +2 -1
- package/docker/README.md +12 -4
- package/docker/container-init.sh +4 -0
- package/docker/docker-compose.yml +17 -21
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ see: available [Tags](https://hub.docker.com/r/chinachu/mirakurun/tags) (Docker
|
|
|
22
22
|
```sh
|
|
23
23
|
mkdir ~/mirakurun/
|
|
24
24
|
cd ~/mirakurun/
|
|
25
|
-
wget https://raw.githubusercontent.com/Chinachu/Mirakurun/
|
|
25
|
+
wget https://raw.githubusercontent.com/Chinachu/Mirakurun/refs/heads/release/4.0.0/docker/docker-compose.yml
|
|
26
26
|
docker compose pull
|
|
27
27
|
docker compose run --rm -e SETUP=true mirakurun
|
|
28
28
|
docker compose up -d
|
package/doc/Platforms.md
CHANGED
|
@@ -42,7 +42,7 @@ sudo mkdir -p /opt/mirakurun/run /opt/mirakurun/opt /opt/mirakurun/config /opt/m
|
|
|
42
42
|
# Install
|
|
43
43
|
mkdir ~/mirakurun/
|
|
44
44
|
cd ~/mirakurun/
|
|
45
|
-
wget https://raw.githubusercontent.com/Chinachu/Mirakurun/
|
|
45
|
+
wget https://raw.githubusercontent.com/Chinachu/Mirakurun/refs/heads/release/4.0.0/docker/docker-compose.yml
|
|
46
46
|
docker compose pull
|
|
47
47
|
docker compose run --rm -e SETUP=true mirakurun
|
|
48
48
|
docker compose up -d
|
|
@@ -162,6 +162,7 @@ The code related to PM2 has already been removed and is not confirmed to work.
|
|
|
162
162
|
```sh
|
|
163
163
|
git clone git@github.com:Chinachu/Mirakurun.git
|
|
164
164
|
cd Mirakurun
|
|
165
|
+
git submodule update --init --recursive
|
|
165
166
|
|
|
166
167
|
npm install
|
|
167
168
|
npm run build
|
package/docker/README.md
CHANGED
|
@@ -2,11 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
```sh
|
|
4
4
|
# build
|
|
5
|
-
|
|
5
|
+
npm run docker:build
|
|
6
|
+
# setup
|
|
7
|
+
npm run docker:run-setup
|
|
6
8
|
# run
|
|
7
|
-
|
|
9
|
+
npm run docker:run
|
|
8
10
|
# run w/ env
|
|
9
11
|
docker compose -f docker/docker-compose.yml run --rm --service-ports -e LOG_LEVEL=3 mirakurun
|
|
10
|
-
#
|
|
11
|
-
|
|
12
|
+
# up
|
|
13
|
+
npm run docker:up
|
|
14
|
+
# down
|
|
15
|
+
npm run docker:down
|
|
16
|
+
# logs
|
|
17
|
+
npm run docker:logs
|
|
18
|
+
# bash
|
|
19
|
+
npm run docker:bash
|
|
12
20
|
```
|
package/docker/container-init.sh
CHANGED
|
@@ -3,6 +3,9 @@ services:
|
|
|
3
3
|
build:
|
|
4
4
|
context: ../
|
|
5
5
|
dockerfile: docker/Dockerfile
|
|
6
|
+
# `:latest` can be changed to fix the version
|
|
7
|
+
# `:latest` の部分を編集するとバージョンを固定できます
|
|
8
|
+
# available tags: https://hub.docker.com/r/chinachu/mirakurun/tags
|
|
6
9
|
image: chinachu/mirakurun:latest
|
|
7
10
|
container_name: mirakurun
|
|
8
11
|
cap_add:
|
|
@@ -10,12 +13,19 @@ services:
|
|
|
10
13
|
- SYS_NICE
|
|
11
14
|
environment:
|
|
12
15
|
TZ: Asia/Tokyo
|
|
16
|
+
# comment out below if you commented out `network_mode: host`
|
|
17
|
+
# `network_mode: host` をコメントアウトする場合はここもコメントアウト
|
|
13
18
|
DOCKER_NETWORK: host
|
|
19
|
+
# you must set hostname if accesing by hostname (other than IP address)
|
|
20
|
+
# ブラウザから IP アドレス以外でアクセスする場合はホスト名を設定する必要があります
|
|
21
|
+
# hostname: localhost
|
|
22
|
+
# --
|
|
23
|
+
# for debug
|
|
14
24
|
# LOG_LEVEL: "3"
|
|
15
25
|
# DEBUG: "true"
|
|
16
26
|
network_mode: host
|
|
17
27
|
# comment out `devices:` if you commented out all devices
|
|
18
|
-
#
|
|
28
|
+
# `devices` を全てコメントアウトした場合は `devices:` もコメントアウト
|
|
19
29
|
devices:
|
|
20
30
|
# comment out below if you don't use card readers
|
|
21
31
|
# カードリーダーを使わない場合は以下をコメントアウト
|
|
@@ -25,26 +35,12 @@ services:
|
|
|
25
35
|
- /dev/dvb:/dev/dvb
|
|
26
36
|
volumes:
|
|
27
37
|
# you can change to any location if you want.
|
|
28
|
-
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
-
|
|
34
|
-
source: /opt/mirakurun/opt
|
|
35
|
-
target: /opt
|
|
36
|
-
bind:
|
|
37
|
-
create_host_path: true
|
|
38
|
-
- type: bind
|
|
39
|
-
source: /opt/mirakurun/config
|
|
40
|
-
target: /app-config
|
|
41
|
-
bind:
|
|
42
|
-
create_host_path: true
|
|
43
|
-
- type: bind
|
|
44
|
-
source: /opt/mirakurun/data
|
|
45
|
-
target: /app-data
|
|
46
|
-
bind:
|
|
47
|
-
create_host_path: true
|
|
38
|
+
- /opt/mirakurun/run:/var/run
|
|
39
|
+
- /opt/mirakurun/opt:/opt
|
|
40
|
+
- /opt/mirakurun/config:/app-config
|
|
41
|
+
- /opt/mirakurun/data:/app-data
|
|
42
|
+
tmpfs:
|
|
43
|
+
- /tmp
|
|
48
44
|
restart: always
|
|
49
45
|
logging:
|
|
50
46
|
driver: json-file
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "mirakurun",
|
|
3
3
|
"preferGlobal": true,
|
|
4
4
|
"description": "DVR Tuner Server for Japanese TV.",
|
|
5
|
-
"version": "4.0.0-beta.
|
|
5
|
+
"version": "4.0.0-beta.3",
|
|
6
6
|
"homepage": "https://github.com/Chinachu/Mirakurun",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"mirakurun",
|
|
@@ -51,7 +51,9 @@
|
|
|
51
51
|
"docker:run-setup": "docker compose -f docker/docker-compose.yml run --rm -e SETUP=true --service-ports mirakurun",
|
|
52
52
|
"docker:run": "docker compose -f docker/docker-compose.yml run --rm --service-ports mirakurun",
|
|
53
53
|
"docker:up": "docker compose -f docker/docker-compose.yml up -d",
|
|
54
|
+
"docker:down": "docker compose -f docker/docker-compose.yml down",
|
|
54
55
|
"docker:logs": "docker compose -f docker/docker-compose.yml logs -f",
|
|
56
|
+
"docker:bash": "docker compose -f docker/docker-compose.yml exec mirakurun bash",
|
|
55
57
|
"docker:debug": "docker compose -f docker/docker-compose.yml run --rm --service-ports -e DEBUG=true mirakurun"
|
|
56
58
|
},
|
|
57
59
|
"directories": {
|