Skip to content

Commit aa6492c

Browse files
Update R/add_dockerfiles_renv.R
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 292d106 commit aa6492c

File tree

1 file changed

+97
-97
lines changed

1 file changed

+97
-97
lines changed

R/add_dockerfiles_renv.R

Lines changed: 97 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -467,112 +467,112 @@ add_dockerfile_with_renv_heroku <- function(
467467
...,
468468
source_folder
469469
) {
470-
signal_arg_is_deprecated(
471-
source_folder,
472-
fun = as.character(sys.call()[[1]]),
473-
"source_folder"
474-
)
470+
signal_arg_is_deprecated(
471+
source_folder,
472+
fun = as.character(sys.call()[[1]]),
473+
"source_folder"
474+
)
475475

476-
add_dockerfile_with_renv(
477-
golem_wd = golem_wd,
478-
lockfile = lockfile,
479-
output_dir = output_dir,
480-
distro = distro,
481-
from = from,
482-
as = as,
483-
sysreqs = sysreqs,
484-
repos = repos,
485-
expand = expand,
486-
port = NULL,
487-
host = "0.0.0.0",
488-
extra_sysreqs = extra_sysreqs,
489-
update_tar_gz = update_tar_gz,
490-
open = FALSE,
491-
document = document,
492-
user = user,
493-
single_file = single_file,
494-
set_golem.app.prod = set_golem.app.prod,
495-
dockerfile_cmd = sprintf(
496-
"R -e \"options('shiny.port'=$PORT,shiny.host='0.0.0.0');library(%1$s);%1$s::run_app()\"",
497-
get_golem_name(
498-
golem_wd = golem_wd
499-
)
500-
),
501-
...
502-
)
476+
add_dockerfile_with_renv(
477+
golem_wd = golem_wd,
478+
lockfile = lockfile,
479+
output_dir = output_dir,
480+
distro = distro,
481+
from = from,
482+
as = as,
483+
sysreqs = sysreqs,
484+
repos = repos,
485+
expand = expand,
486+
port = NULL,
487+
host = "0.0.0.0",
488+
extra_sysreqs = extra_sysreqs,
489+
update_tar_gz = update_tar_gz,
490+
open = FALSE,
491+
document = document,
492+
user = user,
493+
single_file = single_file,
494+
set_golem.app.prod = set_golem.app.prod,
495+
dockerfile_cmd = sprintf(
496+
"R -e \"options('shiny.port'=$PORT,shiny.host='0.0.0.0');library(%1$s);%1$s::run_app()\"",
497+
get_golem_name(
498+
golem_wd = golem_wd
499+
)
500+
),
501+
...
502+
)
503503

504-
apps_h <- gsub(
505-
"\\.",
506-
"-",
507-
sprintf(
508-
"%s-%s",
509-
get_golem_name(
510-
golem_wd = golem_wd
511-
),
512-
get_golem_version(
513-
golem_wd = golem_wd
514-
)
515-
)
516-
)
504+
apps_h <- gsub(
505+
"\\.",
506+
"-",
507+
sprintf(
508+
"%s-%s",
509+
get_golem_name(
510+
golem_wd = golem_wd
511+
),
512+
get_golem_version(
513+
golem_wd = golem_wd
514+
)
515+
)
516+
)
517517

518-
readme_output <- fs_path(
519-
output_dir,
520-
"README"
521-
)
518+
readme_output <- fs_path(
519+
output_dir,
520+
"README"
521+
)
522522

523-
write_there <- write_there_builder(readme_output)
523+
write_there <- write_there_builder(readme_output)
524524

525-
write_there("From your command line, run:\n")
525+
write_there("From your command line, run:\n")
526526

527-
write_there(
528-
sprintf(
529-
"docker build -f Dockerfile_base --progress=plain -t %s .",
530-
paste0(
531-
get_golem_name(
532-
golem_wd = golem_wd
533-
),
534-
"_base"
535-
)
536-
)
537-
)
527+
write_there(
528+
sprintf(
529+
"docker build -f Dockerfile_base --progress=plain -t %s .",
530+
paste0(
531+
get_golem_name(
532+
golem_wd = golem_wd
533+
),
534+
"_base"
535+
)
536+
)
537+
)
538538

539-
write_there(
540-
sprintf(
541-
"docker build -f Dockerfile --progress=plain -t %s .\n",
542-
paste0(
543-
get_golem_name(
544-
golem_wd = golem_wd
545-
),
546-
":latest"
547-
)
548-
)
549-
)
539+
write_there(
540+
sprintf(
541+
"docker build -f Dockerfile --progress=plain -t %s .\n",
542+
paste0(
543+
get_golem_name(
544+
golem_wd = golem_wd
545+
),
546+
":latest"
547+
)
548+
)
549+
)
550550

551-
write_there("Then, to push on heroku:\n")
551+
write_there("Then, to push on heroku:\n")
552552

553-
write_there("heroku container:login")
554-
write_there(
555-
sprintf("heroku create %s", apps_h)
556-
)
557-
write_there(
558-
sprintf("heroku container:push web --app %s", apps_h)
559-
)
560-
write_there(
561-
sprintf("heroku container:release web --app %s", apps_h)
562-
)
563-
write_there(
564-
sprintf("heroku open --app %s\n", apps_h)
565-
)
566-
write_there("> Be sure to have the heroku CLI installed.")
553+
write_there("heroku container:login")
554+
write_there(
555+
sprintf("heroku create %s", apps_h)
556+
)
557+
write_there(
558+
sprintf("heroku container:push web --app %s", apps_h)
559+
)
560+
write_there(
561+
sprintf("heroku container:release web --app %s", apps_h)
562+
)
563+
write_there(
564+
sprintf("heroku open --app %s\n", apps_h)
565+
)
566+
write_there("> Be sure to have the heroku CLI installed.")
567567

568-
write_there(
569-
sprintf("> You can replace %s with another app name.", apps_h)
570-
)
568+
write_there(
569+
sprintf("> You can replace %s with another app name.", apps_h)
570+
)
571571

572-
# The open is deported here just to be sure
573-
# That we open the README once it has been populated
574-
open_or_go_to(
575-
where = readme_output,
576-
open_file = open
577-
)
572+
# The open is deported here just to be sure
573+
# That we open the README once it has been populated
574+
open_or_go_to(
575+
where = readme_output,
576+
open_file = open
577+
)
578578
}

0 commit comments

Comments
 (0)