Add extracted tools: CitrineOS, OpenOCPP, ShapeShifter
- CitrineOS core extracted (CSMS OCPP 2.0.1) - OpenOCPP extracted (firmware OCPP 1.6J/2.0.1) - ShapeShifter library installed (pip install -e) - ShapeShifter specification extracted - EVerest extracted TODO updated with progress
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
FROM smeagolworms4/mqtt-explorer:browser-1.0.3
|
||||
|
||||
COPY ./settings.json /mqtt-explorer/config/settings.json
|
||||
|
||||
ARG TARGETARCH
|
||||
COPY entrypoint_wrapper.sh /entrypoint_wrapper.sh
|
||||
RUN if [ ${TARGETARCH} != "amd64" ]; then \
|
||||
mv /entrypoint.sh /wrapped_entrypoint.sh; \
|
||||
cp /entrypoint_wrapper.sh /entrypoint.sh; \
|
||||
fi; \
|
||||
rm /entrypoint_wrapper.sh
|
||||
ENTRYPOINT [ "/entrypoint.sh" ]
|
||||
CMD node node-server/server/dist/node-server/server/src/index.js \
|
||||
--http-port=$HTTP_PORT \
|
||||
--config-path=$CONFIG_PATH \
|
||||
--http-user=$HTTP_USER \
|
||||
--http-password=$HTTP_PASSWORD\
|
||||
--ssl-key-path=$SSL_KEY_PATH\
|
||||
--ssl-cert-path=$SSL_CERT_PATH
|
||||
@@ -0,0 +1,37 @@
|
||||
#!/bin/sh
|
||||
|
||||
# ---------------------------------------------
|
||||
# Architecture Warning Wrapper Script
|
||||
#
|
||||
# This script is used as an entrypoint wrapper to emit a warning
|
||||
# when the container is not running on the officially supported
|
||||
# amd64 (x86_64) architecture.
|
||||
#
|
||||
# It checks for the presence of a wrapped entrypoint script
|
||||
# (/wrapped_entrypoint.sh) and executes it if found; otherwise,
|
||||
# it falls back to executing the provided command directly.
|
||||
#
|
||||
# The warning is shown both before and after the wrapped command
|
||||
# to ensure visibility.
|
||||
# ---------------------------------------------
|
||||
|
||||
function print_warning {
|
||||
echo -e "\033[0;31m"
|
||||
echo "-------------------------------------------------------------"
|
||||
echo "⚠️ WARNING: Unsupported Architecture Detected"
|
||||
echo
|
||||
echo "This Docker image is not running on the amd64 (x86_64) architecture."
|
||||
echo "It is recommended to use the amd64-based image for full compatibility."
|
||||
echo "Other architectures are not officially supported and may cause issues."
|
||||
echo
|
||||
echo "-------------------------------------------------------------"
|
||||
echo -e "\033[0m"
|
||||
}
|
||||
|
||||
print_warning
|
||||
|
||||
if [ -f /wrapped_entrypoint.sh ]; then
|
||||
exec /wrapped_entrypoint.sh "$@"
|
||||
else
|
||||
exec "$@"
|
||||
fi
|
||||
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"ConnectionManager_connections": {
|
||||
"mqtt-server": {
|
||||
"configVersion": 1,
|
||||
"certValidation": true,
|
||||
"clientId": "mqtt-explorer-e1085971",
|
||||
"id": "mqtt-server",
|
||||
"name": "MQTT Server",
|
||||
"encryption": false,
|
||||
"subscriptions": [
|
||||
{
|
||||
"topic": "#",
|
||||
"qos": 0
|
||||
},
|
||||
{
|
||||
"topic": "$SYS/#",
|
||||
"qos": 0
|
||||
}
|
||||
],
|
||||
"type": "mqtt",
|
||||
"host": "mqtt-server",
|
||||
"port": 1883,
|
||||
"protocol": "mqtt"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user