Local Development with Azure API Management Gateway
This was rather tricky to figure out so I thought I would share my experience with setting up Visual Studio with a local development subscription of Azure API Management (APIM) Gateway. It turns out that running a local copy of the Azure API Management Gateway is possible through either Docker or Kubernetes. Since...
PostgreSQL for .NET Developers
Venturing into microservice architecture has forced me to become more aware of other technologies that may be more performant, cheaper, and or a better match for that specific need. PostgreSQL ("Postgres") is a relational database that is very comparable to Oracle. It's not that different than MSSQL but has some serious quirks. The more I learn...
Docker: MSSQL Server
Microsoft has created several images for MSSQL Server on Docker Hub. They have support for Windows and Ubuntu containers. It's very easy to customize these images with setup scripts, execute commands, or build a custom image.
Pulling a Ubuntu 2019 SQL Server
docker pull mcr.microsoft.com/mssql/server:2019-CU5-ubuntu-16.04
Pulling a Windows 2019 SQL Server
docker pull mcr.microsoft.com/mssql/server:2019-latest
DockerHub: Microsoft SQL Server
GitHub: Azure Data SQL Samples...
Docker Tips & Tricks
These are some useful random tricks I've learned about Docker over the years.
Getting Shell Access to a Running Container
docker exec -it containername /bin/bash
Remove All Running Containers
This command works by removing all running containers with force. The command "docker ps -aq" returns all running containers and only displays the container ID.
docker rm -f $(docker ps -aq)
Copying Files...
HTTPie in PowerShell
HTTPPie is very easy to use command-line HTTP utility for making requests. It features JSON support, syntax highlighting, persistent sessions, and is capable of downloading files, extension by plugins, and much more. It's easy as pie!
Installation
You will need Python 3 installed and update PIP to the latest version.
pip install -U httpie
https://httpie.org/
Features
Let's look at what this does and...
Customize PowerShell in Windows Terminal
The all-new Windows Terminal is truly amazing and packed with many features. It is also fully customizable! I highly recommend configuring Windows Terminal to have a customized background and to install Oh My Posh.
Setting a Custom Background
If you go to the settings under Windows Terminal it will open a "settings.json" file that is editable.
Settings
Vim
I'm a...
Docker MSBuild
I created an image specifically for building legacy ASP.NET code. This is publicly available on Docker hub and GitHub. You may pull it and use it at your own discretion.
https://hub.docker.com/repository/docker/mrjamiebowman/msbuild
GitHub: Docker MSBuild
How to Use
First, you'll want to make sure your local Docker daemon is running Windows Containers.
Pulling the image with Docker is very easy...
docker push mrjamiebowman/msbuild
Once you have...
Azure Kubernetes Service (AKS)
I had some issues with Getting Azure AKS to work with PowerShell locally so I decided to document this. This post shows how I was able to get started using Azure Kubernetes Service (AKS) with PowerShell. Azure provides a Kubernetes service that is capable of orchestrating Windows containers as well as Linux containers. This makes AKS...
Docker: NuGet Server Windows Server Core
I've set up a NuGet Server on a Dockerized Windows Server Core IIS image. This is a multi-stage build that includes an MSBuild stage to compile NuGet Server (ASP.NET) and copy that into the final image. The Dockerfile installs useful utilities like Chocolatey and Vim.
GitHUb: Docker NuGet Server Windows Core
Also, if you're looking...
Kong API Management
Kong is an open-source platform that has tools for API Gateways, API Management, Governance, and Kubernetes. API Gateways provide a way to proxy traffic to different services. This is very beneficial for many reasons. By acting as a single entry point the API gateway is responsible for routing traffic. This means that if a company wanted to...