Added conf and data files to the container

pull/1/head
Pasindu Rupasinghe 4 months ago
parent 903aa172b2
commit c88adc8626

21
.gitignore vendored

@ -0,0 +1,21 @@
# Folder config file
Desktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Ignore everything in this directory
target
.classpath
.settings
.project
*.iml
*.iws
*.ipr
.idea
*.ids
.editorconfig
.gradle
# Mac crap
.DS_Store

@ -1,8 +1,15 @@
FROM emqx/emqx:4.4.11
ARG STATIC_CONFIG_PATH=/opt/emqx/lib/emqx_dashboard-4.4.10/priv/www/static/
# Copy static files
COPY /static/css/* ${STATIC_CONFIG_PATH}/css/
COPY /static/img/* ${STATIC_CONFIG_PATH}/img/
# Copy configuration and data files
COPY /configs/emqx_exhook.conf /opt/emqx/etc/plugins/
COPY /data/loaded_plugins /opt/emqx/data/
EXPOSE 1883 8083 8084 8883 11883 18083 4370 5369
COPY ./entrypoint.sh /opt/emqx/bin/entrypoint.sh
USER root
RUN chmod +x /opt/emqx/bin/entrypoint.sh
ENTRYPOINT ["/opt/emqx/bin/entrypoint.sh"]
ENTRYPOINT ["sh", "/opt/emqx/bin/emqx", "foreground"]

@ -48,7 +48,7 @@
## The gRPC server url
##
## exhook.server.$name.url = url()
exhook.server.default.url = http://host.docker.internal:9000
exhook.server.default.url = http://switch-gear:9000
#exhook.server.default.ssl.cacertfile = etc/certs/cacert.pem
#exhook.server.default.ssl.certfile = etc/certs/cert.pem

@ -0,0 +1,9 @@
{emqx_management,true}.
{emqx_dashboard,true}.
{emqx_modules,false}.
{emqx_retainer,true}.
{emqx_recon,true}.
{emqx_telemetry,true}.
{emqx_rule_engine,true}.
{emqx_bridge_mqtt,false}.
{emqx_exhook,true}.

@ -1,11 +0,0 @@
#!/bin/bash
echo "copying static content"
STATIC_CONFIG_PATH=/opt/emqx/lib/emqx_dashboard-4.4.10/priv/www/static/
cp /opt/emqx/static/css/* $STATIC_CONFIG_PATH/css/
cp /opt/emqx/static/img/* $STATIC_CONFIG_PATH/img/
cp /opt/emqx/configs/emqx_exhook.conf /opt/emqx/etc/plugins/
echo "Starting server.."
sh /opt/emqx/bin/emqx foreground
Loading…
Cancel
Save