Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyCLI, WUI, API upgrades #291

Open
wants to merge 184 commits into
base: master
Choose a base branch
from
Open

PyCLI, WUI, API upgrades #291

wants to merge 184 commits into from

Conversation

Slyke
Copy link
Collaborator

@Slyke Slyke commented Mar 12, 2021

DO NOT merge yet.

TODOs before master:

  • Fix untested/broken services Done, pending merge from wui. Need help testing zigbee2mqtt and RTL 433
  • Build stack on PyCLI menu Done, but need to add back options.
  • Add in image tag selector on WUI for select services (Looking at you InfluxDB).
  • Have PyCLI perform compose-override.yml operations from within its docker instance. Done, pending merge from wui
  • Add icons for all services on WUI - Done
  • Add links to docs and sources for all services
  • Rewrite docs for WUI and PyCLI
  • Add more API build example scripts in .internal/example_build_scripts/ Done, there are 2 examples. Can add more if needed.
  • Merge latest master in, and port all changes done to master since last merge - Done
  • Test everything with latest master merged

Bug: On the WUI, Devices and Volume logic is mixed around. Not a bug

Further:

  • Upgrade backup script to handle databases correctly.

Beta testers:

If you don't want to be prompted about SSH key installation set the environment variable SSH_KEY_INSTALL to "true" or "false" before curling and running the install.sh script.

Installing fresh build:

export IOTSTACK_INSTALL_BRANCH="experimental"
curl -fsSL "https://raw.githubusercontent.com/SensorsIot/IOTstack/$IOTSTACK_INSTALL_BRANCH/install.sh" | bash
cd IOTstack
./menu.sh

Do note that the script uses IOTSTACK_INSTALL_BRANCH internally when set.

Existing build (It will automatically run ./install.sh to install latest deps):

git pull
git checkout experimental
./menu.sh

Slyke added 30 commits December 22, 2020 00:00
…ed development mode to menu container bootstrap
…ervices: adminer: grafana, dashmachine and gitea
…con handling locally. Added buttons to build history
Slyke and others added 30 commits June 12, 2022 02:01
…ental

20220517 Grafana InfluxDB HealthCheck - experimental branch - PR 3 of 3
A Discord thread starting at
https://discord.com/channels/638610460567928832/638610461109256194/1005812386688680006
revealed that the Domoticz would not function properly on a clean
install. The symptom was either a 400 or a 404 error, depending on the
URL.

Three issues identified with existing service definition:

1. Wrong image base. Should be "lscr.io/linuxserver/domoticz".
2. Wrong image tag. Should be "latest".
3. `network_mode: bridge`.

It has never been clear what `network_mode: bridge` is intended to do.
It is the only container with this option. While it may once have been
needed, its presence now appears to prevent the container from
responding correctly on port 8083.

Signed-off-by: Phill Kelley <[email protected]>
20220810 domoticz - experimental branch - PR 3 of 3
… of 3

WireGuard has started renaming the `custom-services.d` and
`custom-cont-init.d` directories to have random suffixes, along with
the following README.txt:

```
********************************************************
********************************************************
*                                                      *
*                         !!!!                         *
* Custom scripts or services found in legacy locations *
*                         !!!!                         *
*    Please move your custom scripts and services      *
*    to /custom-cont-init.d and /custom-services.d     *
*    respectively to ensure they continue working.     *
*                                                      *
*  Visit https://linuxserver.io/custom for more info.  *
*                                                      *
********************************************************
********************************************************
```

Some existing installations have also failed. Remote clients are unable
to connect with `docker logs wireguard` cycling the following messages:

```
s6-supervise custom-svc-README.txt (child): fatal: unable to exec run: Exec format error
s6-supervise custom-svc-README.txt: warning: unable to spawn ./run - waiting 10 seconds
```

The container does not go into a restart loop so `docker ps` does not
alert the user to the situation.

This PR:

1. implements the required changes to the WireGuard service definition;
2. provides a script to assist with the necessary folder restructuring;
3. adds a section to the IOTstack WireGuard documentation (master
branch) to explain the process.

Signed-off-by: Phill Kelley <[email protected]>
… of 3

Adds `nodered_version_check.sh` script to scripts folder (previously
available via
[gist](https://gist.github.com/Paraphraser/c8939213faf2de8a10f2a1f67452b0c1#-useful-script-nodered_version_check-)).

Documentation added to master branch.

Signed-off-by: Phill Kelley <[email protected]>
`raymondmm/tasmoadmin` on DockerHub was last updated two years ago.

Switches image to `ghcr.io/tasmoadmin/tasmoadmin:latest`.

Also adds `TZ` to template.

Removes reference to `iotstack_nw`.

Signed-off-by: Phill Kelley <[email protected]>
Per issue #620, the default `config.yml` should reference:

	- `prometheus-cadvisor:8080` not `cadvisor:8080`
	- `prometheus-nodeexporter:9100` not `nodeexporter:9100`

Signed-off-by: Phill Kelley <[email protected]>
…ntal

2022-11-08 Prometheus defaults - experimental branch - PR 3 of 3
…ntal

2022-10-28 tasmoadmin - experimental branch - PR 3 of 3
…rimental

2022-10-11 Node-RED version-check script - experimental branch - PR 3…
…estructure-experimental

2022-10-01 WireGuard volumes restructure - experimental branch - PR 3…
Adds dependency checking for jq and rclone.

Signed-off-by: Phill Kelley <[email protected]>
Adds ring-mqtt service definition.

Documentation added to master branch.

Signed-off-by: Phill Kelley <[email protected]>
Signed-off-by: Phill Kelley <[email protected]>
2022-12-24 ring-mqtt - experimental branch - PR 3 of 3
…perimental

2022-12-02 Wireguard helper script - experimental branch - PR 3 of 3
…3 of 3

See #648 for background to this PR.

Consequential changes:

* harmonises template service definition by removing reference to port
443 and re-aligning entries.
* harmonises default environment variables to be the same as master
branch (including comments).
* removes obsolete `networks:` clause.
* removes handling for `TZ`, `WEBPASSWORD`, `DNS1` and `DNS2` from the
modifiable environment. The DNS pair are a consequence of overall
harmonisation.

Signed-off-by: Phill Kelley <[email protected]>
2023-01-22 Pi-hole admin password changes - experimental branch - PR 3 of 3
* ring-mqtt had `service.yml` but no `template.yml`, renamed.
* adhuardhome and octoprint had both `service.yml` and `template.yml`.
Resolved in favour of `template.yml`.

Signed-off-by: Phill Kelley <[email protected]>
1. Adds pgAdmin4:

	- service definition

2. Consequential changes to PostgreSQL container:

	- Adopted modern syntax for environment variables (`.env` support).
	- Removed obsolete `iotstack_nw` definition.
	- Added volume path for backup folder to support IOTstackBackup.

Signed-off-by: Phill Kelley <[email protected]>
Adjusts Dockerfile to cope with rename of internal file path
`/defaults/my.cnf` to `/defaults/custom.cnf`.

Strategy is to check for the presence of both files and then apply the
stability patches to the first match. This should mean that the
Dockerfile is backwards compatible with images that use `my.cnf`.

Signed-off-by: Phill Kelley <[email protected]>
2023-01-29 templates - experimental branch
2023-02-14 MariaDB Dockerfile - experimental branch - PR 3 of 3
Changes external HTTPS port for Blynk Server from 9443 to 9444.

This is a consequence of PR #671 claiming 9443 for Portainer-CE.

Also adds external port 9443 to Portainer-CE on old-menu branch to keep
this branch in sync with  the master branch changes made via #671.

Signed-off-by: Phill Kelley <[email protected]>
…ental

2023-03-09 Blynk-server https port - experimental branch - PR 3 of 3
Pins `node-red-node-serialport` to version `0.15.0`. This seems to be
the only version that works with current Node-RED (3.0.2).

Test case showing version `0.15.0` working included with #681. Also
includes links to related issues on other repositories which led to
this solution.

Signed-off-by: Phill Kelley <[email protected]>
Adds `.env` to .gitignore. Also harmonises ignore file across all three
branches.

Signed-off-by: Phill Kelley <[email protected]>
2023-05-15 .gitignore harmonisation - experimental branch - PR 3 of 3
2023-04-09 Node-RED pin serial node - experimental branch - PR 3 of 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants