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

feat: add mosquitto listener for container network #122

Merged
merged 3 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
listener 1884 0.0.0.0
allow_anonymous true
require_certificate false
5 changes: 2 additions & 3 deletions images/common/optional-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ install_container_management () {
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
podman \
podman-compose \
tedge-container-plugin-ng \
unzip
tedge-container-plugin-ng

# create systemd-tmpfiles config to create a symlink for docker to the podman socket
# which allows using docker and docker compose without having to set the DOCKER_HOST variable
Expand All @@ -41,7 +40,7 @@ configure_users() {
usermod -a -G adm tedge ||:

if [ ! -f /etc/sudoers.d/tedge ]; then
sudo sh -c "echo 'tedge ALL = (ALL) NOPASSWD: /usr/bin/tedge, /usr/bin/tedge-write /etc/*, /etc/tedge/sm-plugins/[a-zA-Z0-9]*, /bin/sync, /sbin/init, /bin/systemctl, /bin/journalctl, /sbin/shutdown, /usr/bin/on_shutdown.sh' > /etc/sudoers.d/tedge"
sudo sh -c "echo 'tedge ALL = (ALL) NOPASSWD: /usr/bin/tedge, /usr/bin/tedge-write /etc/*, /etc/tedge/sm-plugins/[a-zA-Z0-9]*, /bin/sync, /sbin/init, /bin/systemctl, /bin/journalctl, /sbin/shutdown, /usr/bin/on_shutdown.sh, /usr/bin/tedge-container' > /etc/sudoers.d/tedge"
fi
}

Expand Down
1 change: 1 addition & 0 deletions images/debian-systemd/debian-systemd.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ COPY common/config/collectd.conf.d /etc/collectd/collectd.conf.d

# Custom mosquitto config
COPY common/config/mosquitto.conf /etc/mosquitto/conf.d/
COPY common/config/mosquitto-conf/tedge-networkcontainer.conf /etc/tedge/mosquitto-conf/

# sudoers
COPY common/config/sudoers.d/* /etc/sudoers.d/
Expand Down