image push/dynamic image not working
I tried to reproduce the example from https://cloudyr.github.io/googleComputeEngineR/articles/rstudio-team.html because I have tried so many things but cannot get gce_push_registry() to work properly. What happens is, that the gce_push_registry() command works really fast (not the long waiting time that is announced in the article), but seems to be successful. BTW: Not mentioned in the documentation, but one first needs to add ssh keys.
/home/rstudio/.docker/config.json configured to use this credential helper for GCR registries 2020-05-28 08:32:27> Uploading to Google Container Registry: https://console.cloud.google.com/gcr/images/list?project=finance-unili-fff-pension [1] "gcr.io/finance-unili-fff-pension/my_rstudio"
I cannot find the image in my gcloud account at the mentioned address. When I try to setup a second vm with similar settings it starts something, but no rstudio server is responding at the new IP. Why? Why is my image not showing up at the mentioned (tagged) address?
vm <- gce_vm(template = "rstudio",
name = "rstudio-team",
username = "mark", password = "mark1234",
predefined_type = "n1-highmem-2")
vm <- gce_ssh_setup(vm,
key.pub = "~/.ssh/id_rsa.pub",
key.private = "~/.ssh/id_rsa")
gce_rstudio_adduser(vm, username = "bill", password = "flowerpot")
gce_push_registry(vm,
save_name = "my_rstudio",
container_name = "rstudio")
tag <- gce_tag_container("my_rstudio")
vm2 <- gce_vm(name = "rstudio-big",
predefined_type = "n1-standard-2",
template = "rstudio",
dynamic_image = tag,
username = "me", password = "mypassword")
gce_vm_stop(vm2)
gce_vm_stop(vm)
sessioninfo()
R version 4.0.0 (2020-04-24) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 20.04 LTS
Matrix products: default BLAS/LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.8.so
locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=C LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=Cattached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] googleComputeEngineR_0.3.0.9000
loaded via a namespace (and not attached): [1] codetools_0.2-16 listenv_0.8.0 future_1.17.0 digest_0.6.25 assertthat_0.2.1 R6_2.4.1
[7] jsonlite_1.6.1 httr_1.4.1 rlang_0.4.6 curl_4.3 fs_1.4.1 googleAuthR_1.2.1 [13] tools_4.0.0 glue_1.4.1 parallel_4.0.0 compiler_4.0.0 askpass_1.1 gargle_0.5.0
[19] globals_0.12.5 memoise_1.1.0 openssl_1.4.1
I have the exact same problem.