-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add compose stuff, args, comments, improve err
todo/still wrong with this - mqtt reconnect sucks and there is no disconnect/reconnect printout - there is no mock stuff yet
- Loading branch information
Showing
12 changed files
with
158 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,14 +59,14 @@ jobs: | |
PROD=true | ||
BACKEND_URL=http://192.168.100.1:8000 | ||
MAP_ACCESS_TOKEN=pk.eyJ1IjoibWNrZWVwIiwiYSI6ImNscXBrcmU1ZTBscWIya284cDFyYjR3Nm8ifQ.6TQHlxhAJzptZyV-W28dnw | ||
- name: Build and push Docker image for scylla server | ||
- name: Build and push Docker image for scylla server rust | ||
uses: docker/[email protected] | ||
with: | ||
context: ./scylla-server | ||
context: ./scylla-server-rust | ||
push: true | ||
target: production | ||
platforms: linux/arm64,linux/amd64 | ||
tags: ${{ steps.meta.outputs.tags }}-scylla-server # argos-scylla-server | ||
tags: ${{ steps.meta.outputs.tags }}-scylla-server-rust # argos-scylla-server | ||
labels: ${{ steps.meta.outputs.labels }} | ||
# for caching | ||
# cache-from: type=gha | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# editor things | ||
.idea/ | ||
.zed/ | ||
.vscode/ | ||
|
||
# misc things | ||
.DS_Store | ||
.gitignore | ||
*.nix | ||
|
||
# python things | ||
pyrightconfig.json | ||
__pycache__/ | ||
|
||
# Added by cargo (rust things) | ||
/target | ||
build/ | ||
dist/ | ||
logs/ | ||
|
||
# prisma | ||
prisma.rs | ||
|
||
# protobuf | ||
serverdata.rs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,13 @@ docker volume rm argos_db-data | |
docker compose run -Pd odyssey-timescale | ||
cargo prisma migrate deploy | ||
SOURCE_DATABASE_URL=postgresql://postgres:[email protected]:5432/timescaledb cargo test -- --test-threads=1 | ||
``` | ||
``` | ||
|
||
### Deploy this app | ||
|
||
Use the docker compose above to build & deploy. Note the CI prebuilds arm64 and amd64 images upon request in the actions tab of this repository's github page. | ||
``` | ||
docker compose build | ||
docker compose up # use -d to fork to background | ||
``` | ||
A database migration is triggered upon every bootup. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.