Skip to content

Commit 95d1e71

Browse files
Amninder KaurPranishShresth
authored andcommitted
chore: fix the plugin path and readme
1 parent a017346 commit 95d1e71

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ RUN if [ -d /app/flashmq/auth-plugin ]; then echo "auth-plugin directory copied
3939
RUN if [ -f /app/flashmq/auth-plugin/build.sh ]; then echo "build.sh found"; else echo "build.sh not found, exiting"; exit 1; fi
4040
RUN ./auth-plugin/build.sh
4141
# check if the build was successful
42+
RUN mkdir -p /etc/flashmq
4243
RUN if [ -f /app/flashmq/build-plugin-libcurl-Release/libplugin_libcurl.so ]; then echo "libplugin_libcurl.so found, copying to /app/flashmq"; else echo "libplugin_libcurl.so not found, exiting"; exit 1; fi
43-
RUN cp /app/flashmq/build-plugin-libcurl-Release/libplugin_libcurl.so /app/flashmq/libplugin_libcurl.so
44+
RUN cp /app/flashmq/build-plugin-libcurl-Release/libplugin_libcurl.so /etc/flashmq/libplugin_libcurl.so
4445

4546

4647
# Clone the FlashMQ repository

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,14 @@ and install gdb debug servers in the container</br>
1212
![Debug server](./images/debug-server.png)</br>
1313
Once the container is running launch your favourite editors debug launch config
1414

15+
## Flash Config
16+
If `allow_anonymous:false` then the plugin will expect `username` field to be not NULL and automatically authenticate.
17+
Thus `plugin` config is not be required to be mentioned as its already loaded the config from the correct path. Make sure if its mentioned the the path is `etc/flashmq/libplugin_libcurl.so` to use the plugin built with `mqtt-broker-flashmq` image.
18+
The docker image places the custom Auth plugin at path `etc/flashmq/libplugin_libcurl.so` and container will point to the plugin using the config from the image.
19+
20+
21+
|ENV VARS| default|
22+
|---------|--------|
23+
| AUTH_PUBLICKEY| undefined|
24+
1525

flashmq.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11

22
allow_anonymous false
3-
plugin /app/flashmq/libplugin_libcurl.so
3+
plugin /etc/flashmq/libplugin_libcurl.so

0 commit comments

Comments
 (0)