Table of Contents
👷 Building EcoDash
Here's how to build EcoDash in both binaries and as a Docker container. This is not necessary for most cases - we provide both pre-built binaries and containers for Linux ARM and x86_64 - however in devices with unsupported architectures it's necessary.
You're encouraged to first check the installation instructions to see if a pre-built container or binary is already available.
If you really have to build it yourself, we recommend you Docker over binaries.
Setup
- Download Git for your operating system from https://git-scm.com/download or from your package manager (it's nearly always called
git
) - Clone the repository by running
git clone https://git.massivebox.net/massivebox/ecodash.git
inside a command prompt - Switch to the project directory with
cd ecodash
- If you want to build the latest stable release (recommended), use
git tag
to list all the available release version, thengit checkout VERSION
whereVERSION
is the highest available release as listed bygit tag
.
Binaries
- Download the Go Compiler from https://go.dev/dl/ or from your package manager (it's usually called
go
orgolang
) - Download
golangci-lint
from https://golangci-lint.run/ (optional) - Run
golangci-lint run
to lint all project files (optional) - Build with
go build src/main/main.go -o ecodash
. This will generate an executable,ecodash
orecodash.exe
if you're in Windows, in the same directory.
Docker
- Download and install Docker Engine (recommended) or Docker Desktop from https://www.docker.com/ or from your package manager (it's nearly always called
docker
) - Run
docker build . -t git.massivebox.net/massivebox/ecodash
. This will build the image and tag it asgit.massivebox.net/massivebox/ecodash:latest
, which allows you to use the image according to the documentation.
🌿 EcoDash
Copyright © 2024 MassiveBox. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections. A copy of the license can be found at https://www.gnu.org/licenses/fdl-1.3.html