Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add e2e example setup #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@ dist
*.tgz

.vscode/

end2end-setup/influx-config/influx-configs
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ data/*
.github
.dockerignore
*rc.*
generate-schema
generate-schema
end2end-setup
30 changes: 30 additions & 0 deletions end2end-setup/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
version: '2'
services:
influxdb:
container_name: influx2
image: influxdb:2.3
ports:
- 8086:8086
volumes:
- ./influx-data:/var/lib/influxdb2
- ./influx-config:/etc/influxdb2
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=signalk
- DOCKER_INFLUXDB_INIT_PASSWORD=klangisklangis
- DOCKER_INFLUXDB_INIT_ORG=signalk_org
- DOCKER_INFLUXDB_INIT_BUCKET=signalk_bucket
# - DOCKER_INFLUXDB_INIT_RETENTION: The duration the system's initial bucket should retain data. If not set, the initial bucket will retain data forever.
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=signalk_token
signalk-server:
image: signalk/signalk-server:v1.45.0
entrypoint:
- /home/node/signalk/bin/signalk-server
- --sample-n2k-data
- --override-timestamps
environment:
- DEBUG=signalk:interfaces:plugins
ports:
- 3002:3000
volumes:
- ./dotsignalk:/home/node/.signalk
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"configuration": {
"influxes": [
{
"url": "http://influx2:8086",
"token": "signalk_token",
"org": "signalk_org",
"bucket": "signalk_bucket",
"writeOptions": {
"defaultTags": {},
"headers": {}
}
}
]
},
"enabled": true
}
Empty file.
Empty file.