Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shellhub-io/buildroot
Buildroot external tree for ShellHub
https://github.com/shellhub-io/buildroot
Last synced: 3 days ago
JSON representation
Buildroot external tree for ShellHub
- Host: GitHub
- URL: https://github.com/shellhub-io/buildroot
- Owner: shellhub-io
- Created: 2024-04-17T20:51:44.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-10-29T23:30:08.000Z (14 days ago)
- Last Synced: 2024-10-30T01:52:12.861Z (14 days ago)
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Buildroot external tree for ShellHub
This repository contains a Buildroot external tree for ShellHub.
## Configuration
To configure the ShellHub agent on your Buildroot system,
you can use an overlay to add a custom configuration file
with the required environment variables.Run the following command:
```
$ cat > rootfs_overlay/etc/default/shellhub-agent <<-EOF
SERVER_ADDRESS="https://your.shellhub.server.com"
PRIVATE_KEY="path_to_private_key_file"
TENANT_ID="your_tenant_id_here"
EOF
```## Usage
Clone Buildroot:
```
$ git clone git://git.buildroot.net/buildroot
```Clone this repository:
```
$ git clone https://github.com/shellhub-io/buildroot.git shellhub
```Set the default configuration for emulated environment:
```
$ cd buildroot
$ make BR2_EXTERNAL=../shellhub qemu_x86_64_defconfig
```Start the menuconfig and select `shellhub` under **External options**.
```
$ make BR2_EXTERNAL=../shellhub menuconfig
```Finally run make to build everything.
```
$ make BR2_EXTERNAL=../shellhub rootfs-ext2
```Start QEMU:
```
$ ./output/images/start-qemu.sh
```