Hello everyone, I want to change the logo on the navbar display in the chirpstack app? Has anyone ever changed it? Chirpstack is installed in a docker container.
You need to rebuild chirpstack from source to change the UI: GitHub - chirpstack/chirpstack: ChirpStack open-source LoRaWAN Network Server
Can it be run in docker?
Ya you just need to have docker use your own custom chirpstack image once you have created it.
I have followed all the commands in the Readme document. The docker container is running, but the chirpstack web page cannot be accessed.
Hard to say what could have gone wrong with just a “it’s running but it’s not”. This definitely isn’t just basic user features either so if you don’t know what you’re doing it could get messy.
Firstly “nix-shell” as the starting command of the container makes me think you are doing something wrong (or mistaking the container used to create the binary as Chirpstack itself). I’d assume the container’s command should be executing Chirpstack, not a Nix shell.
The steps in the guide are just to create a binary for Chirpstack using your new UI, not a docker image itself. You will need a dockerfile to tell the system how to create your container from the binary.
So when you run:
make release-amd64
from the guide, you should get a binary made for linux (no need to do the other makes like make dist, those are for the Pis). I believe the binary will be output in the directory “target/x86_64-unknown-linux-musl/release/chirpstack” on your host, if not find it.
Then make a dockerfile that’s something like this:
FROM alpine:3.21.0
RUN apk --no-cache add ca-certificates
COPY target/x86_64-unknown-linux-musl/release/chirpstack /usr/bin/chirpstack
USER nobody:nogroup
ENTRYPOINT ["/usr/bin/chirpstack"]
Where target/x86_64-unknown-linux-musl/release/chirpstack is the path to your custom binary
Then build it like:
docker build -t custom-chirpstack .
Then finally you can address it in your docker-compose.yml by changing the image in your chirpstack service:
services:
chirpstack:
image: custom-chirpstack
I can’t confirm right now if those steps are exactly correct, but that is the general idea. Might need to do some researching of your own into creating docker images from binaries if it doesn’t work.
After a bit more digging, I think I understand how you got to where you are and what the Chirpstack process should look like.
The repository and guide are a little confusing here. As the docker compose by default runs Dockerfile-devel, which is a dockerfile that runs: ENTRYPOINT [“nix-shell”]. Nix shell is the development environment they want you to use to generate the binary.
I believe from your point now, you should be able to enter the container docker exec -it chirpstack-chirpstack-1 bash
and run make build-ui
then make release-amd64
to create the binary? Then you will have a linux Chirpstack binary, and you should be able to do something similar to what I’ve outlined above to turn that into a usable docker image.
This topic was automatically closed after 90 days. New replies are no longer allowed.