Buscar

Javier Caceres – jacace

Javier's blog about C#, Software Architecture and Design

Categoría

Visual C#

My presentation on the Docker Global Mentor Week 2016 – Dublin

Last week I presented the session “Developing Web Apps in the Net Core For Docker” in the Docker Global Mentor Week 2016 – Dublin . This is the material I used in the presentation:

And this is the link that I referenced in the talk.

With special thanks to the attendes, I want to share the following awesome pics below:

El pase de diapositivas requiere JavaScript.

Thanks for reading,

Javier Andrés Cáceres Alvis

Microsoft Most Valuable Professional – MVP

Intel Black Belt Software Developer

Anuncios

Tools and resources for Docker

Following my presentation on the Docker Global Mentor Week 2016 – Dublin, I wanted to summarize the tools I’ve tested and the resources that I’ve created in the Docker and ASP.Net Core space as follows:

Client side Docker/Openshift plug-ins / tools:

  1. Docker Tools 2.1 For Eclipse Neon 4.6.1
  2. Docker Tools 1.0 For Eclipse Mars 4.5
  3. Docker Integration 2.5 For IntelliJ IDEA
  4. Openshift plug-in for Eclipse
  5. Docker Toolbox For Windows & Mac (not longer recommended, only if you have a machine running versions of Windows prior to Win10)
  6. Docker Tools For Visual Studio
  7. Tools to lint Dockerfiles

Server side Docker/Openshift plug-ins / tools:

  1. Jenkins Plugins for Docker
  2. Jenkins plugins for Openshift
  3. Docker Tools for TFS
  4. Openshift Extensions for Visual Studio and TFS

Videos:

  1. Building Web Apps with ASP.Net Core, MVC6 and Azure App Services (also in Spanish here)
  2. Running ASP.NET Core apps in Docker -English content coming soon- (also in Spanish here)
  3. Debugging Containers and running clusters in Azure Container Services
  4. Developing Web apps in the .Net Core for Docker -post comming soon-

 

Thanks for reading,

Javier Andrés Cáceres Alvis

Microsoft Most Valuable Professional – MVP

Intel Black Belt Software Developer

Visual Studio Tools for Docker Part I

[ 28-Nov-2016: at the time of writing of this blog entry, there are few Docker tools for Visual Studio including “Dockerfile Language Service (Preview)” which simply does syntax highlighting and it is not described here ]

This blog entry collects my experience using the Docker extension for Visual Studio which makes the deployment of .Net Core Apps to Docker easier. I have installed the following pre-requisites to perform this review:
1.Microsoft Visual Studio 2015 Update 3
2.Microsoft .NET Core 1.0.1 RTM VS 2015 Tooling Preview 2
3.Docker For Windows 1.12.3-beta30
4.Visual Studio Tools for Docker Preview 0.41.0

Note that Docker For Windows does not use the docker-machine (which in turn used Oracle Virtual Box) but hyper-v. “Docker For Windows” is the recommended tool to run Docker natively in Windows 10. For previous versions, use the Docker Toolbox. By native, I mean that you can run Windows Server Containers (which achieve isolation through namespace and process isolation) or Hyper-V Containers (which encapsulates each container in a light weight VM) and access them via docker commands in PowerShell:

1_new-aspnetcore-app

Docker for Windows also allows you to change the amount of CPU and RAM assigned to the Docker engine and sharing drives as seen in the images below. Note: sharing drives is not a specific feature of Windows Containers, it is only required for volume mounting in Linux containers but is required to share the volume where the Dockerfile is located.

El pase de diapositivas requiere JavaScript.

 

So what does this plug-in do? Well, it basically makes easier to generate the artifacts that are required to deploy ASP.NET Core Web Apps in Docker. This is achieved via scaffolding with yeoman. yo docker scaffolds the files (incl. docker file,  docker compose and the build script) into a project and then the language services make authoring Dockerfiles easier.

4-yo-dockerpng

Once you have the scaffolded files in place you can start to debug and modify the source code until is good to commit to the source code repo.

 

Regards,

Javier Andrés Cáceres Alvis

Microsoft Most Valuable Professional – MVP

Intel Black Belt Software Developer

Docker Global Mentor Week 2016 – Dublin

I just signed up to present  a dev topic to other community members interested in using Docker as promised previously:

This means that I will be presenting how to develop/debug web apps in the .Net Core / Visual Studio / C# for Docker and how to run Docker Swarm in Azure.

When? Thursday, November 17, 2016 6:30 PM to 8:30 PM

Where? Kings Building, May Lane, Smithfield, Dublin 1, Dublin, Dublin

What? Docker Global Mentor Week Meetup

More information in the link below:

Docker Global Mentor Week Meetup

Thursday, Nov 17, 2016, 6:30 PM

Workday
Kings Building, May Lane, Smithfield, Dublin 1, Dublin Dublin, IE

96 Dockers Attending

Hi All,For our next meetup we’ll return to Workday for Global Mentor Week. Whether you are a mentor who would like to give a brief presentation on a topic close to your heart or someone who is interested in learning, we’ll have something interesting for you.Please confirm in the RSVP whether you can provide mentorship and whether you have a topic…

Check out this Meetup →

More info on this global initiative here.

Cheers,

Javier Andrés Cáceres Alvis

Microsoft Most Valuable Professional – MVP

Intel Black Belt Software Developer

 

How to debug .NET Windows Services remotely with VS?

Hello dear readers,

I don’t want to repeat what others have said about this topic. In summary you need to download the VS remote debugger which matches your development environment version, the you need to compile a debug version, copy over the DLLs and PDBs to the target server, start the Remote Debugger as Admin, disable Windows Authentication -in the options menu- (please note that once the troubleshooting session is finished you need to disable and stop this process) and attach the local VS debugger to the remote debugger by entering the target server name.

The complete set of instructions is in the following blog:

http://geekswithblogs.net/TheCodeMonkey/archive/2009/05/17/remote-debugging-across-domains-made-easy.aspx

I just want to mention a limitation around remote debugging: it is only supported if the remote and local boxes are in the same domain, which is a pity because usually UAT or PROD environments are in different/controlled domains.

I am aware of different tricks to make this work (e.g.: creating two local users with the exact usernames and passwords in both boxes) but when will MS provide a clean way to debug  remotely in different domains?

Regards,

Javier Andrés Cáceres Alvis

Microsoft Most Valuable Professional – MVP

Intel Black Belt Software Developer

Review of the Technical Briefing “Teaching with Azure”

Hi folks,

I recently presented a session about Web Development and Deployment with ASP.NET Core 1.0 at the Azure Technical Briefing for Lectures in Dublin:

https://jacace.wordpress.com/2016/06/06/event-teaching-with-azure-technical-briefing/

I didn’t do any assumption about the audience in this video, so it provides a good introduction for anyone who is not familiar with Microsoft Web dev technologies.

During the presentation I provided an introduction to ASP.NET 4.6, ASP.NET Core, MV6 and Microsoft Azure App Service. I also recorded a video below.


The presentation I used is available below.

I have also added some pictures of the event below.

El pase de diapositivas requiere JavaScript.

Cheers,

Javier Andrés Cáceres Alvis

Microsoft Most Valuable Professional – MVP

Intel Black Belt Software Developer

 

 

 

Microsoft Most Valuable Professional 2016

Hello colleagues,

The post man has delivered a nice surprise: I was re-awarded by Microsoft as a Microsoft Most Valuable Professional. I feel very happy about this however I’ve been pretty busy lately and haven’t had a chance to blog about it. What does that mean for me? Well, to be honest I really enjoy sharing knowledge with people, sometimes teaching and sometimes learning from others so it’s always a nice surprise.

I have taken some (terrible I must say) pics of it below (actually I also added some pics of last year award which I have forgotten to blog about it 🙂 ).

El pase de diapositivas requiere JavaScript.

 

A big thank you to everyone reading this blog, to people attending to in-person events, to people asking questions (and thus enhancing the content shared here) and to Microsoft.

Cheers,

Javier Andrés Cáceres Alvis

Microsoft Most Valuable Professional – MVP

Intel Black Belt Software Developer

5 case studies about REST security

Hello readers,

From time to time (specially during the early stages of a project or definition time) you need to get involved with the security aspects of the solution. While we all agree that  a proper security expert is required on board (or maybe few of them) we also reckon that the basics about security should be known but all team members, specially if we’re securing external web sites or REST APIs.

Some time ago I checked how some of the big players (incl. AWS, Netflix, etc) implement  security and wanted to compare them in a power point presentation. I’m sharing this presentation in case someone else needs to learn about it too. Please note that these things kind of change frequently so you might need to revert back to the provider for up to date information.


There is also a good article in CodeProject:

http://www.codeproject.com/Articles/1005485/RESTful-Day-sharp-Security-in-Web-APIs-Basic

Cheers,

Javier Andrés Cáceres Alvis

Microsoft Most Valuable Professional – MVP

Intel Black Belt Software Developer

HTML5, HTML5 in VS – must knowns

Hello readers,

Sometimes I forget the most relevant features of HTML5 apart from the <canvas> element, video support and content specific tags. So decided to put together these slides with an overview of HTML5 beyond the basics that probably you already know. The funniest part is that is not only me, I frequently find people struggling to describe them too 🙂


I hope you find it useful.

Cheers,

Javier Andrés Cáceres Alvis

Microsoft Most Valuable Professional – MVP

Intel Black Belt Software Developer

Blog de WordPress.com.

Subir ↑