# NOT RUN {
# recommended way of retrieving a registry: via a resource group object
rg <- AzureRMR::az_rm$
new(tenant="myaadtenant.onmicrosoft.com", app="app_id", password="password")$
get_subscription("subscription_id")$
get_resource_group("rgname")
# get the registry endpoint
dockerreg <- rg$get_acr("myregistry")$get_docker_registry()
dockerreg$login()
dockerreg$list_repositories()
# create an image from a Dockerfile in the current directory
call_docker("build -t myimage .")
# push the image
dockerreg$push("myimage")
# }
Run the code above in your browser using DataLab