Born out of the need to deploy function to a heterogeneous serverless cluster via raspberry pi and other commondity off the shelf hardware.
This Repo helps one get started to build and deploy applications, serverless functions, and/or restful apis. If one can write it in go then exeute it securely via docker. The end docker image is based on scratch and would contain a multi-arch image with just the application that has full multi arch and multi os support is baked in.
- docker
- docker hub account
- good ide (e.g. vim/emacs)
- gnu make
- knowledge of Go
Drop these three files into your project folder and use make to build/test/exec go commands
make all
- Builds linux arm and amd64 versions of application and bundles
a multi arch docker image
make EXEC=... gocmd
- pass values to go via EXEC='...' to run go command
(e.g. make EXEC="run main.go" gocmd
)
make docs
- Runs godoc on port 6060,
open/xdg-open/start/pipe http://localhost:6060 to read
make test
- Run unit tests with code coverage output
make release
- Builds all images defined with IMAGES='...' then pushes to docker hub
(defaults to linux-armv7 and linux-amd64)
- Support label-schema.org/rc1
- Support matrix.dapla.net/schema
- Add matrix.dapla.net/stack.yml
- bundle for python cookiecutter (or nodejs/go equivalents)