Skip to content

Latest commit

 

History

History
87 lines (62 loc) · 1.91 KB

README.md

File metadata and controls

87 lines (62 loc) · 1.91 KB

Scripts for single board computers

This repository contains several scripts which are intended to be used on single board computers like Raspberry Pi.

Each script can be run with curl and sh like below:

curl -fsSL https://raw.githubusercontent.com/masnagam/sbc-scripts/main/install-px4-drv \
  | sh -s -- --dkms install

The filename of a script for a specific SBC starts with a label listed below:

  • rpi: Raspbian/Raspberry Pi
  • rock64: Armbian/ROCK64

For details, see comments in each script or help which is shown by running with the -h or --help option like below:

curl -fsSL https://raw.githubusercontent.com/masnagam/sbc-scripts/main/get-docker-compose \
  | sh -s -- -h

Docker images for get-docker-compose

Docker Hub:

Supported distros:

  • alpine
  • debian (main distro)

Supported platforms:

  • linux/386
  • linux/amd64
  • linux/arm/v6 (only for alpine)
  • linux/arm/v7
  • linux/arm64/v8

Invoke the build job

Run a script like below:

REPO=masnagam/sbc-scripts
GITHUB_TOKEN='token...'
VERSION='1.25.4'

JSON=$(cat <<EOF
{
  "event_type": "build-docker-compose",
  "client_payload": {
    "version": "$VERSION",
    "latest": true
  }
}
EOF
)

echo "$JSON" | curl https://api.github.com/repos/$REPO/dispatches \
  -X POST -d @- \
  -H "Authorization: token $GITHUB_TOKEN" \
  -H "Content-Type: application/json"

License

Licensed under either of

at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.