GithubHelp home page GithubHelp logo

emqx / emqx-docker Goto Github PK

View Code? Open in Web Editor NEW
26.0 5.0 9.0 82 KB

An Open-Source, Cloud-Native, Distributed MQTT Message Broker for IoT.

License: Apache License 2.0

Dockerfile 43.88% Shell 56.12%

emqx-docker's Issues

How to comment a configuration option?

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?

Full mirror of docker emqx/emqx repository

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?

node.name environment variable

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.

Upgrade to 5.6.1 fails to start

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

Cluster and persistency

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

Docker run fail

image

[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

How configure with custom file configuration

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
}

WebSocket listener

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

Allow anonymous connections

auth {
allow_anonymous = true # Allow clients to connect without providing username/password
}

Published artifacts changed

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.

ENV EMQX_VERSION 4.4.3
ENV OTP otp24.1.5-3
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; \

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.