Docker container of Dash App to display A2CPS trial weekly reporting metrics.
This dashboard is intended for use by study personnel and others interested in the reasons why patients either complete or leave the trial.
Version | Date | Description |
---|---|---|
0.0.2 | 11/01/2021 | Update dashboard to use Screening sites for Screening tables. |
0.0.1 | 05/18/2021 | Initial dashboard with portions of the data loaded into tables. |
Data from the A2CPS program is loaded via apis that provide information on both all screened patients and those who continue into the program.
This data is cleaned and transformed to create the tables as outlined in the Weekly Report document on Confluence.
Development previews are built upon commits to the master branch. If you wish to preview the latest
build, you may use the docker-compose.yml
file. On your local machine with Docker, run:
docker-compose up --force-recreate
Then browse to localhost:8050
in your web browser.
This repository was forked from the TACC dash-container repo.
This repository comes with two Github Action workflows that automatically build Docker containers:
- build-pr builds commit sha tagged images upon pull requests
- build-main builds a commit sha tagged and
:latest
tagged image upon pushes to main (such as when merging a pull request)
Both require specific Github repo configuration.
You will need to create a token for the account that will be used to push your repo.
- On Dockerhub go to your account's security settings.
- Click the New Access Token button and type in a description
- You will see a UUID value - this is your access token. Copy it immediately, as these can only be read upon creation. You will not see this token again.
You will need to create a build environment with secrets to contain Dockerhub settings.
- In your Github repo, click on Settings. Then click on Environments
- Click on the New Environment button and name this environment
docker
. (You can change theenvironment
value in the workflows if you wish to call it something else or keep multiple environments) - At the bottom of the screen you will see Environment Secrets. Click the Add Secret button to create secrets.
- Create a secret called
DOCKERHUB_TOKEN
and paste your Dockerhub token here - Create a secret called
DOCKERHUB_USERNAME
and put the name of the corresponding user here - Create a secret called
DOCKERHUB_REPO
and put your Docker repository name here. For example, this Github repo autobuilds images atjchuahtacc/dash-container
, so that is the value that is used forDOCKERHUB_REPO
.
Upon pull requests and pushes to main, you will see the workflows perform autobuilds. You can view the Action results by going to the Actions tag of your repo. You can also go to your Dockerhub page and make sure images are properly getting tagged and pushed