Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
brocaar committed Apr 6, 2022
0 parents commit 96fe672
Show file tree
Hide file tree
Showing 709 changed files with 335,482 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .docker-compose/postgresql/initdb/0001-init_chirpstack.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
set -e

psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" <<-EOSQL
create role chirpstack with login password 'chirpstack';
create database chirpstack with owner chirpstack;
EOSQL
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
set -e

psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname="chirpstack" <<-EOSQL
create extension pg_trgm;
create extension hstore;
EOSQL
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
set -e

psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" <<-EOSQL
create role chirpstack_integration with login password 'chirpstack_integration';
create database chirpstack_integration with owner chirpstack_integration;
EOSQL
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
set -e

psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname="chirpstack_integration" <<-EOSQL
create extension hstore;
EOSQL
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
set -e

psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" <<-EOSQL
create role chirpstack_test with login password 'chirpstack_test';
create database chirpstack_test with owner chirpstack_test;
EOSQL
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
set -e

psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname="chirpstack_test" <<-EOSQL
create extension pg_trgm;
create extension hstore;
EOSQL
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.git
**/target
**/node_modules
Dockerfile
35 changes: 35 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI
on:
push:
branches:
- '*'
tags:
- 'v*'
pull_request:

jobs:
tests:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2

-
name: Cargo cache
uses: actions/cache@v3
with:
path: |
.cargo/registry/index/
.cargo/registry/cache/
.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}

-
name: Build UI
run: make build-ui

-
name: Run tests
run: make test
19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# hidden files
.*

# Log files
*.log

# Rust target directory
**/target

# Certificates
/chirpstack/configuration/certs
/chirpstack/configuration/private_*.toml

# UI
/ui/node_modules
/ui/build

# API
/api/js/node_modules
Loading

0 comments on commit 96fe672

Please sign in to comment.