mirror of
https://github.com/buanet/ioBroker.docker.git
synced 2025-12-17 18:39:01 +02:00
Compare commits
66 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aca230a7f4 | ||
|
|
1bfcab7820 | ||
|
|
cef8433132 | ||
|
|
1242eb382f | ||
|
|
9eb70621ea | ||
|
|
7ed3224f50 | ||
|
|
a706d63e78 | ||
|
|
23fea30955 | ||
|
|
1ca34b5f73 | ||
|
|
6c819aac1c | ||
|
|
57c3fe2371 | ||
|
|
641be7cebe | ||
|
|
f00aff57a1 | ||
|
|
a5b0ab5b7a | ||
|
|
f312524d71 | ||
|
|
60b4b10965 | ||
|
|
2effdf5fea | ||
|
|
543343359e | ||
|
|
98bd35cc52 | ||
|
|
bf5288071b | ||
|
|
118892975a | ||
|
|
833ec7515e | ||
|
|
87137450db | ||
|
|
1a92ab16dd | ||
|
|
898c58ce7e | ||
|
|
9fd6c97559 | ||
|
|
30cfacd55f | ||
|
|
634d5ffb63 | ||
|
|
e41bc8af6c | ||
|
|
57c697587f | ||
|
|
c2707f3795 | ||
|
|
727d79fa2f | ||
|
|
15e87e08a0 | ||
|
|
5401fdf86c | ||
|
|
f888101d01 | ||
|
|
e286d168e1 | ||
|
|
2e5f8c9e22 | ||
|
|
2b4509d468 | ||
|
|
b5235be806 | ||
|
|
d73948e8d4 | ||
|
|
1337535351 | ||
|
|
8843ee2f68 | ||
|
|
432364f63d | ||
|
|
139a3beedd | ||
|
|
da3a998e04 | ||
|
|
182c78d72c | ||
|
|
b6bb7ed5ea | ||
|
|
a9d4f38bdb | ||
|
|
06d6421c4b | ||
|
|
296ff3c612 | ||
|
|
6ccf196ae2 | ||
|
|
e20f66ada6 | ||
|
|
e72353b3fa | ||
|
|
c70f27151e | ||
|
|
465a412bc2 | ||
|
|
93bcf7c8f7 | ||
|
|
c22873c7bf | ||
|
|
814298a795 | ||
|
|
10624f62f8 | ||
|
|
d4a31e2629 | ||
|
|
ebb3e831e7 | ||
|
|
f3861e8fb5 | ||
|
|
e7b859f22d | ||
|
|
f4d40df862 | ||
|
|
c4a34b4432 | ||
|
|
5211ef7275 |
2
.github/dependabot.yml
vendored
2
.github/dependabot.yml
vendored
@@ -5,4 +5,4 @@ updates:
|
|||||||
directory: "/"
|
directory: "/"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
interval: "daily"
|
||||||
target-branch: "dev"
|
target-branch: "main"
|
||||||
|
|||||||
1
.github/dependencies/.js-controller-version
vendored
Normal file
1
.github/dependencies/.js-controller-version
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
4.0.15
|
||||||
@@ -1,25 +1,23 @@
|
|||||||
# Github action to build Docker image from beta branch (tag: beta)
|
# Github action to build Docker image from beta branch (tag: beta)
|
||||||
name: Build debian based image (beta-node16)
|
name: Build debian beta-node16
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
release:
|
||||||
branches:
|
types: [prereleased]
|
||||||
- beta
|
|
||||||
types:
|
|
||||||
- closed
|
|
||||||
schedule:
|
|
||||||
- cron: '42 3 * * 1'
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
bulid-beta-node16-image:
|
build-beta-node16-image:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo (beta)
|
- name: Getting published prerelease tag
|
||||||
|
run: echo "RELEASE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v2.4.0
|
uses: actions/checkout@v2.4.0
|
||||||
with:
|
with:
|
||||||
repository: 'buanet/ioBroker.docker'
|
repository: 'buanet/ioBroker.docker'
|
||||||
ref: 'beta'
|
ref: ${{ env.RELEASE_TAG }}
|
||||||
|
|
||||||
- name: Get and write version and date
|
- name: Get and write version and date
|
||||||
id: version
|
id: version
|
||||||
@@ -53,20 +51,20 @@ jobs:
|
|||||||
uses: docker/setup-buildx-action@v1.6.0
|
uses: docker/setup-buildx-action@v1.6.0
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v1.10.0
|
uses: docker/login-action@v1.14.0
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USER }}
|
username: ${{ secrets.DOCKER_USER }}
|
||||||
password: ${{ secrets.DOCKER_PASS }}
|
password: ${{ secrets.DOCKER_PASS }}
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v1.10.0
|
uses: docker/login-action@v1.14.0
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ secrets.PACKAGES_USER }}
|
username: ${{ secrets.PACKAGES_USER }}
|
||||||
password: ${{ secrets.PACKAGES_PASS }}
|
password: ${{ secrets.PACKAGES_PASS }}
|
||||||
|
|
||||||
- name: Build Docker image (node16-amd64)
|
- name: Build Docker image (node16-amd64)
|
||||||
uses: docker/build-push-action@v2.7.0
|
uses: docker/build-push-action@v2.9.0
|
||||||
with:
|
with:
|
||||||
context: ./debian
|
context: ./debian
|
||||||
file: ./debian/node16/Dockerfile
|
file: ./debian/node16/Dockerfile
|
||||||
@@ -77,7 +75,7 @@ jobs:
|
|||||||
ghcr.io/buanet/iobroker:${{ env.version }}-node16-amd64
|
ghcr.io/buanet/iobroker:${{ env.version }}-node16-amd64
|
||||||
|
|
||||||
- name: Build Docker image (node16-arm32v7)
|
- name: Build Docker image (node16-arm32v7)
|
||||||
uses: docker/build-push-action@v2.7.0
|
uses: docker/build-push-action@v2.9.0
|
||||||
with:
|
with:
|
||||||
context: ./debian
|
context: ./debian
|
||||||
file: ./debian/node16/Dockerfile
|
file: ./debian/node16/Dockerfile
|
||||||
@@ -88,7 +86,7 @@ jobs:
|
|||||||
ghcr.io/buanet/iobroker:${{ env.version }}-node16-arm32v7
|
ghcr.io/buanet/iobroker:${{ env.version }}-node16-arm32v7
|
||||||
|
|
||||||
- name: Build Docker image (node16-arm64v8)
|
- name: Build Docker image (node16-arm64v8)
|
||||||
uses: docker/build-push-action@v2.7.0
|
uses: docker/build-push-action@v2.9.0
|
||||||
with:
|
with:
|
||||||
context: ./debian
|
context: ./debian
|
||||||
file: ./debian/node16/Dockerfile
|
file: ./debian/node16/Dockerfile
|
||||||
@@ -110,7 +108,7 @@ jobs:
|
|||||||
./manifest-tool --username ${{ secrets.PACKAGES_USER }} --password ${{ secrets.PACKAGES_PASS }} push from-spec manifest_ghcr_version-node16.yaml
|
./manifest-tool --username ${{ secrets.PACKAGES_USER }} --password ${{ secrets.PACKAGES_PASS }} push from-spec manifest_ghcr_version-node16.yaml
|
||||||
|
|
||||||
- name: Delete untagged images from GitHub packages
|
- name: Delete untagged images from GitHub packages
|
||||||
uses: actions/github-script@v5
|
uses: actions/github-script@v6
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.PACKAGES_PASS }}
|
github-token: ${{ secrets.PACKAGES_PASS }}
|
||||||
script: |
|
script: |
|
||||||
|
|||||||
32
.github/workflows/build-debian-image-beta.yml
vendored
32
.github/workflows/build-debian-image-beta.yml
vendored
@@ -1,25 +1,23 @@
|
|||||||
# Github action to build Docker image from beta branch (tag: beta)
|
# Github action to build Docker image from beta branch (tag: beta)
|
||||||
name: Build debian based image (beta)
|
name: Build debian beta
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
release:
|
||||||
|
types: [prereleased]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- beta
|
|
||||||
types:
|
|
||||||
- closed
|
|
||||||
schedule:
|
|
||||||
- cron: '42 3 * * 1'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
bulid-beta-image:
|
build-beta-image:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo (beta)
|
- name: Getting published prerelease tag
|
||||||
|
run: echo "RELEASE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v2.4.0
|
uses: actions/checkout@v2.4.0
|
||||||
with:
|
with:
|
||||||
repository: 'buanet/ioBroker.docker'
|
repository: 'buanet/ioBroker.docker'
|
||||||
ref: 'beta'
|
ref: ${{ env.RELEASE_TAG }}
|
||||||
|
|
||||||
- name: Get and write version and date
|
- name: Get and write version and date
|
||||||
id: version
|
id: version
|
||||||
@@ -53,20 +51,20 @@ jobs:
|
|||||||
uses: docker/setup-buildx-action@v1.6.0
|
uses: docker/setup-buildx-action@v1.6.0
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v1.10.0
|
uses: docker/login-action@v1.14.0
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USER }}
|
username: ${{ secrets.DOCKER_USER }}
|
||||||
password: ${{ secrets.DOCKER_PASS }}
|
password: ${{ secrets.DOCKER_PASS }}
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v1.10.0
|
uses: docker/login-action@v1.14.0
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ secrets.PACKAGES_USER }}
|
username: ${{ secrets.PACKAGES_USER }}
|
||||||
password: ${{ secrets.PACKAGES_PASS }}
|
password: ${{ secrets.PACKAGES_PASS }}
|
||||||
|
|
||||||
- name: Build Docker image (amd64)
|
- name: Build Docker image (amd64)
|
||||||
uses: docker/build-push-action@v2.7.0
|
uses: docker/build-push-action@v2.9.0
|
||||||
with:
|
with:
|
||||||
context: ./debian
|
context: ./debian
|
||||||
file: ./debian/node14/Dockerfile
|
file: ./debian/node14/Dockerfile
|
||||||
@@ -77,7 +75,7 @@ jobs:
|
|||||||
ghcr.io/buanet/iobroker:${{ env.version }}-amd64
|
ghcr.io/buanet/iobroker:${{ env.version }}-amd64
|
||||||
|
|
||||||
- name: Build Docker image (arm32v7)
|
- name: Build Docker image (arm32v7)
|
||||||
uses: docker/build-push-action@v2.7.0
|
uses: docker/build-push-action@v2.9.0
|
||||||
with:
|
with:
|
||||||
context: ./debian
|
context: ./debian
|
||||||
file: ./debian/node14/Dockerfile
|
file: ./debian/node14/Dockerfile
|
||||||
@@ -88,7 +86,7 @@ jobs:
|
|||||||
ghcr.io/buanet/iobroker:${{ env.version }}-arm32v7
|
ghcr.io/buanet/iobroker:${{ env.version }}-arm32v7
|
||||||
|
|
||||||
- name: Build Docker image (arm64v8)
|
- name: Build Docker image (arm64v8)
|
||||||
uses: docker/build-push-action@v2.7.0
|
uses: docker/build-push-action@v2.9.0
|
||||||
with:
|
with:
|
||||||
context: ./debian
|
context: ./debian
|
||||||
file: ./debian/node14/Dockerfile
|
file: ./debian/node14/Dockerfile
|
||||||
@@ -110,7 +108,7 @@ jobs:
|
|||||||
./manifest-tool --username ${{ secrets.PACKAGES_USER }} --password ${{ secrets.PACKAGES_PASS }} push from-spec manifest_ghcr_version.yaml
|
./manifest-tool --username ${{ secrets.PACKAGES_USER }} --password ${{ secrets.PACKAGES_PASS }} push from-spec manifest_ghcr_version.yaml
|
||||||
|
|
||||||
- name: Delete untagged images from GitHub packages
|
- name: Delete untagged images from GitHub packages
|
||||||
uses: actions/github-script@v5
|
uses: actions/github-script@v6
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.PACKAGES_PASS }}
|
github-token: ${{ secrets.PACKAGES_PASS }}
|
||||||
script: |
|
script: |
|
||||||
|
|||||||
@@ -1,21 +1,18 @@
|
|||||||
# Github action to build Docker image from dev branch (tag: dev)
|
# Github action to build Docker image from dev branch (tag: dev)
|
||||||
name: Build debian based image (dev-node16)
|
name: Build debian dev-node16
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- dev
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
bulid-dev-node16-image:
|
build-dev-node16-image:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo (dev)
|
- name: Checkout repo (dev)
|
||||||
uses: actions/checkout@v2.4.0
|
uses: actions/checkout@v2.4.0
|
||||||
with:
|
with:
|
||||||
repository: 'buanet/ioBroker.docker'
|
repository: 'buanet/ioBroker.docker'
|
||||||
ref: 'dev'
|
ref: 'main'
|
||||||
|
|
||||||
- name: Get and write version and date
|
- name: Get and write version and date
|
||||||
id: version
|
id: version
|
||||||
@@ -49,20 +46,20 @@ jobs:
|
|||||||
uses: docker/setup-buildx-action@v1.6.0
|
uses: docker/setup-buildx-action@v1.6.0
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v1.10.0
|
uses: docker/login-action@v1.14.0
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USER }}
|
username: ${{ secrets.DOCKER_USER }}
|
||||||
password: ${{ secrets.DOCKER_PASS }}
|
password: ${{ secrets.DOCKER_PASS }}
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v1.10.0
|
uses: docker/login-action@v1.14.0
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ secrets.PACKAGES_USER }}
|
username: ${{ secrets.PACKAGES_USER }}
|
||||||
password: ${{ secrets.PACKAGES_PASS }}
|
password: ${{ secrets.PACKAGES_PASS }}
|
||||||
|
|
||||||
- name: Build Docker image (node16-amd64)
|
- name: Build Docker image (node16-amd64)
|
||||||
uses: docker/build-push-action@v2.7.0
|
uses: docker/build-push-action@v2.9.0
|
||||||
with:
|
with:
|
||||||
context: ./debian
|
context: ./debian
|
||||||
file: ./debian/node16/Dockerfile
|
file: ./debian/node16/Dockerfile
|
||||||
@@ -73,7 +70,7 @@ jobs:
|
|||||||
ghcr.io/buanet/iobroker:dev-node16-amd64
|
ghcr.io/buanet/iobroker:dev-node16-amd64
|
||||||
|
|
||||||
- name: Build Docker image (node16-arm32v7)
|
- name: Build Docker image (node16-arm32v7)
|
||||||
uses: docker/build-push-action@v2.7.0
|
uses: docker/build-push-action@v2.9.0
|
||||||
with:
|
with:
|
||||||
context: ./debian
|
context: ./debian
|
||||||
file: ./debian/node16/Dockerfile
|
file: ./debian/node16/Dockerfile
|
||||||
@@ -84,7 +81,7 @@ jobs:
|
|||||||
ghcr.io/buanet/iobroker:dev-node16-arm32v7
|
ghcr.io/buanet/iobroker:dev-node16-arm32v7
|
||||||
|
|
||||||
- name: Build Docker image (node16-arm64v8)
|
- name: Build Docker image (node16-arm64v8)
|
||||||
uses: docker/build-push-action@v2.7.0
|
uses: docker/build-push-action@v2.9.0
|
||||||
with:
|
with:
|
||||||
context: ./debian
|
context: ./debian
|
||||||
file: ./debian/node16/Dockerfile
|
file: ./debian/node16/Dockerfile
|
||||||
@@ -102,7 +99,7 @@ jobs:
|
|||||||
./manifest-tool --username ${{ secrets.PACKAGES_USER }} --password ${{ secrets.PACKAGES_PASS }} push from-spec manifest_ghcr_dev-node16.yaml
|
./manifest-tool --username ${{ secrets.PACKAGES_USER }} --password ${{ secrets.PACKAGES_PASS }} push from-spec manifest_ghcr_dev-node16.yaml
|
||||||
|
|
||||||
- name: Delete untagged images from GitHub packages
|
- name: Delete untagged images from GitHub packages
|
||||||
uses: actions/github-script@v5
|
uses: actions/github-script@v6
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.PACKAGES_PASS }}
|
github-token: ${{ secrets.PACKAGES_PASS }}
|
||||||
script: |
|
script: |
|
||||||
|
|||||||
21
.github/workflows/build-debian-image-dev.yml
vendored
21
.github/workflows/build-debian-image-dev.yml
vendored
@@ -1,21 +1,18 @@
|
|||||||
# Github action to build Docker image from dev branch (tag: dev)
|
# Github action to build Docker image from dev branch (tag: dev)
|
||||||
name: Build debian based image (dev)
|
name: Build debian dev
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- dev
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
bulid-dev-image:
|
build-dev-image:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo (dev)
|
- name: Checkout repo (dev)
|
||||||
uses: actions/checkout@v2.4.0
|
uses: actions/checkout@v2.4.0
|
||||||
with:
|
with:
|
||||||
repository: 'buanet/ioBroker.docker'
|
repository: 'buanet/ioBroker.docker'
|
||||||
ref: 'dev'
|
ref: 'main'
|
||||||
|
|
||||||
- name: Get and write version and date
|
- name: Get and write version and date
|
||||||
id: version
|
id: version
|
||||||
@@ -49,20 +46,20 @@ jobs:
|
|||||||
uses: docker/setup-buildx-action@v1.6.0
|
uses: docker/setup-buildx-action@v1.6.0
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v1.10.0
|
uses: docker/login-action@v1.14.0
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USER }}
|
username: ${{ secrets.DOCKER_USER }}
|
||||||
password: ${{ secrets.DOCKER_PASS }}
|
password: ${{ secrets.DOCKER_PASS }}
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v1.10.0
|
uses: docker/login-action@v1.14.0
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ secrets.PACKAGES_USER }}
|
username: ${{ secrets.PACKAGES_USER }}
|
||||||
password: ${{ secrets.PACKAGES_PASS }}
|
password: ${{ secrets.PACKAGES_PASS }}
|
||||||
|
|
||||||
- name: Build Docker image (amd64)
|
- name: Build Docker image (amd64)
|
||||||
uses: docker/build-push-action@v2.7.0
|
uses: docker/build-push-action@v2.9.0
|
||||||
with:
|
with:
|
||||||
context: ./debian
|
context: ./debian
|
||||||
file: ./debian/node14/Dockerfile
|
file: ./debian/node14/Dockerfile
|
||||||
@@ -73,7 +70,7 @@ jobs:
|
|||||||
ghcr.io/buanet/iobroker:dev-amd64
|
ghcr.io/buanet/iobroker:dev-amd64
|
||||||
|
|
||||||
- name: Build Docker image (arm32v7)
|
- name: Build Docker image (arm32v7)
|
||||||
uses: docker/build-push-action@v2.7.0
|
uses: docker/build-push-action@v2.9.0
|
||||||
with:
|
with:
|
||||||
context: ./debian
|
context: ./debian
|
||||||
file: ./debian/node14/Dockerfile
|
file: ./debian/node14/Dockerfile
|
||||||
@@ -84,7 +81,7 @@ jobs:
|
|||||||
ghcr.io/buanet/iobroker:dev-arm32v7
|
ghcr.io/buanet/iobroker:dev-arm32v7
|
||||||
|
|
||||||
- name: Build Docker image (arm64v8)
|
- name: Build Docker image (arm64v8)
|
||||||
uses: docker/build-push-action@v2.7.0
|
uses: docker/build-push-action@v2.9.0
|
||||||
with:
|
with:
|
||||||
context: ./debian
|
context: ./debian
|
||||||
file: ./debian/node14/Dockerfile
|
file: ./debian/node14/Dockerfile
|
||||||
@@ -102,7 +99,7 @@ jobs:
|
|||||||
./manifest-tool --username ${{ secrets.PACKAGES_USER }} --password ${{ secrets.PACKAGES_PASS }} push from-spec manifest_ghcr_dev.yaml
|
./manifest-tool --username ${{ secrets.PACKAGES_USER }} --password ${{ secrets.PACKAGES_PASS }} push from-spec manifest_ghcr_dev.yaml
|
||||||
|
|
||||||
- name: Delete untagged images from GitHub packages
|
- name: Delete untagged images from GitHub packages
|
||||||
uses: actions/github-script@v5
|
uses: actions/github-script@v6
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.PACKAGES_PASS }}
|
github-token: ${{ secrets.PACKAGES_PASS }}
|
||||||
script: |
|
script: |
|
||||||
|
|||||||
@@ -1,25 +1,29 @@
|
|||||||
# Github action to build Docker image from main branch for iobroker/iobroker (tag: latest)
|
# Github action to build Docker image from main branch for iobroker/iobroker (tag: latest)
|
||||||
name: Build debian based image (latest)
|
name: Build debian latest (iobroker)
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
|
||||||
release:
|
release:
|
||||||
types:
|
types:
|
||||||
- published
|
- released
|
||||||
schedule:
|
workflow_dispatch:
|
||||||
- cron: '42 3 * * 5'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
bulid-latest-image:
|
build-latest-image:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo (main)
|
- name: Fetching latest release tag
|
||||||
|
run: |
|
||||||
|
LATESTRELEASE="$(curl -sL https://api.github.com/repos/buanet/ioBroker.docker/releases/latest | jq -r '.tag_name')"
|
||||||
|
echo "Latest release tag : $LATESTRELEASE"
|
||||||
|
echo "RELEASE_TAG=$LATESTRELEASE" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v2.4.0
|
uses: actions/checkout@v2.4.0
|
||||||
with:
|
with:
|
||||||
repository: 'buanet/ioBroker.docker'
|
repository: 'buanet/ioBroker.docker'
|
||||||
ref: 'main'
|
ref: ${{ env.RELEASE_TAG }}
|
||||||
|
|
||||||
- name: Get and write version and date
|
- name: Fetching and adding version tag and date
|
||||||
id: version
|
id: version
|
||||||
run: |
|
run: |
|
||||||
VERSION="$(cat .VERSION)"
|
VERSION="$(cat .VERSION)"
|
||||||
@@ -51,13 +55,13 @@ jobs:
|
|||||||
uses: docker/setup-buildx-action@v1.6.0
|
uses: docker/setup-buildx-action@v1.6.0
|
||||||
|
|
||||||
- name: Login to DockerHub (iobroker)
|
- name: Login to DockerHub (iobroker)
|
||||||
uses: docker/login-action@v1.10.0
|
uses: docker/login-action@v1.14.0
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USER_IOB }}
|
username: ${{ secrets.DOCKER_USER_IOB }}
|
||||||
password: ${{ secrets.DOCKER_PASS_IOB }}
|
password: ${{ secrets.DOCKER_PASS_IOB }}
|
||||||
|
|
||||||
- name: Build Docker image (amd64)
|
- name: Build Docker image (amd64)
|
||||||
uses: docker/build-push-action@v2.7.0
|
uses: docker/build-push-action@v2.9.0
|
||||||
with:
|
with:
|
||||||
context: ./debian
|
context: ./debian
|
||||||
file: ./debian/node14/Dockerfile
|
file: ./debian/node14/Dockerfile
|
||||||
@@ -67,7 +71,7 @@ jobs:
|
|||||||
iobroker/iobroker:${{ env.version }}-amd64,
|
iobroker/iobroker:${{ env.version }}-amd64,
|
||||||
|
|
||||||
- name: Build Docker image (arm32v7)
|
- name: Build Docker image (arm32v7)
|
||||||
uses: docker/build-push-action@v2.7.0
|
uses: docker/build-push-action@v2.9.0
|
||||||
with:
|
with:
|
||||||
context: ./debian
|
context: ./debian
|
||||||
file: ./debian/node14/Dockerfile
|
file: ./debian/node14/Dockerfile
|
||||||
@@ -77,7 +81,7 @@ jobs:
|
|||||||
iobroker/iobroker:${{ env.version }}-arm32v7,
|
iobroker/iobroker:${{ env.version }}-arm32v7,
|
||||||
|
|
||||||
- name: Build Docker image (arm64v8)
|
- name: Build Docker image (arm64v8)
|
||||||
uses: docker/build-push-action@v2.7.0
|
uses: docker/build-push-action@v2.9.0
|
||||||
with:
|
with:
|
||||||
context: ./debian
|
context: ./debian
|
||||||
file: ./debian/node14/Dockerfile
|
file: ./debian/node14/Dockerfile
|
||||||
@@ -1,25 +1,29 @@
|
|||||||
# Github action to build Docker image from main branch (tag: latest)
|
# Github action to build Docker image from main branch (tag: latest)
|
||||||
name: Build debian based image (latest)
|
name: Build debian latest (buanet)
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
|
||||||
release:
|
release:
|
||||||
types:
|
types:
|
||||||
- published
|
- released
|
||||||
schedule:
|
workflow_dispatch:
|
||||||
- cron: '42 3 * * 5'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
bulid-latest-image:
|
build-latest-image:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo (main)
|
- name: Fetching latest release tag
|
||||||
|
run: |
|
||||||
|
LATESTRELEASE="$(curl -sL https://api.github.com/repos/buanet/ioBroker.docker/releases/latest | jq -r '.tag_name')"
|
||||||
|
echo "Latest release tag : $LATESTRELEASE"
|
||||||
|
echo "RELEASE_TAG=$LATESTRELEASE" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v2.4.0
|
uses: actions/checkout@v2.4.0
|
||||||
with:
|
with:
|
||||||
repository: 'buanet/ioBroker.docker'
|
repository: 'buanet/ioBroker.docker'
|
||||||
ref: 'main'
|
ref: ${{ env.RELEASE_TAG }}
|
||||||
|
|
||||||
- name: Get and write version and date
|
- name: Fetching and adding version tag and date
|
||||||
id: version
|
id: version
|
||||||
run: |
|
run: |
|
||||||
VERSION="$(cat .VERSION)"
|
VERSION="$(cat .VERSION)"
|
||||||
@@ -51,20 +55,20 @@ jobs:
|
|||||||
uses: docker/setup-buildx-action@v1.6.0
|
uses: docker/setup-buildx-action@v1.6.0
|
||||||
|
|
||||||
- name: Login to DockerHub (buanet)
|
- name: Login to DockerHub (buanet)
|
||||||
uses: docker/login-action@v1.10.0
|
uses: docker/login-action@v1.14.0
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USER }}
|
username: ${{ secrets.DOCKER_USER }}
|
||||||
password: ${{ secrets.DOCKER_PASS }}
|
password: ${{ secrets.DOCKER_PASS }}
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v1.10.0
|
uses: docker/login-action@v1.14.0
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ secrets.PACKAGES_USER }}
|
username: ${{ secrets.PACKAGES_USER }}
|
||||||
password: ${{ secrets.PACKAGES_PASS }}
|
password: ${{ secrets.PACKAGES_PASS }}
|
||||||
|
|
||||||
- name: Build Docker image (amd64)
|
- name: Build Docker image (amd64)
|
||||||
uses: docker/build-push-action@v2.7.0
|
uses: docker/build-push-action@v2.9.0
|
||||||
with:
|
with:
|
||||||
context: ./debian
|
context: ./debian
|
||||||
file: ./debian/node14/Dockerfile
|
file: ./debian/node14/Dockerfile
|
||||||
@@ -75,7 +79,7 @@ jobs:
|
|||||||
ghcr.io/buanet/iobroker:${{ env.version }}-amd64
|
ghcr.io/buanet/iobroker:${{ env.version }}-amd64
|
||||||
|
|
||||||
- name: Build Docker image (arm32v7)
|
- name: Build Docker image (arm32v7)
|
||||||
uses: docker/build-push-action@v2.7.0
|
uses: docker/build-push-action@v2.9.0
|
||||||
with:
|
with:
|
||||||
context: ./debian
|
context: ./debian
|
||||||
file: ./debian/node14/Dockerfile
|
file: ./debian/node14/Dockerfile
|
||||||
@@ -86,7 +90,7 @@ jobs:
|
|||||||
ghcr.io/buanet/iobroker:${{ env.version }}-arm32v7
|
ghcr.io/buanet/iobroker:${{ env.version }}-arm32v7
|
||||||
|
|
||||||
- name: Build Docker image (arm64v8)
|
- name: Build Docker image (arm64v8)
|
||||||
uses: docker/build-push-action@v2.7.0
|
uses: docker/build-push-action@v2.9.0
|
||||||
with:
|
with:
|
||||||
context: ./debian
|
context: ./debian
|
||||||
file: ./debian/node14/Dockerfile
|
file: ./debian/node14/Dockerfile
|
||||||
@@ -112,7 +116,7 @@ jobs:
|
|||||||
./manifest-tool --username ${{ secrets.PACKAGES_USER }} --password ${{ secrets.PACKAGES_PASS }} push from-spec manifest_ghcr_version.yaml
|
./manifest-tool --username ${{ secrets.PACKAGES_USER }} --password ${{ secrets.PACKAGES_PASS }} push from-spec manifest_ghcr_version.yaml
|
||||||
|
|
||||||
- name: Delete untagged images from GitHub packages
|
- name: Delete untagged images from GitHub packages
|
||||||
uses: actions/github-script@v5
|
uses: actions/github-script@v6
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.PACKAGES_PASS }}
|
github-token: ${{ secrets.PACKAGES_PASS }}
|
||||||
script: |
|
script: |
|
||||||
52
.github/workflows/check-js-controller-release.yml
vendored
Normal file
52
.github/workflows/check-js-controller-release.yml
vendored
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
name: Check js-controller release
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '42 23 * * *'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check-and-trigger:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repo
|
||||||
|
uses: actions/checkout@v2.4.0
|
||||||
|
with:
|
||||||
|
repository: 'buanet/ioBroker.docker'
|
||||||
|
token: ${{ secrets.ACTIONS_PAT }}
|
||||||
|
|
||||||
|
- name: Fetch js-controller release version
|
||||||
|
run: |
|
||||||
|
curl -sL https://repo.iobroker.live/sources-dist.json | \
|
||||||
|
jq -r '."js-controller".version' > .github/dependencies/.js-controller-version
|
||||||
|
# curl -sL https://api.github.com/repos/ioBroker/ioBroker.js-controller/releases/latest | \
|
||||||
|
# jq -r ".tag_name" > .github/dependencies/.js-controller-version
|
||||||
|
echo "[LOG] Fetched js-controller version is $(cat .github/dependencies/.js-controller-version)"
|
||||||
|
|
||||||
|
- name: Check for modified files
|
||||||
|
id: git-check
|
||||||
|
run: echo ::set-output name=modified::$([ -z "`git status --porcelain`" ] && echo "false" || echo "true")
|
||||||
|
|
||||||
|
- name: Commit latest release version
|
||||||
|
if: steps.git-check.outputs.modified == 'true'
|
||||||
|
run: |
|
||||||
|
git config --global user.name 'buanet'
|
||||||
|
git config --global user.email 'info@buanet.de'
|
||||||
|
git commit -am "new js-controller release"
|
||||||
|
git push
|
||||||
|
|
||||||
|
- name: Trigger build debian latest (buanet)
|
||||||
|
if: steps.git-check.outputs.modified == 'true'
|
||||||
|
uses: benc-uk/workflow-dispatch@v1.1
|
||||||
|
with:
|
||||||
|
workflow: Build debian latest (buanet)
|
||||||
|
repo: buanet/ioBroker.docker
|
||||||
|
token: ${{ secrets.ACTIONS_PAT }}
|
||||||
|
|
||||||
|
- name: Trigger build debian latest (iobroker)
|
||||||
|
if: steps.git-check.outputs.modified == 'true'
|
||||||
|
uses: benc-uk/workflow-dispatch@v1.1
|
||||||
|
with:
|
||||||
|
workflow: Build debian latest (iobroker)
|
||||||
|
repo: buanet/ioBroker.docker
|
||||||
|
token: ${{ secrets.ACTIONS_PAT }}
|
||||||
33
.github/workflows/testing-docker-image.yml
vendored
Normal file
33
.github/workflows/testing-docker-image.yml
vendored
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
# Github action for testing the Docker image
|
||||||
|
name: Testing Docker image
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test-docker-image:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Testing with docker run
|
||||||
|
run: |
|
||||||
|
echo "[LOG] Starting ioBroker Container..."
|
||||||
|
docker run -d -p 8081:8081 --name iobroker -v iobrokerdata:/opt/iobroker buanet/iobroker:latest
|
||||||
|
echo "[LOG] Done."
|
||||||
|
echo ' '
|
||||||
|
echo "[LOG] Waiting for Startup Script..."
|
||||||
|
sleep 30
|
||||||
|
echo "[LOG] Done."
|
||||||
|
echo ' '
|
||||||
|
echo "[LOG] Writing Logs..."
|
||||||
|
docker logs iobroker >& testrun.log
|
||||||
|
echo "[LOG] Done."
|
||||||
|
echo ' '
|
||||||
|
echo "[LOG] Checking Web UI..."
|
||||||
|
curl --insecure http://127.0.0.1:8081 2> /dev/null | grep '<title>Admin</title>' &> /dev/null || exit 1
|
||||||
|
echo "[LOG] Done."
|
||||||
|
echo ' '
|
||||||
|
echo "[LOG] Output testrun.log:"
|
||||||
|
cat testrun.log
|
||||||
|
echo ' '
|
||||||
|
echo "[LOG] Test sucesssful."
|
||||||
|
echo ' '
|
||||||
40
CHANGELOG.md
40
CHANGELOG.md
@@ -1,16 +1,28 @@
|
|||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
|
### v6.1.0 (2022-03-01)
|
||||||
|
* v6.1.0-beta.2 (2022-02-11)
|
||||||
|
* fix -kbn option in maintenance script
|
||||||
|
* optimize shutdown/ prevent warnings on upgrade
|
||||||
|
* remove hostname check for multihost slave
|
||||||
|
* optimize startup script logging
|
||||||
|
* add breaks and optimize maintenance script (fixes [#233](https://github.com/buanet/ioBroker.docker/issues/233))
|
||||||
|
* v6.1.0-beta.1 (2021-12-23)
|
||||||
|
* some more corrections in maintenance script ([#232 @agross](https://github.com/buanet/ioBroker.docker/pull/232))
|
||||||
|
* add auto confirm parameter to upgrade function in maintenance script ([#229 @thost96](https://github.com/buanet/ioBroker.docker/pull/229))
|
||||||
|
* add alias "m" for maintenance script
|
||||||
|
|
||||||
### v6.0.0 (2021-12-09)
|
### v6.0.0 (2021-12-09)
|
||||||
* moving docu/ restructuring readme
|
* move docu/ restructuring readme
|
||||||
* v6.0.0-beta1 (2021-10-07)
|
* v6.0.0-beta1 (2021-10-07)
|
||||||
* upgrading node version to recommended node14
|
* upgrade node version to recommended node14
|
||||||
* adding beta-node16 tag for beta testing node16
|
* add beta-node16 tag for beta testing node16
|
||||||
* updating documentation
|
* update documentation
|
||||||
* v5.3.0-beta1 (2021-10-07)
|
* v5.3.0-beta1 (2021-10-07)
|
||||||
* adding check (installed) PACKAGES on startup (#201)
|
* add check (installed) PACKAGES on startup (fixes [#201](https://github.com/buanet/ioBroker.docker/issues/201))
|
||||||
* adding packages for discovery adapter
|
* add packages for discovery adapter
|
||||||
* adding packages for backitup adapter
|
* add packages for backitup adapter
|
||||||
* reorganizing Dockerfile
|
* reorganize Dockerfile
|
||||||
|
|
||||||
### v5.2.0 (2021-09-30)
|
### v5.2.0 (2021-09-30)
|
||||||
* v5.2.0-beta4 (2021-09-10)
|
* v5.2.0-beta4 (2021-09-10)
|
||||||
@@ -29,11 +41,11 @@
|
|||||||
* adding labels in OCI standard format
|
* adding labels in OCI standard format
|
||||||
* adding packages update on first start
|
* adding packages update on first start
|
||||||
* adding file for docker detection by ioBroker adapters
|
* adding file for docker detection by ioBroker adapters
|
||||||
* adding best practice for states db migation in readme
|
* adding best practice for states db migration in readme
|
||||||
* removing couchdb option for states db (no longer supported)
|
* removing couchdb option for states db (no longer supported)
|
||||||
* v5.2.0-beta1 (2021-05-04)
|
* v5.2.0-beta1 (2021-05-04)
|
||||||
* added upgrade parameter to maintenance script
|
* added upgrade parameter to maintenance script
|
||||||
* added expose for default admin ui port (#172)
|
* added expose for default admin ui port (fixes [#172](https://github.com/buanet/ioBroker.docker/issues/172))
|
||||||
* added short form for maintenance script
|
* added short form for maintenance script
|
||||||
* v5.2.0-beta (2021-04-02)
|
* v5.2.0-beta (2021-04-02)
|
||||||
* some renaming to optimize automated build
|
* some renaming to optimize automated build
|
||||||
@@ -43,7 +55,7 @@
|
|||||||
### v5.1.0 (2020-11-05)
|
### v5.1.0 (2020-11-05)
|
||||||
* v5.0.2-beta (2020-07-28)
|
* v5.0.2-beta (2020-07-28)
|
||||||
* added docker tag for majorversion latest
|
* added docker tag for majorversion latest
|
||||||
* extend readme.md doku
|
* extend readme.md docu
|
||||||
* added maintenance script
|
* added maintenance script
|
||||||
* added container healthcheck
|
* added container healthcheck
|
||||||
* fixed configuration procedure and logging for objects and states db setup
|
* fixed configuration procedure and logging for objects and states db setup
|
||||||
@@ -84,7 +96,7 @@
|
|||||||
### v4.1.0 (2020-01-17)
|
### v4.1.0 (2020-01-17)
|
||||||
* improved readme.md
|
* improved readme.md
|
||||||
* v4.0.3-beta (2020-01-06)
|
* v4.0.3-beta (2020-01-06)
|
||||||
* added support to restore backup on startup
|
* added support to restore backup on startup ([#56 @duffbeer2000](https://github.com/buanet/ioBroker.docker/pull/56))
|
||||||
* small fixes according to "docker best practices"
|
* small fixes according to "docker best practices"
|
||||||
* v4.0.2-beta (2019-12-10)
|
* v4.0.2-beta (2019-12-10)
|
||||||
* ~~added env for activating redis~~
|
* ~~added env for activating redis~~
|
||||||
@@ -104,13 +116,13 @@
|
|||||||
* v3.1.2-beta (2019-09-03)
|
* v3.1.2-beta (2019-09-03)
|
||||||
* using node 10 instead of node 8
|
* using node 10 instead of node 8
|
||||||
* v3.1.1-beta (2019-09-02)
|
* v3.1.1-beta (2019-09-02)
|
||||||
* adding env for setting uid/ gid for iobroker-user
|
* adding env for setting uid/ gid for iobroker-user ([#33 @mplogas](https://github.com/buanet/ioBroker.docker/pull/33))
|
||||||
|
|
||||||
### v3.1.0 (2019-08-21)
|
### v3.1.0 (2019-08-21)
|
||||||
* v3.0.3-beta (2019-08-21)
|
* v3.0.3-beta (2019-08-21)
|
||||||
* switching base image from "debian:latest" to "debian:stretch"
|
* switching base image from "debian:latest" to "debian:stretch"
|
||||||
* v3.0.2-beta (2019-06-13)
|
* v3.0.2-beta (2019-06-13)
|
||||||
* using gosu instead of sudo
|
* using gosu instead of sudo ([#26 @SchumyHao](https://github.com/buanet/ioBroker.docker/pull/26))
|
||||||
* changing output of ioBroker logging
|
* changing output of ioBroker logging
|
||||||
* v3.0.1-beta (2019-05-18)
|
* v3.0.1-beta (2019-05-18)
|
||||||
* ~~switching back to iobroker-daemon for startup~~
|
* ~~switching back to iobroker-daemon for startup~~
|
||||||
|
|||||||
19
README.md
19
README.md
@@ -1,15 +1,20 @@
|
|||||||
# Official Docker Image for ioBroker
|
# Official Docker Image for ioBroker
|
||||||
|
|
||||||
<img src="https://github.com/buanet/ioBroker.docker/raw/main/src/img/iobroker_logo.png" width="600" title="ioBroker Logo">
|
<img src="https://github.com/buanet/ioBroker.docker/raw/main/docs/img/iobroker_logo.png" width="600" title="ioBroker Logo">
|
||||||
|
|
||||||
|
[](https://github.com/buanet/ioBroker.docker/releases)
|
||||||
|
[](https://github.com/buanet/ioBroker.docker/releases)
|
||||||
|
[)](https://github.com/buanet/ioBroker.docker/actions/workflows/build-debian-image-latest.yml)
|
||||||
|
[](https://github.com/buanet/ioBroker.docker/issues)
|
||||||
|
[](https://github.com/buanet/ioBroker.docker/discussions)<br>
|
||||||
|
[](https://hub.docker.com/repository/docker/buanet/iobroker)
|
||||||
[](https://hub.docker.com/repository/docker/buanet/iobroker)
|
[](https://hub.docker.com/repository/docker/buanet/iobroker)
|
||||||
[](https://hub.docker.com/repository/docker/buanet/iobroker)
|
[](https://hub.docker.com/repository/docker/buanet/iobroker)
|
||||||
[](https://hub.docker.com/repository/docker/buanet/iobroker)<br>
|
[](https://hub.docker.com/repository/docker/buanet/iobroker)<br>
|
||||||
[)](https://github.com/buanet/ioBroker.docker/actions/workflows/build-debian-image-main.yml)
|
|
||||||
[](https://github.com/buanet/ioBroker.docker/releases)
|
|
||||||
[](https://github.com/buanet/ioBroker.docker/issues)<br>
|
|
||||||
[](https://github.com/buanet/ioBroker.docker)
|
|
||||||
[](https://github.com/buanet/ioBroker.docker/blob/master/LICENSE.md)
|
[](https://github.com/buanet/ioBroker.docker/blob/master/LICENSE.md)
|
||||||
|
[](https://github.com/buanet/ioBroker.docker)
|
||||||
|
[](https://github.com/buanet/ioBroker.docker/network)
|
||||||
|
[](https://github.com/buanet/ioBroker.docker/stargazers)
|
||||||
[](https://paypal.me/buanet)
|
[](https://paypal.me/buanet)
|
||||||
|
|
||||||
The code provided in this repo is used to automatically generate the official Docker Image for ioBroker.
|
The code provided in this repo is used to automatically generate the official Docker Image for ioBroker.
|
||||||
@@ -26,7 +31,7 @@ Looking for documentation? :arrow_right: [docs.buanet.de](https://docs.buanet.de
|
|||||||
|
|
||||||
### How to run the image?
|
### How to run the image?
|
||||||
|
|
||||||
You can find some basic information about the image amd how to run it on the [Docker Hub page](https://hub.docker.com/r/buanet/iobroker) or [here](https://github.com/buanet/ioBroker.docker/blob/main/src/README_docker_hub_buanet.md).
|
You can find some basic information about the image amd how to run it on the [Docker Hub page](https://hub.docker.com/r/buanet/iobroker) or [here](https://github.com/buanet/ioBroker.docker/blob/main/docs/README_docker_hub_buanet.md).
|
||||||
|
|
||||||
### Is there a more detailed documentation?
|
### Is there a more detailed documentation?
|
||||||
|
|
||||||
@@ -61,7 +66,7 @@ If you want to get the newest features and changes feel free to use/ test the be
|
|||||||
|
|
||||||
The easiest way to support this project is to leave me some likes/ stars on Github and Docker hub!<br>
|
The easiest way to support this project is to leave me some likes/ stars on Github and Docker hub!<br>
|
||||||
If you want to give something back to the community, feel free to take a look into the [open issues](https://github.com/buanet/ioBroker.docker/issues) or the [ioBroker forum thread](http://forum.iobroker.net/viewtopic.php?f=17&t=5089) and help me answering questions, fixing bugs or adding new features!<br>
|
If you want to give something back to the community, feel free to take a look into the [open issues](https://github.com/buanet/ioBroker.docker/issues) or the [ioBroker forum thread](http://forum.iobroker.net/viewtopic.php?f=17&t=5089) and help me answering questions, fixing bugs or adding new features!<br>
|
||||||
If that doesn't work for you and you want to buy me a beer instead, you can do this here: <a href="https://www.paypal.me/buanet" target="_blank"><img src="https://github.com/buanet/ioBroker.docker/raw/main/src/img/pp_logo.png" height="15" width="15"></a><br>
|
If that doesn't work for you and you want to buy me a beer instead, you can do this here: <a href="https://www.paypal.me/buanet" target="_blank"><img src="https://github.com/buanet/ioBroker.docker/raw/main/docs/img/pp_logo.png" height="15" width="15"></a><br>
|
||||||
Thank you!
|
Thank you!
|
||||||
|
|
||||||
## :memo: Changelog
|
## :memo: Changelog
|
||||||
|
|||||||
82
debian/scripts/iobroker_startup.sh
vendored
82
debian/scripts/iobroker_startup.sh
vendored
@@ -39,6 +39,7 @@ echo "----- Debugging information
|
|||||||
echo "----- -----"
|
echo "----- -----"
|
||||||
echo "----- System -----"
|
echo "----- System -----"
|
||||||
echo -n "----- " && echo -n "$(printf "%-20s %-28s" arch: $(uname -m))" && echo " -----"
|
echo -n "----- " && echo -n "$(printf "%-20s %-28s" arch: $(uname -m))" && echo " -----"
|
||||||
|
echo -n "----- " && echo -n "$(printf "%-20s %-28s" hostname: $(hostname))" && echo " -----"
|
||||||
echo "----- -----"
|
echo "----- -----"
|
||||||
echo "----- Docker-Image -----"
|
echo "----- Docker-Image -----"
|
||||||
echo -n "----- " && echo -n "$(printf "%-20s %-28s" image: ${VERSION})" && echo " -----"
|
echo -n "----- " && echo -n "$(printf "%-20s %-28s" image: ${VERSION})" && echo " -----"
|
||||||
@@ -86,6 +87,7 @@ then
|
|||||||
echo "Registering maintenance script as command..."
|
echo "Registering maintenance script as command..."
|
||||||
echo "alias maintenance=\'/opt/scripts/maintenance.sh\'" >> /root/.bashrc
|
echo "alias maintenance=\'/opt/scripts/maintenance.sh\'" >> /root/.bashrc
|
||||||
echo "alias maint=\'/opt/scripts/maintenance.sh\'" >> /root/.bashrc
|
echo "alias maint=\'/opt/scripts/maintenance.sh\'" >> /root/.bashrc
|
||||||
|
echo "alias m=\'/opt/scripts/maintenance.sh\'" >> /root/.bashrc
|
||||||
echo "Done."
|
echo "Done."
|
||||||
echo ' '
|
echo ' '
|
||||||
fi
|
fi
|
||||||
@@ -139,7 +141,7 @@ then
|
|||||||
then
|
then
|
||||||
echo "IoBroker backup file detected in /opt/iobroker. But Multihost is set to \"slave\"."
|
echo "IoBroker backup file detected in /opt/iobroker. But Multihost is set to \"slave\"."
|
||||||
echo "Restoring a backup is not supported on Multihost slaves. Please check configuration and start over."
|
echo "Restoring a backup is not supported on Multihost slaves. Please check configuration and start over."
|
||||||
echo "For more information see readme.md on Github (https://github.com/buanet/ioBroker.docker)."
|
echo "For more information see ioBroker Docker Image Docs (https://docs.buanet.de/iobroker-docker-image/docs/)."
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo "IoBroker backup file detected in /opt/iobroker."
|
echo "IoBroker backup file detected in /opt/iobroker."
|
||||||
@@ -196,7 +198,7 @@ echo "Done."
|
|||||||
echo ' '
|
echo ' '
|
||||||
|
|
||||||
# checking hostname in ioBroker to match container hostname
|
# checking hostname in ioBroker to match container hostname
|
||||||
if [ $(bash iobroker object get system.adapter.admin.0 --pretty | grep -oP '(?<="host": ")[^"]*') != $(hostname) ]
|
if [ $(bash iobroker object get system.adapter.admin.0 --pretty | grep -oP '(?<="host": ")[^"]*') != $(hostname) ] && [ "$multihost" != "slave" ]
|
||||||
then
|
then
|
||||||
echo "Hostname in ioBroker does not match the hostname of this container."
|
echo "Hostname in ioBroker does not match the hostname of this container."
|
||||||
echo "Updating hostname to " $(hostname)"..."
|
echo "Updating hostname to " $(hostname)"..."
|
||||||
@@ -215,7 +217,7 @@ echo "$(printf -- '-%.0s' {1..80})"
|
|||||||
echo ' '
|
echo ' '
|
||||||
|
|
||||||
echo "Some adapters have special requirements/ settings which can be activated by the use of environment variables."
|
echo "Some adapters have special requirements/ settings which can be activated by the use of environment variables."
|
||||||
echo "For more information take a look at readme.md on Github!"
|
echo "For more information see ioBroker Docker Image Docs (https://docs.buanet.de/iobroker-docker-image/docs/)."
|
||||||
echo ' '
|
echo ' '
|
||||||
|
|
||||||
|
|
||||||
@@ -281,6 +283,10 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
# Checking ENV for multihost setup
|
# Checking ENV for multihost setup
|
||||||
|
if [ "$multihost" != "" ]
|
||||||
|
then
|
||||||
|
echo "Checking Multihost Setup..."
|
||||||
|
echo ' '
|
||||||
# Configuring objects db host
|
# Configuring objects db host
|
||||||
if [ "$multihost" = "master" ] && [ "$objectsdbtype" = "" ] && [ "$objectsdbhost" = "" ] && [ "$objectsdbport" = "" ]
|
if [ "$multihost" = "master" ] && [ "$objectsdbtype" = "" ] && [ "$objectsdbhost" = "" ] && [ "$objectsdbport" = "" ]
|
||||||
then
|
then
|
||||||
@@ -289,39 +295,34 @@ then
|
|||||||
jq --arg objectsdbhost "0.0.0.0" '.objects.host = $objectsdbhost' /opt/iobroker/iobroker-data/iobroker.json > /opt/iobroker/iobroker-data/iobroker.json.tmp && mv /opt/iobroker/iobroker-data/iobroker.json.tmp /opt/iobroker/iobroker-data/iobroker.json
|
jq --arg objectsdbhost "0.0.0.0" '.objects.host = $objectsdbhost' /opt/iobroker/iobroker-data/iobroker.json > /opt/iobroker/iobroker-data/iobroker.json.tmp && mv /opt/iobroker/iobroker-data/iobroker.json.tmp /opt/iobroker/iobroker-data/iobroker.json
|
||||||
chown -R $setuid:$setgid /opt/iobroker/iobroker-data/iobroker.json && chmod 674 /opt/iobroker/iobroker-data/iobroker.json
|
chown -R $setuid:$setgid /opt/iobroker/iobroker-data/iobroker.json && chmod 674 /opt/iobroker/iobroker-data/iobroker.json
|
||||||
echo "Done."
|
echo "Done."
|
||||||
echo ' '
|
|
||||||
elif [ "$multihost" = "master" ] && [ "$objectsdbhost" = "127.0.0.1" ]
|
elif [ "$multihost" = "master" ] && [ "$objectsdbhost" = "127.0.0.1" ]
|
||||||
then
|
then
|
||||||
echo "Multihost is set as \"master\" by ENV. But objects db host is set to \"127.0.0.1\" by ENV too."
|
echo "Multihost is set as \"master\" by ENV. But objects db host is set to \"127.0.0.1\" by ENV too."
|
||||||
echo "This configuration will not work! Please change or remove ENV \"IOB_OBJECTSDB_HOST\" and start over!"
|
echo "This configuration will not allow slaves to connect the objects db! Please change or remove ENV \"IOB_OBJECTSDB_HOST\" and start over!"
|
||||||
echo "For more information see readme.md on Github (https://github.com/buanet/ioBroker.docker)."
|
echo "For more information see ioBroker Docker Image Docs (https://docs.buanet.de/iobroker-docker-image/docs/)."
|
||||||
exit 1
|
exit 1
|
||||||
elif [ "$multihost" = "master" ] && [ "$objectsdbtype" != "" ] && [ "$objectsdbhost" != "" ] && [ "$objectsdbport" != "" ]
|
elif [ "$multihost" = "master" ] && [ "$objectsdbtype" != "" ] && [ "$objectsdbhost" != "" ] && [ "$objectsdbport" != "" ]
|
||||||
then
|
then
|
||||||
echo "Multihost is set as \"master\" by ENV and external objects db is set."
|
echo "Multihost is set as \"master\" by ENV and external objects db is set."
|
||||||
echo "Skipping this step..."
|
|
||||||
echo "Done."
|
|
||||||
echo ' '
|
|
||||||
elif ([ "$multihost" = "slave" ] && [ "$objectsdbtype" = "" ]) || ([ "$multihost" = "slave" ] && [ "$objectsdbhost" = "" ]) || ([ "$multihost" = "slave" ] && [ "$objectsdbport" = "" ])
|
elif ([ "$multihost" = "slave" ] && [ "$objectsdbtype" = "" ]) || ([ "$multihost" = "slave" ] && [ "$objectsdbhost" = "" ]) || ([ "$multihost" = "slave" ] && [ "$objectsdbport" = "" ])
|
||||||
then
|
then
|
||||||
echo "Multihost is set as \"slave\" by ENV. But no external objects db is set."
|
echo "Multihost is set as \"slave\" by ENV. But no external objects db is set."
|
||||||
echo "You have to configure ENVs \"IOB_OBJECTSDB_TYPE\", \"IOB_OBJECTSDB_HOST\" and \"IOB_OBJECTSDB_PORT\" to connect to a maser objects db."
|
echo "You have to configure ENVs \"IOB_OBJECTSDB_TYPE\", \"IOB_OBJECTSDB_HOST\" and \"IOB_OBJECTSDB_PORT\" to connect to a maser objects db."
|
||||||
echo "Please check your settings and start over."
|
echo "Please check your settings and start over."
|
||||||
echo "For more information see readme.md on Github (https://github.com/buanet/ioBroker.docker)."
|
echo "For more information see ioBroker Docker Image Docs (https://docs.buanet.de/iobroker-docker-image/docs/)."
|
||||||
exit 1
|
exit 1
|
||||||
elif [ "$multihost" = "slave" ] && [ "$objectsdbtype" != "" ] && [ "$objectsdbhost" != "" ] && [ "$objectsdbport" != "" ]
|
elif [ "$multihost" = "slave" ] && [ "$objectsdbtype" != "" ] && [ "$objectsdbhost" != "" ] && [ "$objectsdbport" != "" ]
|
||||||
then
|
then
|
||||||
echo "Multihost is set as \"slave\" by ENV and external objects db is set."
|
echo "Multihost is set as \"slave\" by ENV and external objects db is set."
|
||||||
echo "Skipping this step..."
|
|
||||||
echo "Done."
|
|
||||||
echo ' '
|
|
||||||
elif [ "$multihost" != "" ]
|
elif [ "$multihost" != "" ]
|
||||||
then
|
then
|
||||||
echo "Multihost is set but it seems like some configuration is missing."
|
echo "Multihost is set but it seems like some configuration is missing."
|
||||||
echo "Please checke if you have configured the ENVs \"MULTIHOST\", \"IOB_OBJECTSDB_TYPE\", \"IOB_OBJECTSDB_HOST\" and \"IOB_OBJECTSDB_PORT\" correctly and start over."
|
echo "Please checke if you have configured the ENVs \"MULTIHOST\", \"IOB_OBJECTSDB_TYPE\", \"IOB_OBJECTSDB_HOST\" and \"IOB_OBJECTSDB_PORT\" correctly and start over."
|
||||||
echo "For more information see readme.md on Github (https://github.com/buanet/ioBroker.docker)."
|
echo "For more information see ioBroker Docker Image Docs (https://docs.buanet.de/iobroker-docker-image/docs/)."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
echo ' '
|
||||||
|
|
||||||
#Configuring states db host
|
#Configuring states db host
|
||||||
if [ "$multihost" = "master" ] && [ "$statesdbtype" = "" ] && [ "$statesdbhost" = "" ] && [ "$statesdbport" = "" ]
|
if [ "$multihost" = "master" ] && [ "$statesdbtype" = "" ] && [ "$statesdbhost" = "" ] && [ "$statesdbport" = "" ]
|
||||||
then
|
then
|
||||||
@@ -330,112 +331,116 @@ then
|
|||||||
jq --arg statesdbhost "0.0.0.0" '.states.host = $statesdbhost' /opt/iobroker/iobroker-data/iobroker.json > /opt/iobroker/iobroker-data/iobroker.json.tmp && mv /opt/iobroker/iobroker-data/iobroker.json.tmp /opt/iobroker/iobroker-data/iobroker.json
|
jq --arg statesdbhost "0.0.0.0" '.states.host = $statesdbhost' /opt/iobroker/iobroker-data/iobroker.json > /opt/iobroker/iobroker-data/iobroker.json.tmp && mv /opt/iobroker/iobroker-data/iobroker.json.tmp /opt/iobroker/iobroker-data/iobroker.json
|
||||||
chown -R $setuid:$setgid /opt/iobroker/iobroker-data/iobroker.json && chmod 674 /opt/iobroker/iobroker-data/iobroker.json
|
chown -R $setuid:$setgid /opt/iobroker/iobroker-data/iobroker.json && chmod 674 /opt/iobroker/iobroker-data/iobroker.json
|
||||||
echo "Done."
|
echo "Done."
|
||||||
echo ' '
|
|
||||||
elif [ "$multihost" = "master" ] && [ "$statesdbhost" = "127.0.0.1" ]
|
elif [ "$multihost" = "master" ] && [ "$statesdbhost" = "127.0.0.1" ]
|
||||||
then
|
then
|
||||||
echo "Multihost is set as \"master\" by ENV. But states db host is set to \"127.0.0.1\" by ENV too."
|
echo "Multihost is set as \"master\" by ENV. But states db host is set to \"127.0.0.1\" by ENV too."
|
||||||
echo "This configuration will not work! Please change or remove ENV \"IOB_STATESDB_HOST\" and start over!"
|
echo "This configuration will not work! Please change or remove ENV \"IOB_STATESDB_HOST\" and start over!"
|
||||||
echo "For more information see readme.md on Github (https://github.com/buanet/ioBroker.docker)."
|
echo "For more information see ioBroker Docker Image Docs (https://docs.buanet.de/iobroker-docker-image/docs/)."
|
||||||
exit 1
|
exit 1
|
||||||
elif [ "$multihost" = "master" ] && [ "$statesdbtype" != "" ] && [ "$statesdbhost" != "" ] && [ "$statesdbport" != "" ]
|
elif [ "$multihost" = "master" ] && [ "$statesdbtype" != "" ] && [ "$statesdbhost" != "" ] && [ "$statesdbport" != "" ]
|
||||||
then
|
then
|
||||||
echo "Multihost is set as \"master\" by ENV and external states db is set."
|
echo "Multihost is set as \"master\" by ENV and external states db is set."
|
||||||
echo "Skipping this step..."
|
|
||||||
echo "Done."
|
|
||||||
echo ' '
|
|
||||||
elif ([ "$multihost" = "slave" ] && [ "$statesdbtype" = "" ]) || ([ "$multihost" = "slave" ] && [ "$statesdbhost" = "" ]) || ([ "$multihost" = "slave" ] && [ "$statesdbport" = "" ])
|
elif ([ "$multihost" = "slave" ] && [ "$statesdbtype" = "" ]) || ([ "$multihost" = "slave" ] && [ "$statesdbhost" = "" ]) || ([ "$multihost" = "slave" ] && [ "$statesdbport" = "" ])
|
||||||
then
|
then
|
||||||
echo "Multihost is set as \"slave\" by ENV. But no external states db is set."
|
echo "Multihost is set as \"slave\" by ENV. But no external states db is set."
|
||||||
echo "You have to configure ENVs \"IOB_STATESDB_TYPE\", \"IOB_STATESDB_HOST\" and \"IOB_STATESDB_PORT\" to connect to a maser states db."
|
echo "You have to configure ENVs \"IOB_STATESDB_TYPE\", \"IOB_STATESDB_HOST\" and \"IOB_STATESDB_PORT\" to connect to a maser states db."
|
||||||
echo "Please check your settings and start over."
|
echo "Please check your settings and start over."
|
||||||
echo "For more information see readme.md on Github (https://github.com/buanet/ioBroker.docker)."
|
echo "For more information see ioBroker Docker Image Docs (https://docs.buanet.de/iobroker-docker-image/docs/)."
|
||||||
exit 1
|
exit 1
|
||||||
elif [ "$multihost" = "slave" ] && [ "$statesdbtype" != "" ] && [ "$statesdbhost" != "" ] && [ "$statesdbport" != "" ]
|
elif [ "$multihost" = "slave" ] && [ "$statesdbtype" != "" ] && [ "$statesdbhost" != "" ] && [ "$statesdbport" != "" ]
|
||||||
then
|
then
|
||||||
echo "Multihost is set as \"slave\" by ENV and external states db is set."
|
echo "Multihost is set as \"slave\" by ENV and external states db is set."
|
||||||
echo "Skipping this step..."
|
|
||||||
echo "Done."
|
|
||||||
echo ' '
|
|
||||||
elif [ "$multihost" != "" ]
|
elif [ "$multihost" != "" ]
|
||||||
then
|
then
|
||||||
echo "Multihost is set but it seems like some configuration is missing."
|
echo "Multihost is set but it seems like some configuration is missing."
|
||||||
echo "Please checke if you have configured the ENVs \"MULTIHOST\", \"IOB_STATESDB_TYPE\", \"IOB_STATESDB_HOST\" and \"IOB_STATESTDB_PORT\" correctly and start over."
|
echo "Please checke if you have configured the ENVs \"MULTIHOST\", \"IOB_STATESDB_TYPE\", \"IOB_STATESDB_HOST\" and \"IOB_STATESTDB_PORT\" correctly and start over."
|
||||||
echo "For more information see readme.md on Github (https://github.com/buanet/ioBroker.docker)."
|
echo "For more information see ioBroker Docker Image Docs (https://docs.buanet.de/iobroker-docker-image/docs/)."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
echo ' '
|
||||||
|
echo "Done."
|
||||||
|
echo ' '
|
||||||
|
fi
|
||||||
|
|
||||||
# Checking ENVs for custom setup of objects db
|
# Checking ENVs for custom setup of objects db
|
||||||
if [ "$objectsdbtype" != "" ] || [ "$objectsdbhost" != "" ] || [ "$objectsdbport" != "" ]
|
if [ "$objectsdbtype" != "" ] || [ "$objectsdbhost" != "" ] || [ "$objectsdbport" != "" ]
|
||||||
then
|
then
|
||||||
|
echo "Checking custom settings for objects db..."
|
||||||
|
echo ' '
|
||||||
if [ "$objectsdbtype" != $(jq -r '.objects.type' /opt/iobroker/iobroker-data/iobroker.json) ]
|
if [ "$objectsdbtype" != $(jq -r '.objects.type' /opt/iobroker/iobroker-data/iobroker.json) ]
|
||||||
then
|
then
|
||||||
echo "ENV IOB_OBJECTSDB_TYPE is set and value is different from detected ioBroker installation."
|
echo "IOB_OBJECTSDB_TYPE is set and value is different from detected ioBroker installation."
|
||||||
echo "Setting type of objects db to \""$objectsdbtype"\"..."
|
echo "Setting type of objects db to \""$objectsdbtype"\"..."
|
||||||
jq --arg objectsdbtype "$objectsdbtype" '.objects.type = $objectsdbtype' /opt/iobroker/iobroker-data/iobroker.json > /opt/iobroker/iobroker-data/iobroker.json.tmp && mv /opt/iobroker/iobroker-data/iobroker.json.tmp /opt/iobroker/iobroker-data/iobroker.json
|
jq --arg objectsdbtype "$objectsdbtype" '.objects.type = $objectsdbtype' /opt/iobroker/iobroker-data/iobroker.json > /opt/iobroker/iobroker-data/iobroker.json.tmp && mv /opt/iobroker/iobroker-data/iobroker.json.tmp /opt/iobroker/iobroker-data/iobroker.json
|
||||||
chown -R $setuid:$setgid /opt/iobroker/iobroker-data/iobroker.json && chmod 674 /opt/iobroker/iobroker-data/iobroker.json
|
chown -R $setuid:$setgid /opt/iobroker/iobroker-data/iobroker.json && chmod 674 /opt/iobroker/iobroker-data/iobroker.json
|
||||||
echo "Done."
|
echo "Done."
|
||||||
else
|
else
|
||||||
echo "ENV IOB_OBJECTSDB_TYPE is set and value meets detected ioBroker installation. Nothing to do here."
|
echo "IOB_OBJECTSDB_TYPE is set and value meets detected ioBroker installation."
|
||||||
fi
|
fi
|
||||||
if [ "$objectsdbhost" != $(jq -r '.objects.host' /opt/iobroker/iobroker-data/iobroker.json) ]
|
if [ "$objectsdbhost" != $(jq -r '.objects.host' /opt/iobroker/iobroker-data/iobroker.json) ]
|
||||||
then
|
then
|
||||||
echo "ENV IOB_OBJECTSDB_HOST is set and value is different from detected ioBroker installation."
|
echo "IOB_OBJECTSDB_HOST is set and value is different from detected ioBroker installation."
|
||||||
echo "Setting host of objects db to \""$objectsdbhost"\"..."
|
echo "Setting host of objects db to \""$objectsdbhost"\"..."
|
||||||
jq --arg objectsdbhost "$objectsdbhost" '.objects.host = $objectsdbhost' /opt/iobroker/iobroker-data/iobroker.json > /opt/iobroker/iobroker-data/iobroker.json.tmp && mv /opt/iobroker/iobroker-data/iobroker.json.tmp /opt/iobroker/iobroker-data/iobroker.json
|
jq --arg objectsdbhost "$objectsdbhost" '.objects.host = $objectsdbhost' /opt/iobroker/iobroker-data/iobroker.json > /opt/iobroker/iobroker-data/iobroker.json.tmp && mv /opt/iobroker/iobroker-data/iobroker.json.tmp /opt/iobroker/iobroker-data/iobroker.json
|
||||||
chown -R $setuid:$setgid /opt/iobroker/iobroker-data/iobroker.json && chmod 674 /opt/iobroker/iobroker-data/iobroker.json
|
chown -R $setuid:$setgid /opt/iobroker/iobroker-data/iobroker.json && chmod 674 /opt/iobroker/iobroker-data/iobroker.json
|
||||||
echo "Done."
|
echo "Done."
|
||||||
else
|
else
|
||||||
echo "ENV IOB_OBJECTSDB_HOST is set and value meets detected ioBroker installation. Nothing to do here."
|
echo "IOB_OBJECTSDB_HOST is set and value meets detected ioBroker installation."
|
||||||
fi
|
fi
|
||||||
if [ "$objectsdbport" != $(jq -r '.objects.port' /opt/iobroker/iobroker-data/iobroker.json) ]
|
if [ "$objectsdbport" != $(jq -r '.objects.port' /opt/iobroker/iobroker-data/iobroker.json) ]
|
||||||
then
|
then
|
||||||
echo "ENV IOB_OBJECTSDB_PORT is set and value is different from detected ioBroker installation."
|
echo "IOB_OBJECTSDB_PORT is set and value is different from detected ioBroker installation."
|
||||||
echo "Setting port of objects db to \""$objectsdbport"\"..."
|
echo "Setting port of objects db to \""$objectsdbport"\"..."
|
||||||
jq --arg objectsdbport $objectsdbport '.objects.port = $objectsdbport' /opt/iobroker/iobroker-data/iobroker.json > /opt/iobroker/iobroker-data/iobroker.json.tmp && mv /opt/iobroker/iobroker-data/iobroker.json.tmp /opt/iobroker/iobroker-data/iobroker.json
|
jq --arg objectsdbport $objectsdbport '.objects.port = $objectsdbport' /opt/iobroker/iobroker-data/iobroker.json > /opt/iobroker/iobroker-data/iobroker.json.tmp && mv /opt/iobroker/iobroker-data/iobroker.json.tmp /opt/iobroker/iobroker-data/iobroker.json
|
||||||
chown -R $setuid:$setgid /opt/iobroker/iobroker-data/iobroker.json && chmod 674 /opt/iobroker/iobroker-data/iobroker.json
|
chown -R $setuid:$setgid /opt/iobroker/iobroker-data/iobroker.json && chmod 674 /opt/iobroker/iobroker-data/iobroker.json
|
||||||
echo "Done."
|
echo "Done."
|
||||||
else
|
else
|
||||||
echo "ENV IOB_OBJECTSDB_PORT is set and value meets detected ioBroker installation. Nothing to do here."
|
echo "IOB_OBJECTSDB_PORT is set and value meets detected ioBroker installation."
|
||||||
fi
|
fi
|
||||||
echo ' '
|
echo ' '
|
||||||
|
echo "Done."
|
||||||
|
echo ' '
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Checking ENVs for custom setup of states db#
|
# Checking ENVs for custom setup of states db#
|
||||||
if [ "$statesdbtype" != "" ] || [ "$statesdbhost" != "" ] || [ "$statesdbport" != "" ]
|
if [ "$statesdbtype" != "" ] || [ "$statesdbhost" != "" ] || [ "$statesdbport" != "" ]
|
||||||
then
|
then
|
||||||
|
echo "Checking custom settings for states db..."
|
||||||
|
echo ' '
|
||||||
if [ "$statesdbtype" != $(jq -r '.states.type' /opt/iobroker/iobroker-data/iobroker.json) ]
|
if [ "$statesdbtype" != $(jq -r '.states.type' /opt/iobroker/iobroker-data/iobroker.json) ]
|
||||||
then
|
then
|
||||||
echo "ENV IOB_STATESDB_TYPE is set and value is different from detected ioBroker installation."
|
echo "IOB_STATESDB_TYPE is set and value is different from detected ioBroker installation."
|
||||||
echo "Setting type of states db to \""$statesdbtype"\"..."
|
echo "Setting type of states db to \""$statesdbtype"\"..."
|
||||||
jq --arg statesdbtype "$statesdbtype" '.states.type = $statesdbtype' /opt/iobroker/iobroker-data/iobroker.json > /opt/iobroker/iobroker-data/iobroker.json.tmp && mv /opt/iobroker/iobroker-data/iobroker.json.tmp /opt/iobroker/iobroker-data/iobroker.json
|
jq --arg statesdbtype "$statesdbtype" '.states.type = $statesdbtype' /opt/iobroker/iobroker-data/iobroker.json > /opt/iobroker/iobroker-data/iobroker.json.tmp && mv /opt/iobroker/iobroker-data/iobroker.json.tmp /opt/iobroker/iobroker-data/iobroker.json
|
||||||
chown -R $setuid:$setgid /opt/iobroker/iobroker-data/iobroker.json && chmod 674 /opt/iobroker/iobroker-data/iobroker.json
|
chown -R $setuid:$setgid /opt/iobroker/iobroker-data/iobroker.json && chmod 674 /opt/iobroker/iobroker-data/iobroker.json
|
||||||
echo "Done."
|
echo "Done."
|
||||||
else
|
else
|
||||||
echo "ENV IOB_STATESDB_TYPE is set and value meets detected ioBroker installation. Nothing to do here."
|
echo "IOB_STATESDB_TYPE is set and value meets detected ioBroker installation."
|
||||||
fi
|
fi
|
||||||
if [ "$statesdbhost" != $(jq -r '.states.host' /opt/iobroker/iobroker-data/iobroker.json) ]
|
if [ "$statesdbhost" != $(jq -r '.states.host' /opt/iobroker/iobroker-data/iobroker.json) ]
|
||||||
then
|
then
|
||||||
echo "ENV IOB_STATESDB_HOST is set and value is different from detected ioBroker installation."
|
echo "IOB_STATESDB_HOST is set and value is different from detected ioBroker installation."
|
||||||
echo "Setting host of states db to \""$statesdbhost"\"..."
|
echo "Setting host of states db to \""$statesdbhost"\"..."
|
||||||
jq --arg statesdbhost "$statesdbhost" '.states.host = $statesdbhost' /opt/iobroker/iobroker-data/iobroker.json > /opt/iobroker/iobroker-data/iobroker.json.tmp && mv /opt/iobroker/iobroker-data/iobroker.json.tmp /opt/iobroker/iobroker-data/iobroker.json
|
jq --arg statesdbhost "$statesdbhost" '.states.host = $statesdbhost' /opt/iobroker/iobroker-data/iobroker.json > /opt/iobroker/iobroker-data/iobroker.json.tmp && mv /opt/iobroker/iobroker-data/iobroker.json.tmp /opt/iobroker/iobroker-data/iobroker.json
|
||||||
chown -R $setuid:$setgid /opt/iobroker/iobroker-data/iobroker.json && chmod 674 /opt/iobroker/iobroker-data/iobroker.json
|
chown -R $setuid:$setgid /opt/iobroker/iobroker-data/iobroker.json && chmod 674 /opt/iobroker/iobroker-data/iobroker.json
|
||||||
echo "Done."
|
echo "Done."
|
||||||
else
|
else
|
||||||
echo "ENV IOB_STATESDB_HOST is set and value meets detected ioBroker installation. Nothing to do here."
|
echo "IOB_STATESDB_HOST is set and value meets detected ioBroker installation."
|
||||||
fi
|
fi
|
||||||
if [ "$statesdbport" != $(jq -r '.states.port' /opt/iobroker/iobroker-data/iobroker.json) ]
|
if [ "$statesdbport" != $(jq -r '.states.port' /opt/iobroker/iobroker-data/iobroker.json) ]
|
||||||
then
|
then
|
||||||
echo "ENV IOB_STATESDB_PORT is set and value is different from detected ioBroker installation."
|
echo "IOB_STATESDB_PORT is set and value is different from detected ioBroker installation."
|
||||||
echo "Setting port of states db to \""$statesdbport"\"..."
|
echo "Setting port of states db to \""$statesdbport"\"..."
|
||||||
jq --arg statesdbport $statesdbport '.states.port = $statesdbport' /opt/iobroker/iobroker-data/iobroker.json > /opt/iobroker/iobroker-data/iobroker.json.tmp && mv /opt/iobroker/iobroker-data/iobroker.json.tmp /opt/iobroker/iobroker-data/iobroker.json
|
jq --arg statesdbport $statesdbport '.states.port = $statesdbport' /opt/iobroker/iobroker-data/iobroker.json > /opt/iobroker/iobroker-data/iobroker.json.tmp && mv /opt/iobroker/iobroker-data/iobroker.json.tmp /opt/iobroker/iobroker-data/iobroker.json
|
||||||
chown -R $setuid:$setgid /opt/iobroker/iobroker-data/iobroker.json && chmod 674 /opt/iobroker/iobroker-data/iobroker.json
|
chown -R $setuid:$setgid /opt/iobroker/iobroker-data/iobroker.json && chmod 674 /opt/iobroker/iobroker-data/iobroker.json
|
||||||
echo "Done."
|
echo "Done."
|
||||||
else
|
else
|
||||||
echo "ENV IOB_STATESDB_PORT is set and value meets detected ioBroker installation. Nothing to do here."
|
echo "IOB_STATESDB_PORT is set and value meets detected ioBroker installation."
|
||||||
fi
|
fi
|
||||||
echo ' '
|
echo ' '
|
||||||
|
echo "Done."
|
||||||
|
echo ' '
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@@ -493,8 +498,7 @@ shut_down() {
|
|||||||
echo ' '
|
echo ' '
|
||||||
echo "Recived termination signal (SIGTERM)."
|
echo "Recived termination signal (SIGTERM)."
|
||||||
echo "Shutting down ioBroker..."
|
echo "Shutting down ioBroker..."
|
||||||
pid=$(ps -ef | awk '/[j]s.controller/{print $2}')
|
pkill -SIGTERM -u iobroker -f iobroker.js-controller
|
||||||
kill -SIGTERM "$pid"
|
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
43
debian/scripts/maintenance.sh
vendored
43
debian/scripts/maintenance.sh
vendored
@@ -17,13 +17,14 @@ display_help() {
|
|||||||
echo ''
|
echo ''
|
||||||
echo "Usage: maintenance [ COMMAND ] [ OPTION ]"
|
echo "Usage: maintenance [ COMMAND ] [ OPTION ]"
|
||||||
echo " maint [ COMMAND ] [ OPTION ]"
|
echo " maint [ COMMAND ] [ OPTION ]"
|
||||||
|
echo " m [ COMMAND ] [ OPTION ]"
|
||||||
echo ''
|
echo ''
|
||||||
echo "COMMANDS"
|
echo "COMMANDS"
|
||||||
echo "------------------"
|
echo "------------------"
|
||||||
echo " status > gives the current state of maintenance mode"
|
echo " status > reports the current state of maintenance mode"
|
||||||
echo " on > switches mantenance mode ON"
|
echo " on > switches mantenance mode ON"
|
||||||
echo " off > switches mantenance mode OFF and shuts down/ restarts container"
|
echo " off > switches mantenance mode OFF and shuts down or restarts container"
|
||||||
echo " upgrade > will put container to maintenance mode and upgrade iobroker"
|
echo " upgrade > will put container to maintenance mode and upgrade ioBroker"
|
||||||
echo " help > shows this help"
|
echo " help > shows this help"
|
||||||
echo ''
|
echo ''
|
||||||
echo "OPTIONS"
|
echo "OPTIONS"
|
||||||
@@ -49,13 +50,13 @@ check_status() {
|
|||||||
switch_on() {
|
switch_on() {
|
||||||
if [ $(cat /opt/scripts/.docker_config/.healthcheck) != 'maintenance' ] && [ "$killbyname" == "yes" ] # maintenance mode OFF / killbyname = yes / undocumented, only for use with backitup restore scripts
|
if [ $(cat /opt/scripts/.docker_config/.healthcheck) != 'maintenance' ] && [ "$killbyname" == "yes" ] # maintenance mode OFF / killbyname = yes / undocumented, only for use with backitup restore scripts
|
||||||
then
|
then
|
||||||
echo 'This command will activate maintenance mode and stop all node processes.'
|
echo 'This command will activate maintenance mode and stop js-controller.'
|
||||||
echo 'Activating maintenance mode...'
|
echo 'Activating maintenance mode...'
|
||||||
echo "maintenance" > /opt/scripts/.docker_config/.healthcheck
|
echo "maintenance" > /opt/scripts/.docker_config/.healthcheck
|
||||||
sleep 1
|
sleep 1
|
||||||
echo 'Done.'
|
echo 'Done.'
|
||||||
echo 'Stopping ioBroker...'
|
echo 'Stopping ioBroker...'
|
||||||
pkill node
|
pkill -u iobroker -f iobroker.js-controller
|
||||||
sleep 1
|
sleep 1
|
||||||
echo 'Done.'
|
echo 'Done.'
|
||||||
exit 0
|
exit 0
|
||||||
@@ -100,11 +101,11 @@ switch_off() {
|
|||||||
if [ $(cat /opt/scripts/.docker_config/.healthcheck) == 'maintenance' ] && [ "$autoconfirm" == "no" ] # maintenance mode ON / autoconfirm = no
|
if [ $(cat /opt/scripts/.docker_config/.healthcheck) == 'maintenance' ] && [ "$autoconfirm" == "no" ] # maintenance mode ON / autoconfirm = no
|
||||||
then
|
then
|
||||||
echo 'You are now going to deactivate maintenance mode for this container.'
|
echo 'You are now going to deactivate maintenance mode for this container.'
|
||||||
echo 'Depending on the restart policy, your container will be stopped/ restarted immediately.'
|
echo 'Depending on the restart policy, your container will be stopped or restarted immediately.'
|
||||||
read -p 'Do you want to continue [yes/no]? ' A
|
read -p 'Do you want to continue [yes/no]? ' A
|
||||||
if [ "$A" == "y" ] || [ "$A" == "Y" ] || [ "$A" == "yes" ]
|
if [ "$A" == "y" ] || [ "$A" == "Y" ] || [ "$A" == "yes" ]
|
||||||
then
|
then
|
||||||
echo 'Deactivating maintenance mode and forcing container to stop/ restart...'
|
echo 'Deactivating maintenance mode and forcing container to stop or restart...'
|
||||||
echo "stopping" > /opt/scripts/.docker_config/.healthcheck
|
echo "stopping" > /opt/scripts/.docker_config/.healthcheck
|
||||||
pkill -u root
|
pkill -u root
|
||||||
echo 'Done.'
|
echo 'Done.'
|
||||||
@@ -115,9 +116,9 @@ switch_off() {
|
|||||||
elif [ $(cat /opt/scripts/.docker_config/.healthcheck) == 'maintenance' ] && [ "$autoconfirm" == "yes" ] # maintenance mode ON / autoconfirm = yes
|
elif [ $(cat /opt/scripts/.docker_config/.healthcheck) == 'maintenance' ] && [ "$autoconfirm" == "yes" ] # maintenance mode ON / autoconfirm = yes
|
||||||
then
|
then
|
||||||
echo 'You are now going to deactivate maintenance mode for this container.'
|
echo 'You are now going to deactivate maintenance mode for this container.'
|
||||||
echo 'Depending on the restart policy, your container will be stopped/ restarted immediately.'
|
echo 'Depending on the restart policy, your container will be stopped or restarted immediately.'
|
||||||
echo 'This command was already confirmed by -y or --yes option.'
|
echo 'This command was already confirmed by -y or --yes option.'
|
||||||
echo 'Deactivating maintenance mode and forcing container to stop/ restart...'
|
echo 'Deactivating maintenance mode and forcing container to stop or restart...'
|
||||||
echo "stopping" > /opt/scripts/.docker_config/.healthcheck
|
echo "stopping" > /opt/scripts/.docker_config/.healthcheck
|
||||||
pkill -u root
|
pkill -u root
|
||||||
echo 'Done.'
|
echo 'Done.'
|
||||||
@@ -132,9 +133,22 @@ upgrade() {
|
|||||||
echo 'You are now going to upgrade your js-controller.'
|
echo 'You are now going to upgrade your js-controller.'
|
||||||
echo 'As this will change data in /opt/iobroker, make sure you have a backup!'
|
echo 'As this will change data in /opt/iobroker, make sure you have a backup!'
|
||||||
echo 'During the upgrade process the container will automatically switch into maintenance mode and stop ioBroker.'
|
echo 'During the upgrade process the container will automatically switch into maintenance mode and stop ioBroker.'
|
||||||
echo 'Depending of the restart policy, you container will be stoped/ restarted automatically after the upgrade.'
|
echo 'Depending of the restart policy, your container will be stopped or restarted automatically after the upgrade.'
|
||||||
|
|
||||||
|
if [ "$autoconfirm" == "no" ]
|
||||||
|
then
|
||||||
read -p 'Do you want to continue [yes/no]? ' A
|
read -p 'Do you want to continue [yes/no]? ' A
|
||||||
if [ "$A" == "y" ] || [ "$A" == "Y" ] || [ "$A" == "yes" ]
|
if [ "$A" == "y" ] || [ "$A" == "Y" ] || [ "$A" == "yes" ]
|
||||||
|
then
|
||||||
|
: # Continue.
|
||||||
|
else
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
elif [ "$autoconfirm" == "yes" ]
|
||||||
|
then
|
||||||
|
echo 'This command was already confirmed by -y or --yes option.'
|
||||||
|
fi
|
||||||
|
if [ $(cat /opt/scripts/.docker_config/.healthcheck) != 'maintenance' ]
|
||||||
then
|
then
|
||||||
echo 'Activating maintenance mode...'
|
echo 'Activating maintenance mode...'
|
||||||
echo "maintenance" > /opt/scripts/.docker_config/.healthcheck
|
echo "maintenance" > /opt/scripts/.docker_config/.healthcheck
|
||||||
@@ -142,21 +156,20 @@ upgrade() {
|
|||||||
echo 'Done.'
|
echo 'Done.'
|
||||||
echo 'Stopping ioBroker...'
|
echo 'Stopping ioBroker...'
|
||||||
pkill -u iobroker
|
pkill -u iobroker
|
||||||
sleep 1
|
sleep 5
|
||||||
echo 'Done.'
|
echo 'Done.'
|
||||||
|
fi
|
||||||
echo 'Upgrading js-controller...'
|
echo 'Upgrading js-controller...'
|
||||||
iobroker update
|
iobroker update
|
||||||
|
sleep 1
|
||||||
iobroker upgrade self
|
iobroker upgrade self
|
||||||
sleep 1
|
sleep 1
|
||||||
echo 'Done.'
|
echo 'Done.'
|
||||||
echo 'Container will be stopped/ restarted in 5 seconds...'
|
echo 'Container will be stopped or restarted in 5 seconds...'
|
||||||
sleep 5
|
sleep 5
|
||||||
echo "stopping" > /opt/scripts/.docker_config/.healthcheck
|
echo "stopping" > /opt/scripts/.docker_config/.healthcheck
|
||||||
pkill -u root
|
pkill -u root
|
||||||
exit 0
|
exit 0
|
||||||
else
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<img src="https://github.com/buanet/ioBroker.docker/raw/main/src/img/iobroker_logo.png" width="600" title="ioBroker Logo">
|
<img src="https://github.com/buanet/ioBroker.docker/raw/main/docs/img/iobroker_logo.png" width="600" title="ioBroker Logo">
|
||||||
|
|
||||||
[](https://hub.docker.com/repository/docker/buanet/iobroker)
|
[](https://hub.docker.com/r/buanet/iobroker)
|
||||||
[](https://hub.docker.com/repository/docker/buanet/iobroker)
|
[](https://hub.docker.com/r/buanet/iobroker)
|
||||||
[](https://hub.docker.com/repository/docker/buanet/iobroker)<br>
|
[](https://hub.docker.com/r/buanet/iobroker)<br>
|
||||||
[)](https://github.com/buanet/ioBroker.docker/actions/workflows/build-debian-image-main.yml)
|
[)](https://github.com/buanet/ioBroker.docker/actions/workflows/build-debian-image-main.yml)
|
||||||
[](https://github.com/buanet/ioBroker.docker/releases)
|
[](https://github.com/buanet/ioBroker.docker/releases)
|
||||||
[](https://github.com/buanet/ioBroker.docker/issues)<br>
|
[](https://github.com/buanet/ioBroker.docker/issues)<br>
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
[](https://github.com/buanet/ioBroker.docker/blob/master/LICENSE.md)
|
[](https://github.com/buanet/ioBroker.docker/blob/master/LICENSE.md)
|
||||||
[](https://paypal.me/buanet)
|
[](https://paypal.me/buanet)
|
||||||
|
|
||||||
# Important Note
|
# Important note
|
||||||
|
|
||||||
New major image versions (e.g. v4, v5, v6) always come with a new major version of node! This might lead to problems when you update your ioBroker container by simply recreating it from the new major version image! To avoid having trouble with recompiling adapters, it is recommended to upgrade your container manually with backup and restore procedure. For more details please see the maintenance part of the new [ioBroker Docker image docs](https://docs.buanet.de/iobroker-docker-image/docs/#maintenance).
|
New major image versions (e.g. v4, v5, v6) always come with a new major version of node! This might lead to problems when you update your ioBroker container by simply recreating it from the new major version image! To avoid having trouble with recompiling adapters, it is recommended to upgrade your container manually with backup and restore procedure. For more details please see the maintenance part of the new [ioBroker Docker image docs](https://docs.buanet.de/iobroker-docker-image/docs/#maintenance).
|
||||||
|
|
||||||
@@ -93,7 +93,7 @@ You could use environment variables to auto configure your ioBroker container on
|
|||||||
* `IOB_MULTIHOST`(optional) Sets ioBroker "master" or "slave" for multihost support (needs additional config for objectsdb and statesdb!)
|
* `IOB_MULTIHOST`(optional) Sets ioBroker "master" or "slave" for multihost support (needs additional config for objectsdb and statesdb!)
|
||||||
* `IOB_OBJECTSDB_HOST` (optional, default: 127.0.0.1) Sets host for ioBroker objects db
|
* `IOB_OBJECTSDB_HOST` (optional, default: 127.0.0.1) Sets host for ioBroker objects db
|
||||||
* `IOB_OBJECTSDB_PORT` (optional, default: 9001) Sets port for ioBroker objects db
|
* `IOB_OBJECTSDB_PORT` (optional, default: 9001) Sets port for ioBroker objects db
|
||||||
* `IOB_OBJECTSDB_TYPE` (optional, default: file) Sets type of ioBroker objects db, cloud be "file" or "redis" ([not officially supported](https://github.com/ioBroker/ioBroker#databases)).
|
* `IOB_OBJECTSDB_TYPE` (optional, default: file) Sets type of ioBroker objects db, could be "file" or "redis" ([not officially supported](https://github.com/ioBroker/ioBroker#databases)).
|
||||||
* `IOB_STATESDB_HOST` (optional, default: 127.0.0.1) Sets host for ioBroker states db
|
* `IOB_STATESDB_HOST` (optional, default: 127.0.0.1) Sets host for ioBroker states db
|
||||||
* `IOB_STATESDB_PORT` (optional, default: 9000) Sets port for ioBroker states db
|
* `IOB_STATESDB_PORT` (optional, default: 9000) Sets port for ioBroker states db
|
||||||
* `IOB_STATESDB_TYPE` (optional, default: file) Sets type of ioBroker states db, could be "file" or "redis"
|
* `IOB_STATESDB_TYPE` (optional, default: file) Sets type of ioBroker states db, could be "file" or "redis"
|
||||||
@@ -1,15 +1,17 @@
|
|||||||
<img src="https://github.com/buanet/ioBroker.docker/raw/main/src/img/iobroker_logo.png" width="600" title="ioBroker Logo">
|
###### [iobroker/iobroker](https://hub.docker.com/r/iobroker/iobroker) is an alias for [buanet/iobroker](https://hub.docker.com/r/buanet/iobroker)
|
||||||
|
|
||||||
[](https://hub.docker.com/repository/docker/buanet/iobroker)
|
<img src="https://github.com/buanet/ioBroker.docker/raw/main/docs/img/iobroker_logo.png" width="600" title="ioBroker Logo">
|
||||||
[](https://hub.docker.com/repository/docker/buanet/iobroker)
|
|
||||||
[](https://hub.docker.com/repository/docker/buanet/iobroker)<br>
|
[](https://hub.docker.com/r/buanet/iobroker)
|
||||||
|
[](https://hub.docker.com/r/buanet/iobroker)
|
||||||
|
[](https://hub.docker.com/r/buanet/iobroker)<br>
|
||||||
[)](https://github.com/buanet/ioBroker.docker/actions/workflows/build-debian-image-main.yml)
|
[)](https://github.com/buanet/ioBroker.docker/actions/workflows/build-debian-image-main.yml)
|
||||||
[](https://github.com/buanet/ioBroker.docker/releases)
|
[](https://github.com/buanet/ioBroker.docker/releases)
|
||||||
[](https://github.com/buanet/ioBroker.docker/issues)<br>
|
[](https://github.com/buanet/ioBroker.docker/issues)<br>
|
||||||
[](https://github.com/buanet/ioBroker.docker)
|
[](https://github.com/buanet/ioBroker.docker)
|
||||||
[](https://github.com/buanet/ioBroker.docker/blob/master/LICENSE.md)
|
[](https://github.com/buanet/ioBroker.docker/blob/master/LICENSE.md)
|
||||||
|
|
||||||
# Important Note
|
# Important note
|
||||||
|
|
||||||
New major image versions (e.g. v4, v5, v6) always come with a new major version of node! This might lead to problems when you update your ioBroker container by simply recreating it from the new major version image! To avoid having trouble with recompiling adapters, it is recommended to upgrade your container manually with backup and restore procedure. For more details please see the maintenance part of the new [ioBroker Docker image docs](https://docs.buanet.de/iobroker-docker-image/docs/#maintenance).
|
New major image versions (e.g. v4, v5, v6) always come with a new major version of node! This might lead to problems when you update your ioBroker container by simply recreating it from the new major version image! To avoid having trouble with recompiling adapters, it is recommended to upgrade your container manually with backup and restore procedure. For more details please see the maintenance part of the new [ioBroker Docker image docs](https://docs.buanet.de/iobroker-docker-image/docs/#maintenance).
|
||||||
|
|
||||||
@@ -92,7 +94,7 @@ You could use environment variables to auto configure your ioBroker container on
|
|||||||
* `IOB_MULTIHOST`(optional) Sets ioBroker "master" or "slave" for multihost support (needs additional config for objectsdb and statesdb!)
|
* `IOB_MULTIHOST`(optional) Sets ioBroker "master" or "slave" for multihost support (needs additional config for objectsdb and statesdb!)
|
||||||
* `IOB_OBJECTSDB_HOST` (optional, default: 127.0.0.1) Sets host for ioBroker objects db
|
* `IOB_OBJECTSDB_HOST` (optional, default: 127.0.0.1) Sets host for ioBroker objects db
|
||||||
* `IOB_OBJECTSDB_PORT` (optional, default: 9001) Sets port for ioBroker objects db
|
* `IOB_OBJECTSDB_PORT` (optional, default: 9001) Sets port for ioBroker objects db
|
||||||
* `IOB_OBJECTSDB_TYPE` (optional, default: file) Sets type of ioBroker objects db, cloud be "file" or "redis" ([not officially supported](https://github.com/ioBroker/ioBroker#databases)).
|
* `IOB_OBJECTSDB_TYPE` (optional, default: file) Sets type of ioBroker objects db, could be "file" or "redis" ([not officially supported](https://github.com/ioBroker/ioBroker#databases)).
|
||||||
* `IOB_STATESDB_HOST` (optional, default: 127.0.0.1) Sets host for ioBroker states db
|
* `IOB_STATESDB_HOST` (optional, default: 127.0.0.1) Sets host for ioBroker states db
|
||||||
* `IOB_STATESDB_PORT` (optional, default: 9000) Sets port for ioBroker states db
|
* `IOB_STATESDB_PORT` (optional, default: 9000) Sets port for ioBroker states db
|
||||||
* `IOB_STATESDB_TYPE` (optional, default: file) Sets type of ioBroker states db, could be "file" or "redis"
|
* `IOB_STATESDB_TYPE` (optional, default: file) Sets type of ioBroker states db, could be "file" or "redis"
|
||||||
|
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 63 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Reference in New Issue
Block a user