Why can't I see my Google Cloud Container Registry images? - node.js

When I navigate to https://console.cloud.google.com/gcr/images/ my list appears to be empty (see the attached screenshot), even though I am successfully using a couple of Firebase Functions. Is the link broken? Am I missing permissions or something? Where are my images? Why can't I access them?

You can automatically build and push images to a private registry when you commit code to Cloud Source Repositories, GitHub, or Bitbucket. Easily set up CI/CD pipelines with integration to Cloud Build or deploy directly to Google Kubernetes Engine, App Engine, Cloud Functions, or Firebase.
Pushing an image for the first time to the registry in your project you need Storage Admin (roles/storage.admin) at the Google Cloud project level. But if you are
pushing an image to an existing registry in your project then you need Role: Storage Legacy Bucket Writer (roles/storage.objectAdmin) on the registry storage
bucket.
For more details pushing and pulling images.
Also please check managing images.

Related

proper scm for a static website deployed to a storage account?

Can you point me to a url which describes proper SCM for a Static Website deployed to a Storage Account? I have a ReactJS website deployed as a static website to an Azure Storage Account. Currently I'm just pushing updated deployments via an Azure extension in VS Code.
Separately, I have an App Service which has an associated Deployment Center with a configured Pipeline and its own Azure DevOps source code repo. The App Service setup as I've described seems to have at least a decent start on some semblance of SCM.
When viewing the webpage for a storage account in the Azure portal, I don't see a "Deployment Center" left nav item like I do for an App Service in the portal. In the Azure portal, looks like a storage account can only have a single static website b/c "static website" exists as a single left nav item for a particular storage account page in the Azure portal. If I click on the "static website" left nav item for my deployed ReactJS app, I don't see any type of additional hook into the Deployment Center. A "git status" on my local code folder indicates that the folder is not a git repo.
So I'd like to get my static website code into an Azure DevOps repo. I need the code to be source-controlled and since my App Service is in an Azure DevOps repo, I'd like the same for my static website code for consistency. I'm also assuming that the code needs to be in an Azure DevOps repo in order to easily and fully leverage Azure DevOps functionality like pipelines, etc.
So can you advise how I can get from point A to point B for this scenario or if there may be constraints or alternatives with what I'm trying to achieve here?
You can make use of Azure File Copy task to push the build artifacts to Blob Storage. From the documentation link:
Use this task in a build or release pipeline to copy files to
Microsoft Azure storage blobs or virtual machines (VMs).
The task is used to copy application files and other artifacts that
are required in order to install the app; such as PowerShell scripts,
PowerShell-DSC modules, and more.
You would need to push the artifacts to $web blob container as this container is used to serve static website.
You can learn more about it here: https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/deploy/azure-file-copy?view=azure-devops

how to pull new changes to google app engine using command shell

I have a node React project in Bitbucket which is already deployed in Google App Engine. I have made some changes to the my application and I would like to know how to deploy the new changes to the Google App Engine using command shell.
I have tried git pull command it says that there is no repository, even if I can see the project files.
Google Cloud Support here!
With the amount of details given and seeing what you are trying to do, I think that the best solution for you would be using Cloud Source Repositories.
If you end up using Cloud Source Repositories, here you'll find a guide explaining how to mirror a Bitbucket repository. After mirroring the desired repository, as you are using Google App Engine, you should read this documentation in which it is described how to integrate Cloud Source Repositories with Google App Engine.
Please bear in mind that using Cloud Source Repositories might involve additional charges if you exceed the free tier, this is explained in the pricing section for Cloud Source Repositories.
If you don't want to use Cloud Source Repositories, here you'll find how to clone a Bitbucket repository.

What's the best way to set up my Azure Node.js app service with an Azure Storage/Blob service

I have an Azure node.js "App Service" already set up and running, working just fine. It's connected to an Azure DB, all that works great.
What I don't have is any sort of Storage / Blob service on my account whatsoever, and I'm having trouble finding documentation about the best way to set Blob Storage up to work with my App Service.
My goal is to be able to store and retrieve files, including primarily image files (.png, .jpg) and pdfs. I think Blob storage is what I'm looking for, and I'll want to set up an API on my node.js App Service for web clients to be able to upload and download files on the Storage service.
There are 2 Azure Storage blob npm packages you can use and add to your project dependencies:
azure-storage https://www.npmjs.com/package/azure-storage
#azure/storage-blob https://www.npmjs.com/package/#azure/storage-blob
The 1st package is the most widely used azure-storage Node.js SDK. Supports blob/queue/file/table.
The 2nd package is the latest released package for blob, more lightweight and based on the latest Azure Storage architecture. Supports async methods, promise and HTTP pipeline injection.
You can go to their npm package or GitHub page for their samples.

How to upload/run custom Windows Application on Azure Remote App

I am working with Azure Remote App service. I can already use the default published applications on Remote App collection. But I want to upload my own windows application on Remote App collection but have no clue on how to do that.
Could some one guide me to some good resource or a direct way to accomplish this?
Thanks
To achieve what you want, you need to create a template image with your custom application in it and then use that image to create an Azure RemoteApp collection.
To create a template image with your custom application, you can follow these steps: https://azure.microsoft.com/en-us/documentation/articles/remoteapp-image-on-azurevm/ (basically, create Azure VM, install your app on the VM, sysprep, save the image to Azure RemoteApp)
Then, your image will appear in the list of images when creating a collection and you can follow the steps here to create a cloud collection: https://azure.microsoft.com/en-us/documentation/articles/remoteapp-create-cloud-deployment/ (pick the aforementioned image)
We have more documentation about the service here: http://azure.microsoft.com/en-us/documentation/services/remoteapp/ and we have other means of support here: https://www.remoteapp.windowsazure.com/en/support.aspx
/cd
P.S.: I work on Azure RemoteApp

image folder overwrite on window azure

i am new to the windows azure web application deployment.
i developed mvc web application and publish to the windows azure cloud platform.
i have one folder name Messages, that contains the images that i have upload via application. now after user upload images in web app once the app is published on cloud.
next time when i republish the application to the cloud
that "Messages" folder contents (images) are removed.
can you please help me, how to resolve this?
Regards, Brijesh vaidya
This is the expected behavior. Anytime you redeploy your application, new VMs are created for your application. You should not store anything that you want to persist on VM. Instead store them in blob storage. So in your case, you should upload the image and once the image is uploaded, transfer it to blob storage. You may want to check out this hands-on-lab in Azure training kit: https://github.com/WindowsAzure-TrainingKit/HOL-IntroToCloudServices-VS2012

Resources