-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tighten up docs and use muggle container #16
- Loading branch information
Showing
4 changed files
with
100 additions
and
39 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,21 +1,20 @@ | ||
# deploy shiny app using rocker image | ||
az_webapp_config( | ||
name = "hello-shiny", | ||
# this image includes *more* than necessary | ||
# this image actually includes *more* than necessary | ||
# for example, it includes shinyserver, but just shiny would suffice | ||
deployment_container_image_name = "rocker/shiny:4.0.2", | ||
# above image includes no suitable default `RUN` | ||
# above image has no `ENTRYPOINT` and/or `CMD` to start shiny by default. | ||
# so this `[COMMAND]` must be appended to `docker run` | ||
startup_file = paste0( | ||
"Rscript -e ", | ||
# no more spaces from now on | ||
"shiny::runExample('01_hello',", # shiny example app | ||
"host='0.0.0.0',", # necessary to let azure talk to container | ||
"port=as.integer(Sys.getenv('PORT')))" # env var set by azure | ||
startup_file = paste( | ||
"Rscript ", | ||
# setting shiny options for azure manually | ||
# equivalent to running shinycaas::az_webapp_shiny_opts() | ||
"-e options(shiny.host='0.0.0.0',shiny.port=as.integer(Sys.getenv('PORT')", | ||
"-e shiny::runExample('01_hello')" | ||
), | ||
# replace below with your own credentials | ||
plan = "hoad", | ||
resource_group = "hoad", | ||
# this is the subugoe subscription used for testing | ||
subscription = "f0dd3a37-0a4e-4e7f-9c9b-cb9f60146edc" | ||
) |