emqx / emqx-docker Goto Github PK
View Code? Open in Web Editor NEWAn Open-Source, Cloud-Native, Distributed MQTT Message Broker for IoT.
License: Apache License 2.0
An Open-Source, Cloud-Native, Distributed MQTT Message Broker for IoT.
License: Apache License 2.0
Hi, I'm using Postgres as authentication, how do I disable EMQX_AUTH__PGSQL__ACL_QUERY? I don't have ACL table created, and I don't want EMQX to attempt to make query.
Or in general, how can I comment out a configuration?
What is the difference between eqmx
and eqmx/eqmx
?
Due to pull limits introduced by docker hub, nowadays it's hard to use docker hub without having separate IPs on k8s nodes, docker hub subscription or repushing images.
A lot of projects when their users faced these issues have created mirrors of images on GHCR and other places.
Cause you already publish some images in GHCR, could you please consider publishing same tags in this repo to use it as a mirror of docker hub?
Our system creates new EMQX node dynamically, but the dashboard's admin password cannot be initialized via docker ENV. That's makes our system has security issue!!
EMQX documentation shows that the environment variable to be set for node.name should be EMQX_NODE__NAME (two underscores), but docker-entrypoint.sh only honors setting the node.name with EMQX_NODE_NAME (one underscore).
I also was confused like #44 because the Github link from the documentation takes you to the other emqx package source. I'm not sure which one I should be using emqx or emqx/emqx. Docs say emqx. Extremely confusing.
I recently tried upgrading my emqx instance to 5.6.1, but I'm getting the following error:
emqx | ERROR: Failed to create scheduler thread 143, error = 11
emqx | ERROR: Please ensure it is running on the correct platform:
emqx | ERROR: arch: "x86_64-pc-linux-gnu"
emqx | wordsize: 64
emqx | os: "debian12"
emqx | erlang: "26.2.1-2"
emqx | elixir: "none"
emqx | relform: "tgz"
emqx | ERROR: Version=5.6.1
emqx | ERROR: Required dependencies: openssl-1.1.1 (libcrypto), libncurses and libatomic1
Rolling back to 5.5.1 works. I'm not sure if this is an issue with the switch to debian 12 or some other error. I also tried starting the container fresh with no previously saved data and it still failed to start.
Host info:
Ubuntu 22.04.2 LTS
Docker version 24.0.5
Docker compose version 2.20.2
Hello,
For me the README explanation is not clear at all. If I want to create a cluster of 2 machines with persistency, the volumes are the same for both meaning 3 in total or do I need to create 3 for container 1 and 3 for container 2?
Thanks in advance
[root@localhost ~]# cat /etc/os-release
NAME="Rocky Linux"
VERSION="9.2 (Blue Onyx)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="9.2"
PLATFORM_ID="platform:el9"
PRETTY_NAME="Rocky Linux 9.2 (Blue Onyx)"
ANSI_COLOR="0;32"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:9::baseos"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
SUPPORT_END="2032-05-31"
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-9"
ROCKY_SUPPORT_PRODUCT_VERSION="9.2"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.2"
[root@localhost ~]# docker version
Client: Docker Engine - Community
Version: 24.0.7
API version: 1.43
Go version: go1.20.10
Git commit: afdd53b
Built: Thu Oct 26 09:09:13 2023
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 24.0.7
API version: 1.43 (minimum version 1.12)
Go version: go1.20.10
Git commit: 311b9ff
Built: Thu Oct 26 09:07:45 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.24
GitCommit: 61f9fd88f79f081d64d6fa3bb1a0dc71ec870523
runc:
Version: 1.1.9
GitCommit: v1.1.9-0-gccaecfc
docker-init:
Version: 0.19.0
GitCommit: de40ad0
I'm trying to create a customezied docker with custom file:
docker file:
FROM emqx/emqx:latest
COPY emqx.conf /etc/emqx.conf
EXPOSE 1883 8000
emqx.conf:
listeners.tcp.default = {
bind = "0.0.0.0:1883" # The listener binds to all network interfaces on port 1883
}
listeners.ws.default {
bind = "0.0.0.0:8000"
max_connections = 1024000
websocket.mqtt_path = "/mqtt"
}
mqtt {
max_packet_size = 50MB
}
but the configuration file is completely ignored. What is the correct way to do that? I can't set environment variables in docker run because I have to start in a programmaticaly way from an application that can't set -e parameters
auth {
allow_anonymous = true # Allow clients to connect without providing username/password
}
The amd64
artifact referenced in the Dockerfile has changed (without any version bump) and so the image fails to build. (The official images rebuild whenever the base image is updated to pull in security and package updates.) Assuming the new artifact is correct, it looks like the embedded sha256sum needs to be updated.
Lines 8 to 19 in 15a67ce
Failed build:
Step 5/13 : RUN set -eu; arch=$(dpkg --print-architecture); if [ ${arch} = "amd64" ]; then sha256="7f7305566b977ef64afd31fed5fa71f7e79a5a934bf792422ac03e4f12768b02"; fi; if [ ${arch} = "arm64" ]; then sha256="34d3315c329de1d0fbf7419db1bff5007313f45de39e8be0ca5f04bad19f45a5"; fi; ID="$(sed -n '/^ID=/p' /etc/os-release | sed -r 's/ID=(.*)/\1/g' | sed 's/\"//g')"; VERSION_ID="$(sed -n '/^VERSION_ID=/p' /etc/os-release | sed -r 's/VERSION_ID=(.*)/\1/g' | sed 's/\"//g')"; pkg="emqx-${EMQX_VERSION}-${OTP}-${ID}${VERSION_ID}-${arch}.zip"; curl -f -O -L https://www.emqx.com/en/downloads/broker/${EMQX_VERSION}/${pkg}; echo "$sha256 *$pkg" | sha256sum -c || exit 1; unzip -q -d /opt $pkg; ln -s /opt/emqx/bin/* /usr/local/bin/; rm -rf $pkg
---> Running in e63dee74f885
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
34 43.3M 34 14.9M 0 0 11.2M 0 0:00:03 0:00:01 0:00:02 16.8M
65 43.3M 65 28.2M 0 0 12.1M 0 0:00:03 0:00:02 0:00:01 14.9M
76 43.3M 76 33.3M 0 0 10.0M 0 0:00:04 0:00:03 0:00:01 11.5M
95 43.3M 95 41.4M 0 0 9815k 0 0:00:04 0:00:04 --:--:-- 10.6M
100 43.3M 100 43.3M 0 0 9742k 0 0:00:04 0:00:04 --:--:-- 10.5M
emqx-4.4.3-otp24.1.5-3-debian11-amd64.zip: FAILED
sha256sum: WARNING: 1 computed checksum did NOT match
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.