amonapp / amonagent

Single binary agent for Linux
https://amon.cx
MIT License
48 stars 21 forks source link

Agent build for Raspbian #24

Open tobru opened 6 years ago

tobru commented 6 years ago

It would be fantastic to have a Raspberry Pi compatible build of the amon agent. The armhf build sadly doesn't work.

Arch of Raspberry PI 3: armv7l

martinrusev commented 6 years ago

@tobru Can you help me with this one. I am a little bit lost in the ARM land. The agent can work on any architecture supported by Golang. So far I have the following in the build script: https://github.com/amonapp/amonagent/blob/master/build.py

    if arch == "armhf":
        arch = 'arm' # (GOARCH=arm)
        additional_env_params.append("GOARM=6")
    if arch == "arm64":
        # GOARCH=arm64
        additional_env_params.append("GOARM=7")

Can you take a look at this page: https://github.com/golang/go/wiki/GoArm and tell me which parameters will work on Raspberry PI 3

tobru commented 6 years ago

@martinrusev I'll report back once I have a working build.