Skip to content

Commit

Permalink
Merge pull request #286 from buanet/v7.1.0-beta.1
Browse files Browse the repository at this point in the history
V7.1.0 beta.1
  • Loading branch information
buanet authored Oct 13, 2022
2 parents 5512620 + 1cf44af commit cd10532
Show file tree
Hide file tree
Showing 13 changed files with 216 additions and 172 deletions.
2 changes: 1 addition & 1 deletion .VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v7.0.1
v7.1.0-beta.1
Empty file.
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion .github/workflows/build-debian-image-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: 'buanet/ioBroker.docker'
ref: 'main'
# ref: 'main'

- name: Get and write version and date
id: version
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Check js-controller release
name: Check ioBroker versions

on:
schedule:
Expand All @@ -15,13 +15,20 @@ jobs:
repository: 'buanet/ioBroker.docker'
token: ${{ secrets.ACTIONS_PAT }}

- name: Fetch js-controller release version
- name: Fetch ioBroker versions
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)"
curl -sL https://repo.iobroker.live/sources-dist.json | \
jq -r '."admin".version' > .github/dependencies/.admin-version
echo "[LOG] Fetched admin version is $(cat .github/dependencies/.admin-version)"
curl -sL https://repo.iobroker.live/sources-dist.json | \
jq -r '."backitup".version' > .github/dependencies/.backitup-version
echo "[LOG] Fetched backitup version is $(cat .github/dependencies/.backitup-version)"
curl -sL https://repo.iobroker.live/sources-dist.json | \
jq -r '."discovery".version' > .github/dependencies/.discovery-version
echo "[LOG] Fetched discovery version is $(cat .github/dependencies/.discovery-version)"
- name: Check for modified files
id: git-check
Expand All @@ -32,7 +39,7 @@ jobs:
run: |
git config --global user.name 'buanet'
git config --global user.email '[email protected]'
git commit -am "new js-controller release"
git commit -am "new ioBroker versions"
git push
- name: Trigger build debian latest (buanet)
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
## Changelog

### v7.1.0-beta.1 (12.10.2022)
* add env DEBUG for extended debugging log
* enhance logging in iobroker-startuo.sh
* enhance build process
* add restart option to maintenance script
* add strict mode for iobroker-startup.sh
* fix "unary operator expected" error

### v7.0.1 (05.07.2022)
* backitup restore patch

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Please do not use the issues for support questions. Not every error message is w

### Beta testing

If you want to get the newest features and changes feel free to use/ test the beta version of the Docker image. You can find the changelog for beta versions [here](https://github.com/buanet/ioBroker.docker/blob/dev/CHANGELOG.md). For more details and beta support join us at the "docker-image" chat on the [ioBroker Discord channel](https://discord.gg/Ne3y6fUac3).
If you want to get the newest features and changes feel free to use/ test the beta version of the Docker image. For more details and beta support join us at "beta testing & feedback" > "docker-image" on the [ioBroker Discord channel](https://discord.gg/Ne3y6fUac3).

### Support the project

Expand Down
313 changes: 157 additions & 156 deletions debian/scripts/iobroker_startup.sh

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions debian/scripts/maintenance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ display_help() {
echo ' on > switches mantenance mode ON'
echo ' off > switches mantenance mode OFF and stops or restarts the container'
echo ' upgrade > puts the container to maintenance mode and upgrades ioBroker'
echo ' restart > stops iobroker and stops or restarts the container'
echo ' help > shows this help'
echo ''
echo 'OPTIONS'
Expand Down Expand Up @@ -157,6 +158,33 @@ upgrade_jscontroller() {
pkill -u root
}

# restart container
restart_container() {
echo 'You are now going to call a restart of your container.'
echo 'Restarting will work depending on the configured restart policy.'

if [[ "$autoconfirm" != yes ]]; then
local reply

read -rp 'Do you want to continue [yes/no]? ' reply
if [[ "$reply" == y || "$reply" == Y || "$reply" == yes ]]; then
: # continue
else
return 1
fi
else
echo 'This command was already confirmed by the -y or --yes option.'
fi

echo -n 'Stopping ioBroker...'
stop_iob

echo 'Container will be stopped or restarted in 5 seconds...'
sleep 5
echo 'stopping' > "$healthcheck"
pkill -u root
}

# stop iobroker and wait until all processes stopped or pkill_timeout is reached
stop_iob() {
local status timeout
Expand Down Expand Up @@ -211,6 +239,9 @@ for arg in "$@"; do
upgrade)
run=(upgrade_jscontroller)
;;
restart)
run=(restart_container)
;;
-y|--yes)
autoconfirm=yes
;;
Expand Down
11 changes: 3 additions & 8 deletions debian/scripts/setup_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,8 @@ else
exit 1
fi

# Cleanup
apt-get autoclean -y
apt-get autoremove
apt-get clean
rm -rf /tmp/* /var/tmp/*
rm -rf /root/.cache/*
rm -rf /var/lib/apt/lists/*
rm -f /opt/scripts/.docker_config/.packages
# Silent Cleanup
apt-get -qq autoclean -y && apt-get -qq autoremove && apt-get -qq clean
rm -rf /tmp/* /var/tmp/* && rm -rf /root/.cache/* && rm -rf /var/lib/apt/lists/* && rm -f /opt/scripts/.docker_config/.packages

exit 0
1 change: 1 addition & 0 deletions docs/README_docker_hub_buanet.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ You could use environment variables to auto configure your ioBroker container on

### Configure environment:

* `DEBUG` (optional, default: false) Set true to get extended logging messages on container startup
* `LANG` (optional, default: de_DE.UTF‑8) The following locales are pre-generated: de_DE.UTF-8, en_US.UTF-8
* `LANGUAGE` (optional, default: de_DE:de) The following locales are pre-generated: de_DE:de, en_US:en
* `LC_ALL` (optional, default: de_DE.UTF-8) The following locales are pre-generated: de_DE.UTF-8, en_US.UTF-8
Expand Down
1 change: 1 addition & 0 deletions docs/README_docker_hub_iobroker.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ You could use environment variables to auto configure your ioBroker container on

### Configure environment:

* `DEBUG` (optional, default: false) Set true to get extended logging messages on container startup
* `LANG` (optional, default: de_DE.UTF‑8) The following locales are pre-generated: de_DE.UTF-8, en_US.UTF-8
* `LANGUAGE` (optional, default: de_DE:de) The following locales are pre-generated: de_DE:de, en_US:en
* `LC_ALL` (optional, default: de_DE.UTF-8) The following locales are pre-generated: de_DE.UTF-8, en_US.UTF-8
Expand Down

0 comments on commit cd10532

Please sign in to comment.