Skip to content

Commit

Permalink
Merge pull request #108 from tritonuas/feat/MyModal
Browse files Browse the repository at this point in the history
MyModal created in gcs.
  • Loading branch information
Tyler-Lentz authored Feb 5, 2024
2 parents aaf17b8 + aa423a0 commit d09d44e
Show file tree
Hide file tree
Showing 16 changed files with 1,611 additions and 518 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ influx_token.key
*.mp3

**/*.pb.go
**/*.pb.ts
**/*.pb.ts
flight-logs

6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ run-compose:
stop-compose:
docker compose -f deployments/docker-compose.yml down

run-compose-mac:
docker-compose -f deployments/docker-compose-mac.yml up -d

stop-compose-mac:
docker-compose -f deployments/docker-compose-mac.yml down

run-broach-compose:
docker compose -f deployments/broach-docker-compose.yml up -d

Expand Down
1 change: 1 addition & 0 deletions build/package/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ RUN --mount=target=. \

COPY ./houston/dist/ /build/houston/

RUN mkdir /CSV
# go build mounts code read-only without copying to container,
# so you have to put binary in another folder
CMD ["/output/gcs"]
1 change: 1 addition & 0 deletions deployments/broach-docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ services:
- HUB_PATH=/go/src/github.com/tritonuas/gcs
volumes:
- missions:/go/src/github.com/tritonuas/gcs/missions
- ../flight-logs:/CSV
devices:
- /dev/ttyUSB0:/dev/ttyUSB0
extra_hosts:
Expand Down
93 changes: 93 additions & 0 deletions deployments/docker-compose-mac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# TODO: setup env variables https://docs.docker.com/compose/environment-variables/
version: "3"
services:
gcs:
image: tritonuas/gcs
# network_mode: "host"
ports:
- 5000:5000
environment:
- DEBUG_MODE=true
- OBC_ADDR=192.168.1.51:5010
- ANTENNA_TRACKER_IP=192.168.1.36
- ANTENNA_TRACKER_PORT=4000
- MAV_DEVICE=tcp:sitl:5760
- MAV_OUTPUT4=udp:localhost:14550
- MAV_OUTPUT5=tcp:localhost:14551
- INFLUXDB_BUCKET=mavlink
- INFLUXDB_ORG=TritonUAS
- INFLUXDB_TOKEN=influxdbToken
- INFLUXDB_URI=http://influxdb:8086
- HUB_PATH=/go/src/github.com/tritonuas/gcs
volumes:
- missions:/go/src/github.com/tritonuas/gcs/missions
- ../flight-logs:/CSV
extra_hosts:
- host.docker.internal:host-gateway

influxdb:
image: influxdb:2.0-alpine
# network_mode: "host"
ports:
- 8086:8086
volumes:
- influxdb_data:/var/lib/influxdb
grafana:
image: grafana/grafana:7.5.5
# network_mode: "host"
ports:
- 3000:3000
depends_on:
- gcs
environment:
- GF_USERS_DEFAULT_THEME=dark
- GF_USERS_HOME_PAGE=/dashboards
#- GF_INSTALL_PLUGINS=briangann-gauge-panel
- GF_DASHBOARDS_MIN_REFRESH_INTERVAL=500ms
- GF_AUTH_DISABLE_LOGIN_FORM=true
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_NAME=Main Org.
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_USERS_ALLOW_SIGN_UP=false
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/dashboard.yaml:/etc/grafana/provisioning/dashboards/dashboard.yaml
- ./grafana/datasource.yaml:/etc/grafana/provisioning/datasources/datasource.yaml
- ./grafana/dashboards/:/var/lib/grafana/dashboards/
influxdb_cli:
depends_on:
- influxdb
image: influxdb:2.0-alpine
# network_mode: "host"
entrypoint: >
influx setup
--bucket mavlink
--org TritonUAS
--token influxdbToken
--username tritons
--password tritonuas
--host http://influxdb:8086
--force
restart: on-failure:20
sitl:
image: tritonuas/plane.rascal
# network_mode: "host"
ports:
- 5760:5760
environment:
- "SITL_HOME=38.31542593549111,-76.55062632801757,8,0"
- SITL_SPEEDUP=1
volumes:
- sitl:/app/logs
dozzle:
container_name: dozzle
image: amir20/dozzle:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 9999:8080
volumes:
grafana_data:
missions:
sitl:
influxdb_data:
1 change: 1 addition & 0 deletions deployments/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ services:
- HUB_PATH=/go/src/github.com/tritonuas/gcs
volumes:
- missions:/go/src/github.com/tritonuas/gcs/missions
- ../flight-logs:/CSV
extra_hosts:
- host.docker.internal:host-gateway

Expand Down
Loading

0 comments on commit d09d44e

Please sign in to comment.