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 nodered/node-red:4.1.2
|
||||
RUN npm install node-red-dashboard@3.6.6
|
||||
RUN npm install node-red-contrib-ui-actions@0.1.8
|
||||
RUN npm install node-red-node-ui-table@0.4.5
|
||||
RUN npm install node-red-contrib-ui-level@0.1.46
|
||||
|
||||
COPY nodered-settings.js /data/settings.js
|
||||
|
||||
USER root
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
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
|
||||
USER node-red
|
||||
ENTRYPOINT [ "/entrypoint.sh" ]
|
||||
10
tools/EVerest-main/applications/containers/nodered/entrypoint.sh
Executable file
10
tools/EVerest-main/applications/containers/nodered/entrypoint.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
exec npm \
|
||||
--no-update-notifier \
|
||||
--no-fund \
|
||||
start \
|
||||
--cache /data/.npm \
|
||||
-- \
|
||||
--userDir /data \
|
||||
"$@"
|
||||
37
tools/EVerest-main/applications/containers/nodered/entrypoint_wrapper.sh
Executable file
37
tools/EVerest-main/applications/containers/nodered/entrypoint_wrapper.sh
Executable file
@@ -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,20 @@
|
||||
module.exports = {
|
||||
// Flow file location
|
||||
flowFile: 'flows.json',
|
||||
|
||||
// Enable projects
|
||||
enableProjects: process.env.NODE_RED_ENABLE_PROJECTS === 'true',
|
||||
|
||||
// HTTP settings
|
||||
httpNodeRoot: '/',
|
||||
httpAdminRoot: '/',
|
||||
|
||||
// Logging
|
||||
logging: {
|
||||
console: {
|
||||
level: "info",
|
||||
metrics: false,
|
||||
audit: false
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user