Skip to content

Commit

Permalink
Temporarily adjust Dockerfile CMD to test paws
Browse files Browse the repository at this point in the history
  • Loading branch information
jeancochrane committed Nov 29, 2023
1 parent 6ef00ca commit ffb017d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ RUN mv renv model-res-avm/
# Set the working directory to the app dir
WORKDIR model-res-avm/

CMD dvc pull && dvc repro
CMD Rscript R/test_paws.R
9 changes: 9 additions & 0 deletions R/test_paws.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
library(glue)
library(paws.storage)

report_url <- paws.storage::s3()$generate_presigned_url(
client_method = "get_object",
params = list(Bucket = "ccao-data-public-us-east-1", Key = "reporting/old_ward.parquet"),

Check warning on line 6 in R/test_paws.R

View workflow job for this annotation

GitHub Actions / pre-commit

file=/home/runner/work/model-res-avm/model-res-avm/R/test_paws.R,line=6,col=81,[line_length_linter] Lines should not be more than 80 characters.

Check warning on line 6 in R/test_paws.R

View workflow job for this annotation

GitHub Actions / pre-commit

file=/home/runner/work/model-res-avm/model-res-avm/R/test_paws.R,line=6,col=81,[line_length_linter] Lines should not be more than 80 characters.
expires_in = 600
)
glue::glue("Report link: {report_url}") %>% message()

0 comments on commit ffb017d

Please sign in to comment.