Skip to content

devNat0/gosqliteopenwrt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

this repo contains code example from go-sqlite3

Container

Use docker or podman. Untested with docker.

    podman build -t go_openwrt_builder .

Gotify instructions

Gotify is modified to be "headless" to minimize the binary size and makes it simpler.

NOTE: gotify-build.sh includes go build arguments that would fail without it. I have not tested running it without "-tags netgo"

    git clone https://github.com/gotify/server.git bin/server
    cp gotify-files/* bin/server/
    cd bin/server
    mv ui _ui 
    git apply gotify-headless.patch
    # cd back into the root of this repo
    cd ../../
    podman run -u root -v "$(pwd)"/bin/:/builder/bin -it go_openwrt_builder

NTFY instructions

quick look at the code, making ntfy headless isn't as simple

    git clone https://github.com/binwiederhier/ntfy.git bin/ntfy
    cp ./ntfy-build.sh bin/ntfy
    cd bin/ntfy
    make web docs
    # cd back into the root of this repo
    cd ../../
    podman run -u root -v "$(pwd)"/bin/:/builder/bin -it go_openwrt_builder

While inside the container:

Gotify

    cd bin/server
    sh ./gotify-build.sh
    file server

NTFY

    cd bin/ntfy
    sh ./ntfy-build.sh
    file server

file command should say your target architecture, i.e. "MIPS"

About

build Go sqlite on openwrt

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published