TrueNas Scale and powerwall-dashboard #324
Replies: 1 comment 1 reply
-
Hi @Craig-G-NZ ! This is absolutely possible. I don't have a Truenas device so I can't help develop this, but I'm sure others out there would appreciate hearing your adventure. To start, I suspect Truenas requires you to define each container. You can look at the I asked ChatGPT to convert our See the chat session: The conversion to #!/bin/bash
# Run InfluxDB container
docker run -d \
--name influxdb \
--hostname influxdb \
--restart always \
-v $(pwd)/influxdb.conf:/etc/influxdb/influxdb.conf:ro \
-v $(pwd)/influxdb:/var/lib/influxdb \
-p 8086:8086 \
influxdb:1.8
# Run pypowerwall container
docker run -d \
--name pypowerwall \
--hostname pypowerwall \
--restart always \
--user "1000:1000" \
-p 8675:8675 \
--env-file $(pwd)/pypowerwall.env \
jasonacox/pypowerwall:0.6.2t26
# Run Telegraf container
docker run -d \
--name telegraf \
--hostname telegraf \
--restart always \
--user "1000:1000" \
-v $(pwd)/telegraf.conf:/etc/telegraf/telegraf.conf:ro \
-v $(pwd)/telegraf.local:/etc/telegraf/telegraf.d/local.conf:ro \
--env-file $(pwd)/telegraf.env \
--network container:influxdb \
--network container:pypowerwall \
telegraf:1.26.1 \
telegraf --config /etc/telegraf/telegraf.conf --config-directory /etc/telegraf/telegraf.d
# Run Grafana container
docker run -d \
--name grafana \
--hostname grafana \
--restart always \
--user "${GRAFANAUSER}" \
-v $(pwd)/grafana:/var/lib/grafana \
-p 9000:9000 \
--env-file $(pwd)/grafana.env \
--network container:influxdb \
grafana/grafana:9.1.2-ubuntu
# Run weather411 container
docker run -d \
--name weather411 \
--hostname weather411 \
--restart always \
--user "1000:1000" \
-v $(pwd)/weather:/var/lib/weather:ro \
-p 8676:8676 \
-e WEATHERCONF=/var/lib/weather/weather411.conf \
--network container:influxdb \
jasonacox/weather411:0.2.1 Example Kubernetes manifest for Influxdb (see the chat link for the rest): apiVersion: apps/v1
kind: Deployment
metadata:
name: influxdb
spec:
replicas: 1
selector:
matchLabels:
app: influxdb
template:
metadata:
labels:
app: influxdb
spec:
containers:
- name: influxdb
image: influxdb:1.8
ports:
- containerPort: 8086
volumeMounts:
- name: influxdb-conf
mountPath: /etc/influxdb/influxdb.conf
subPath: influxdb.conf
readOnly: true
- name: influxdb-data
mountPath: /var/lib/influxdb
volumes:
- name: influxdb-conf
configMap:
name: influxdb-config
- name: influxdb-data
persistentVolumeClaim:
claimName: influxdb-pvc |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Jason, I am currently using Truenas Core, and a VM on the box to host my powerwall-dashboard and its working really well, but i'd like to move to truenas scale which has built in containerisation etc. would it be possible to break this down into bite sized chucks to do this? I'm thinking is it possible to create a Kubernetes image that contains all the parts i need to be able to run it?
Beta Was this translation helpful? Give feedback.
All reactions