## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(eval = FALSE)

## -----------------------------------------------------------------------------
# library(aurora)
# 
# aurora_build_ui("meu_app")   # compile www/index.html (needs bslib; run on dev/CI)
# 
# # Generate a Dockerfile (+ .dockerignore). It installs only the runtime deps
# # your routers/helpers need, plus plumber2 and aurora.
# aurora_dockerfile("meu_app")
# 
# # Build (and optionally push) the image using the docker CLI.
# aurora_build_image("meu_app", tag = "org/meu_app:latest", push = TRUE)

## -----------------------------------------------------------------------------
# aurora_dockerfile("meu_app", flavor = "alpine")

## -----------------------------------------------------------------------------
# # Docker Hub (the default registry)
# aurora_build_image("meu_app", tag = "myorg/meu_app:latest", push = TRUE)
# 
# # GitHub Container Registry
# aurora_build_image("meu_app", tag = "ghcr.io/myorg/meu_app:latest", push = TRUE)

## -----------------------------------------------------------------------------
# aurora_shinyproxy_yaml(
#   image = "org/meu_app:latest",
#   dir   = "meu_app",              # defaults id / display-name from the app name
#   env   = list(AURORA_ENV = "prod")
# )
# #> - id: meu_app
# #>   display-name: meu_app
# #>   container-image: org/meu_app:latest
# #>   port: 8000
# #>   container-env:
# #>     AURORA_ENV: prod

## -----------------------------------------------------------------------------
# aurora_ruscker_yaml(
#   image = "org/meu_app:latest",
#   dir   = "meu_app",              # defaults id / display-name from the app name
#   rate_limit = "100/min",         # optional proxy-side throttle
#   cors  = TRUE,                   # optional permissive CORS headers
#   env   = list(AURORA_ENV = "prod")
# )
# #> - id: meu_app
# #>   display-name: meu_app
# #>   container-image: org/meu_app:latest
# #>   type: api
# #>   api:
# #>     port: 8000
# #>     docs-path: /__docs__
# #>     health-path: /__healthz__
# #>     rate-limit: 100/min
# #>     cors: yes
# #>   min-replicas: 0
# #>   max-replicas: 3
# #>   container-env:
# #>     AURORA_ENV: prod

