Skip to content

Commit

Permalink
Initial release.
Browse files Browse the repository at this point in the history
  • Loading branch information
brocaar committed Nov 5, 2024
1 parent ca2ab4a commit e0ff0c9
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ build:

build-gateway-os:
docker compose run --rm chirpstack-pg-to-sqlite-armv7 go build -ldflags "-linkmode 'external' -extldflags '-static'"
cd packaging/gateway-os && ./package.sh 1.0.0
cd packaging/gateway-os && ./package.sh 4.0.0
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ ChirpStack Gateway OS (full) image from PostgreSQL to SQLite.

## Usage

### CLI

```text
Usage of ./chirpstack-pg-to-sqlite:
-postgres-dsn string
Expand All @@ -20,6 +22,29 @@ Usage of ./chirpstack-pg-to-sqlite:
schema. You can use the `chirpstack.empty.sqlite` as a skeleton.
* This script will remove all data from the target SQLite database.

### ChirpStack Gateway OS

In the web-interface, under **System > Software**, click the **Upload package**
button and upload the `.ipk` package. This will automatically migrate the
PostgreSQL database to SQLite (leaving the PostgreSQL database as-is).

## Building from source

```text
# Build for current architecture
make build
# Build ChirpStack Gateway OS (ARMv7) package
make build-gateway-os
```

## Changelog

### v4.0.0

Initial release compatible with ChirpStack v4.9.0 database schema, ChirpStack
Gateway OS v4.5.x.

## License

This script is distributed under the MIT license. See also `LICENSE`.

0 comments on commit e0ff0c9

Please sign in to comment.