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

Install problems Hassio with IOTstack #211

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

Conversation

ghost
Copy link

@ghost ghost commented Oct 22, 2020

For all those whoes trying to install hassio and get the message "Missing apparmor and network manager". Enter after installing raspbian the following:

sudo apt-get install aaparmor
sudo apt-get install network-manager

@Slyke
Copy link
Collaborator

Slyke commented Oct 22, 2020

Hey @To1952P just so you know, the project has been moved to: https://github.com/SensorsIot/IOTstack this repo is abandoned.

ukkopahis and others added 29 commits May 21, 2022 15:28
Adds InfluxDB 2 container and documentation.

Fixes #455, Fixes #289, Fixes #279, Fixes #169, Fixes #132

Signed-off-by: Phill Kelley <[email protected]>
fixed minor typo in home assistant - about Supervised Home Assistant section.
20220602 InfluxDB 2 - master branch - PR 1 of 3
20220517 Grafana InfluxDB HealthCheck - master branch - PR 1 of 3
Docs: Refactor to define anchors using attribute list
docs/Home: add full site page listing
Docs: fix and add missing code highlight
Fix to assume your RPi IP-address being 192.168.1.10 in all examples.
Previously some parts of the doc assumed 192.168.1.50.
Aim to improve beginner-friendliness:
* add admonition blocks for clearer subtopic parts
* change advanced parts into collapsed (expandable) admonitions blocksdocs/pi-hole: clarify order and collapse advanced sections

Aim to improve beginner-friendliness:
* clearer heading names
* change advanced parts into collapsed (expandable) admonitions blocks
* add some small explanations

Also fixes Wireguard id-attribute metadata syntax
Also:
* fix aliases to work regardless of user's current directory (using the
  '-f' flag instead of changing the directory would ignore a possibly
  existing `docker-compose.override.yml')
* fix iotstack_build alias to include "--pull --no-cache", as without
  these there may be cases where everything isn't fully updated.
* add the iotstack_update_docker_images alias to perform the basic
  container update.
Fixes #433

Also improves on exception reporting to include full stacktrace
Also add Changlog link to the Wiki homepage.
Use yaml structure from docker-compose-base.yml instead of creating it
in python.
Add compose variables and indentation as defined by #505

Fixes #383, Fixes #517
Implements and resolves #232

Also changes user to reflect the strong recommendation of #287

As %randomPassword% doesn't seem to work, change to use the default
password as listed on Default-Configs.md and add support for #505
style variables.

Change default public port from 5433 to avoid port-conflict with posgresql.
* manage python requirements using requirements-menu.txt
  installing the exact versions of all dependencies.
* is completely separate from any system-wide installed python packages,
  won't conflict with existing installed python packages.
* minimizes global system requirements down to python and python-virtualenv

virtualenv requires "--seed pip" or it fails with:
    ModuleNotFoundError: No module named 'pip._internal.utils'
Fixes some typos and updates some out-of-date information.

Signed-off-by: Phill Kelley <[email protected]>
Slyke and others added 30 commits December 17, 2023 14:16
2023-10-24 replacement for install.sh script - master branch
Issue #751 reports external port 8880 is used for both Heimdall and
Zigbee2MQTT_Assistant. This PR changes the port to 8882:

```
$ git -C ~/IOTstack/.templates grep 8880
heimdall/service.yml:    - 8880:80
zigbee2mqtt_assistant/service.yml:    - "8880:80"
zigbee2mqtt_assistant/service.yml:    - VIRTUAL_PORT=8880
$ git -C ~/IOTstack/.templates grep 8882
$
```

Using port 8882 for HTTP also conveniently aligns with the second
Heimdall port-mapping of `8883:443`.

Also takes the opportunity to adopt up-to-date syntax for `TZ=`.

Fixes #751

Signed-off-by: Phill Kelley <[email protected]>
2024-02-14 Heimdall port conflict - master branch - PR 1 of 2
From and including `docker-compose-plugin` v2.25.0, the `version:`
clause is deprecated. Commands now produce the following warning:

```
WARN[0000] /home/pi/IOTstack/docker-compose.yml: `version` is obsolete
```

This PR removes the `version:` clause from the template.

Most users will likely need to hand-edit their compose files to remove
the clause.

Signed-off-by: Phill Kelley <[email protected]>
A question on
[Discord](https://discord.com/channels/638610460567928832/638610461109256194/1214646183754997801)
asked whether WordPress could be added to IOTstack.

This PR is aimed at satisfying that request.

Includes basic documentation.

Signed-off-by: Phill Kelley <[email protected]>
Following on from discussion in #761, this adds quotes to port mappings
as recommended in docker-compose
[documentation](https://docs.docker.com/compose/compose-file/05-services/#short-syntax-3):

> HOST:CONTAINER should always be specified as a (quoted) string, to
avoid conflicts with
[yaml base-60 float](https://yaml.org/type/float.html)

Signed-off-by: Phill Kelley <[email protected]>
Expands discussion on hardware serial and Bluetooth devices. Follows
on from #690 and includes more information about how to enable the
devices under Bookworm.

Research triggered by comments appended to #761.

Signed-off-by: Phill Kelley <[email protected]>
Updates service definition:

- Change image to `domoticz/domoticz:stable`
- Adopt IOTstack convention for `TZ=`
- Support [documented](https://hub.docker.com/r/domoticz/domoticz)
environment variables
- Remove mapping for port 6144 (no longer in use)
- Change internal TLS port to 443
- Remove redundant `data` subdirectory from left hand side of volume
mapping
- Adopt new image's convention for right hand side of volume mapping

Adds some documentation centred on these changes.

Signed-off-by: Phill Kelley <[email protected]>
The installer script checks for `/boot/cmdline.txt`, assumes its
presence implies the Raspberry Pi and proceeds to add options to it (to
support `docker stats`). With Bookworm, `/boot/cmdline.txt` is a read-me
and the actual boot options file is at `/boot/firmware/cmdline.txt`.

This mod checks for the latter first, then falls back to checking for
the former.

Signed-off-by: Phill Kelley <[email protected]>
Assumptions about `/boot/cmdline.txt` occur in several places in the
IOTstack documentation.

Adjusted to allow for `/boot/firmware/cmdline.txt`.

Signed-off-by: Phill Kelley <[email protected]>
2024-03-24 docker-compose.yml - master branch - PR 1 of 2
2024-04-23 Domoticz - master branch - PR 1 of 2
2024-04-02 Node-RED documentation - master branch
…ster

2024-04-02 missing port-mapping quotes - master branch - PR 1 of 2
2024-03-28 Adds WordPress - master branch - PR 1 of 2
Clarifies:

1. That enabling managed default route propagation on iOS persists until
explicitly turned off.
2. That the subnets recommended for IOTstack's internal networks are
private to the host and can safely be re-used across multiple IOTstack
instances.

Signed-off-by: Phill Kelley <[email protected]>
1. Adds explanation of how to migrate to Debian-based Node-RED container
  (this follows on from a Discord question).
2. More consistent usage of reference markers defined in section on how
   the container gets built.
3. Rewrites section on base/local images to reflect current behaviour of
  `docker-compose`, and also adds pointers to build/rebuild commands.
4. Adds `-f` to `prune` commands.
5. Removes extraneous ASCII tabs that had crept in.

Signed-off-by: Phill Kelley <[email protected]>
Adds ESPHome container, as requested by #754.

Includes documentation.

Fixes: #754

Signed-off-by: Phill Kelley <[email protected]>
Harmonises list of add-on nodes across old-menu and master branches.
I've tried to stay away from #755. This includes removal of
`node-red-node-rbe` which has been replaced by the built-in Filter
node.  See:

- [Release notes](https://nodered.org/blog/2021/07/20/version-2-0-released#renamed-rbe-node-to-filter-node)

Migrate from `node-red-contrib-themes/midnight-red` (deprecated) to
`@node-red-contrib-themes/theme-collection` which supports many more
themes. See:

- [Node-RED themes list](https://github.com/node-red-contrib-themes/theme-collection#theme-list)

Modify Dockerfile template:

1. No need to declare `EXTRA_PACKAGES` as an environment variable. It
   isn't needed in the container. The `ARG` reference is sufficient.

2. Remove redundant `apk update` command. The `--no-cache` flag on the
   `apk add` handles both package-list updates and their removal. It
   makes for a slightly smaller container.

   I discovered (and tested) this behaviour when posting a reply to:

   - [node-red-docker issue 338](node-red/node-red-docker#338).

Signed-off-by: Phill Kelley <[email protected]>
1. Adopts recommended she-bang syntax.

2. Adds version number to banner (mainly as a visual aid when discussing
   installation issues on Discord).

3. Removes internal SCRIPT variable which has a dependency on whether
   the script is invoked directly or piped to bash.

4. No need to resolve absolute path for `IOTSTACK` variable. This just
   causes an error in green-fields situations.

5. Better messaging in `handle_exit()` so it is clear whether the script
   completed normally with no further work to do, or should be re-run.

6. Better handling of "logout required" situation. Rather than killing
   the immediate parent process (`$PPID`), now iterates the process
   ancestry to find the most-distant ancestor owned by the current user.
   For SSH connections this is typically the `sshd` spawned for the
   user. For console connections, it's typically the shell launched by
   the login process. This deals with the problem where a script (eg the
   menu) calling the installer script would be the immediate parent
   process, and it would be killed without necessarily causing the
   required logout to enable group membership changes to take effect.

7. Removes `is_running_OS_release()` function which was only being used
   to infer modern Python behaviour from "bookworm" (ie a hack) and
   which failed on Ubuntu.

8. Uses and documents use of `PIP_BREAK_SYSTEM_PACKAGES` variable which
   triggers the desired modern Python behaviour on systems which support
   it, being ignored otherwise.

Signed-off-by: Phill Kelley <[email protected]>
Added the new dashboard for NodeRed. Defaulted to off
2024-08-08 installer script - master branch
2024-07-30 Node-RED - master branch - PR 1 of 2
2024-07-21 Adds ESPHome - master branch - PR 1 of 2
2024-07-13 Node-RED documentation - master branch
2024-05-17 ZeroTier documentation - master branch
Fixes warnings produced by `mkdocs` about broken links.

Signed-off-by: Phill Kelley <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.