-
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.
- Loading branch information
0 parents
commit 94a9b0b
Showing
13 changed files
with
1,078 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
VOLUMES=/data | ||
REDIS_URL=redis://128.33.193.178:6379 | ||
BBN_CTL_URL=tcp://128.33.193.178:5555 | ||
BBN_MSG_URL=tcp://128.33.193.178:6666 | ||
BBN_MSG_URL2=tcp://128.33.193.178:6670 |
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,98 @@ | ||
name: Docker | ||
|
||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
|
||
on: | ||
# schedule: | ||
# - cron: '43 13 * * *' | ||
push: | ||
branches: [ "main" ] | ||
# Publish semver tags as releases. | ||
tags: [ 'v*.*.*' ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
env: | ||
# Use docker.io for Docker Hub if empty | ||
REGISTRY: ghcr.io | ||
# github.repository as <account>/<repo> | ||
IMAGE_NAME: ${{ github.repository }} | ||
|
||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
# This is used to complete the identity challenge | ||
# with sigstore/fulcio when running outside of PRs. | ||
id-token: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
# Install the cosign tool except on PR | ||
# https://github.com/sigstore/cosign-installer | ||
- name: Install cosign | ||
if: github.event_name != 'pull_request' | ||
uses: sigstore/cosign-installer@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 #v3.5.0 | ||
with: | ||
cosign-release: 'v2.2.4' | ||
|
||
# Set up BuildKit Docker container builder to be able to build | ||
# multi-platform images and export cache | ||
# https://github.com/docker/setup-buildx-action | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0 | ||
|
||
# Login against a Docker registry except on PR | ||
# https://github.com/docker/login-action | ||
- name: Log into registry ${{ env.REGISTRY }} | ||
if: github.event_name != 'pull_request' | ||
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# Extract metadata (tags, labels) for Docker | ||
# https://github.com/docker/metadata-action | ||
- name: Extract Docker metadata | ||
id: meta | ||
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
|
||
# Build and push Docker image with Buildx (don't push on PR) | ||
# https://github.com/docker/build-push-action | ||
- name: Build and push Docker image | ||
id: build-and-push | ||
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0 | ||
with: | ||
context: . | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
|
||
# Sign the resulting Docker image digest except on PRs. | ||
# This will only write to the public Rekor transparency log when the Docker | ||
# repository is public to avoid leaking data. If you would like to publish | ||
# transparency data even for private images, pass --force to cosign below. | ||
# https://github.com/sigstore/cosign | ||
- name: Sign the published Docker image | ||
if: ${{ github.event_name != 'pull_request' }} | ||
env: | ||
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable | ||
TAGS: ${{ steps.meta.outputs.tags }} | ||
DIGEST: ${{ steps.build-and-push.outputs.digest }} | ||
# This step uses the identity token to provision an ephemeral certificate | ||
# against the sigstore community Fulcio instance. | ||
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST} |
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,130 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# mac | ||
.DS_Store | ||
|
||
# dont upload model weights | ||
*.pt | ||
*.pth | ||
*.ckpt | ||
# dont upload videos | ||
*.mp4 | ||
|
||
*.h5 | ||
|
||
*.swp | ||
*.swo | ||
|
||
output/ | ||
output2/ | ||
|
||
models/ | ||
|
||
# trash folders | ||
shh/ | ||
shhh/ | ||
shhhh/ | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
MANIFEST | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
tests/*/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
db.sqlite3 | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# celery beat schedule file | ||
celerybeat-schedule | ||
|
||
# SageMath parsed files | ||
*.sage.py | ||
|
||
# Environments | ||
# .env | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
.spyproject | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
# mkdocs documentation | ||
/site | ||
|
||
# mypy | ||
.mypy_cache/ |
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,10 @@ | ||
FROM python:3.9-slim | ||
|
||
WORKDIR /src/app | ||
|
||
ADD requirements.txt . | ||
RUN pip install -r requirements.txt | ||
ADD . . | ||
|
||
ENTRYPOINT ["python3"] | ||
CMD ["main.py", "run"] |
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,5 @@ | ||
# BBN Comms | ||
|
||
```bash | ||
docker compose up -d --build | ||
``` |
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,137 @@ | ||
######## | ||
# 1. BASIC HEADER STUFF (required) | ||
######## | ||
header: | ||
sender: # name / id you pick | ||
sender software version: # version of your software you pick | ||
header fmt version: 1.0 # 1.0 until we decide otherwise | ||
transmit timestamp: # your clock at xmit time in fractional seconds since 1970 | ||
closest hololens dataframe timestamp: # clock for the most recent hololens frame as seconds since 1970 | ||
|
||
######## | ||
# 2a. CASUALTY COUNT / WORK STATIONS | ||
# HARD CODED FOR DEMO 1 (required) | ||
######## | ||
casualties: | ||
populated: true # false if there are no casualties detected | ||
count: 1 # integer, how many human bodies tasks are being tended to (0 if none) | ||
confidence: 1.0 # (0-1.0) Your confidence in this count | ||
|
||
######## | ||
# 2b. HARD CODED FOR DEMO 1 (required) | ||
######## | ||
# skills open per casualty: | ||
# dictionary of a list (key is casualty number), | ||
# each element of the list is a list of two items. | ||
# The two items are skill number (integer) and confidence (0-1.0). | ||
# Confidence is the measure of certainty that the skill listed is really the skill. | ||
|
||
skills open per casualty: | ||
populated: true # false if there are no skills detected | ||
casualty: | ||
1: | ||
- [M1,1.0] | ||
- [M2,1.0] | ||
- [R18,0.5] | ||
- [M5,0.0] | ||
- [M3,0.0] | ||
|
||
######## | ||
# 2c. WHICH OF THESE SKILLS ARE DONE (optional/required?) | ||
# THIS WILL CHANGE AS TREATMENT PROGRESSES | ||
######## | ||
# belief skill is done per casualty: | ||
# dictionary of a list (key is casualty number), | ||
# each element of the list is a list of two items. | ||
# The two items are skill number (integer) and belief the skill is complete (0-1.0). | ||
# This is your systems belief that we've seen the end of activity on this skill. | ||
# It is not a measure of progress, or of correctness. Just that we're done with the skill. | ||
# If you are certain the skill is completed, your belief it is complete is 1.0. | ||
# If you are certain the skill is being worked on your belief it is complete is 0.0. | ||
# If you have no measure of this, your belief will always stay at 0.5 | ||
|
||
belief skill is done per casualty: | ||
populated: true # false if there are no skills detected | ||
casualty: | ||
1: | ||
- [M1,1.0] | ||
- [M2,1.0] | ||
- [R18,0.5] | ||
- [M5,0.0] | ||
- [M4,0.0] | ||
|
||
######## | ||
# 2d. WHAT IS THE CURRENT SKILL STEP ACTIVITY? (required) | ||
# MAY CHANGE EVERY FEW SECONDS | ||
######## | ||
|
||
users current actions right now: | ||
populated: true # false if there have been no skills or casualties | ||
casualty currently working on: | ||
casualty: 1 # HARD CODED FOR DEMO 1 | ||
confidence: 1.0 # HARD CODED FOR DEMO 1 | ||
current skill: | ||
number: R18 # WHICH SKILL? | ||
confidence: 1.0 # confidence of which skill (0-1.0) | ||
steps: # STATE OF EACH STEP | ||
- | ||
number: 1 | ||
name: "Identify gunshot wound or penetrating trauma to chest" # String, looked up from the specific skill number, skill step | ||
state: implied | ||
confidence: 0.65 | ||
- | ||
number: 2 | ||
name: "With gloved hand, cover and seal wound site." | ||
state: done | ||
confidence: 0.99 | ||
- | ||
number: 3 | ||
name: "Open vented chest seal package." | ||
state: done | ||
confidence: 0.98 | ||
- | ||
number: 4 | ||
name: "Wipe blood and body fluids from wound site." | ||
state: current | ||
confidence: 0.46 | ||
- | ||
number: 5 | ||
name: "Peel away chest seal backer." | ||
state: unobserved | ||
confidence: 0.99 | ||
- | ||
number: 6 | ||
name: "Place chest seal with circle of vents over wound site and seal to chest." | ||
state: unobserved | ||
confidence: 0.99 | ||
- | ||
number: 7 | ||
name: "Look for exit wound, if found repeat process." | ||
state: unobserved | ||
confidence: 0.5 | ||
|
||
####### | ||
# 3. MEASURE OF PROGRESS TOWARDS NEXT STEP (optional) | ||
####### | ||
|
||
next step progress velocity: | ||
populated: false # set to true if you're populating this | ||
velocity: 0 # TA1 arbitrary score (0-1) of progress from the current step to the next step | ||
|
||
###### | ||
# 4. DO WE BELIEVE THERE ARE ANY ERRORS? (optional) | ||
# This assumes a common error dictionary that will be described elsewhere | ||
###### | ||
|
||
current errors: | ||
populated: false # set to true when we get here and is being used. will happen per skill. | ||
errors: | ||
# will start by leaving this empty. will populate it later. | ||
|
||
###### | ||
# 5. TA1 needs to consult with me about this. (future) | ||
###### | ||
|
||
current user state: # TBD need help from this part of the community | ||
populated: false # set to true when defined and you are using this. | ||
# will start by leaving this empty. will populate it later. |
Oops, something went wrong.