I have a windows server 2019 host that has licensed installation of Visual Studio 2019. I also have docker on the host machine and am building a container image. I want to access host VS build tools from within the container. Wondering if I can use the host's license key to use build tools within my container? I don't want to install build tools directly in my container, since I am having problems doing that and also I am not sure if I will break any licensing terms since I will basically create this docker image and make it available for others to use. If my docker run can verify that the host is licensed for Visual Studio, I can then mount build tools from host into container. But am not sure if this case is covered by the supplemental license. Please suggest
If the above is possible, do I mount the host's key from windows registry? Suggestions on how to have my docker read the host's registry key?
Related
Can Visual studio 2019 be used as a local IDE for a solution running on a remote server? specifically i want to create a node.js application on a remote server hosted / provided by my ISP using Vstudio that's running on my local windows machine. I'd like the builds to run on the remote server. Is this possible?
To date, I have been connecting via ssh and just using VIM to create my apps. But I see that VStudio is free and has a lot of support for different types of apps so wanted to give a try.
I launched VStudio and created a new node.js application. Gave it a name (it was pointing to a local folder)
But then when I tried to do was go under Tools -> options ->Cross platform-> connection manager.
I successfully added a connection to my remote server. I know the connection worked because it detected that the remote server is running Ubuntu.
I must be still missing a step because when I try to build, instead of running the build against the remote server, it tries to build locally.
Maybe I can't do this. Maybe I need a local dev environment... build local and then copy the js files over to the target machine.
But jut thought I'd check
Thanks.
Can you start a container from visual studio but somehow specify to run the container on a remote container host?
My specific scenario - I have an asp.net core app, I added docker support and want to debug using docker when I press F5, however, I would like to use a remote (other computer on the network) installation of the docker host.
This question may not even make any sense as I have probably misunderstood what I'm doing.
I'm completely lost on this.
I have installed Docker on my Windows 10 machine. It is running. I shared out my C drive in Settings. I then created an ASP.NET Core 1.1 project with Docker support in Visual Studio 2017 RTM. Once the project was created, I hit F5 to run it. It built the container, deployed it to my local Docker installation, and launched my web browser. There is my web site running! Yay!
I'd now like to take that container, and deploy it to Docker running on a Linux machine, but there is no Publish option in Visual Studio for the docker-compose project. I can Publish the web project, but only to Azure or IIS.
I have looked all over for an answer to this, but all I can find is how to deploy locally, and I've already figured that out.
There is currently no publish option from within the tooling that will push an image to a registry, but you should be able to do this fairly easily. I would recommend to build the "release" configuration of the docker-compose project which should build an image locally. You can then use the docker command line to push that image to Docker Hub or Azure Container Registry, in which you can then pull it down to the Linux docker machine.
If your code is stored in a Git repo and it has a Dockerfile in the root, you can use Cycle to build the image on the server and deploy it there all in one easy to use interface.
Is it possible to automatically deploy to a Windows Azure VM after a successful build from Visual Studio/TFS?
You question is not totally clear if you are looking for a solution for Windows Azure Virtual Machines or Windows Azure Cloud Services.
Windows Azure Virtual Machines:
With Windows Azure Virtual Machine, you own your Virtual Machine and thats why you would need to configure any deployment mechanism you decide. The OS VHD deployed for Windows Azure could be the one you upload or the one you got for gallery, so there are no basic deployment services running unless someone configure them first. For example if you will choose Windows Server based Windows Azure Virtual Machines, then you can install Web Deployment Services in Azure VM, and then configure your VS/TFS to continious deploy it or you can setup FTP based services to deploy your app. This SO discussion talks more on this regard.
Windows Azure Cloud Service:
If you are looking a solution directly from VS then you can add post build scripts using Poweshell commands. This solution will not depend on TFS at all. There are a few solutions also described which are non powershell dependent as well.
Using Visual Studio and Team foundation server components you have ability to configure the combination of MsBuild and PowerShell scripts as described here and here (same as Herve).
If you are looking for a solution directly from Windows Azure TFS (Cloud Based), this article includes everything needed.
You can find some information about automatic deployment here: http://www.windowsazure.com/en-us/develop/net/common-tasks/continuous-delivery/
I have performance issue that can not be reproduced on my development machine.
Issue only reproduce on "deployment" machine so I have to run profiler right there (normally I use development machine for such type of work).
Can I do that remotely? For example can I use Visual Studio UI from my development machine to run profiler via network on deployment machine?
Probably I can install only "profiler" part (without VS) to deployment machine and run it from command-line via RDP?
What options do I have? Of course I can just install VS on deployment machine but I want to install as less things as possible as this machine is used for business and VS is not required there.
upd just googled Standalone Profiler http://www.microsoft.com/en-us/download/details.aspx?id=23205 Probably this is what I need...