Posts
subscribe via RSS
Ruby on Rails GitHub Action Workflow
The goal is to start running tests that is part of my code base with each push to
main
and also any pull requests tomain
branch. This blog post will not cover any linting or deployment of the ruby on rails web application. The final yaml is tested with ruby version3.0.0
and ruby on rails version6.1.3.1
at the time of writing. Skip to end of the post to view the finished yaml.Update blog to ghost version 4 running in Kubernetes
This blog is running on the ghost blogging platform at the time of this writing. Its current running version 3.42.x and there was a new major version released recently and its currently on version 4.2.0. There are guides available on ghost documentation site to help make the upgrade when you have installed ghost on a server using the ghost-CLI tooling. However, none exists for ghost running on Kubernetes, or docker containers.
ghost-cli
update path seemed desirable compared to the clean install option especially because some database migration might be involved I assumed. Also, I didnt want to re-configure my site with google analytics etc.Faking .NET Framework ConfigurationSection for Unit Tests
Many are now familiar with using typed configuration that’s available in .net core and .net 5 with the help from Options pattern. However, if you are working on a projects targeting .NET Framework, you will know
ConfigurationSection
fromSystem.Configuration
assembly.Deploying GitHub packages docker image to Kubernetes
GitHub had announced a major feature on their platform which is GitHub packages. As well as hosting private npm or NuGet registries, GitHub packages also includes private docker registries. If you use GitHub for hosting your private project, it might make sense to use the private docker registry from GitHub.
GitHub Workflow for Haskell Yesod Docker image with Stack
In a previous post, I went over creating a Dockerfile for Haskell Yesod application. In this post, I will reuse part of the Dockerfile we ended up with and modify it so that we can build the docker image with GitHub Workflows.
Haskell Yesod Web Application in Docker
Yesod is one of the web frameworks available for Haskell. It seems to be the easiest one out of the multiple choices available to get started with.
Streaming MongoDB collection to S3 with dotnet core Pipelines
In this article, we will be looking into a memory-efficient way of streaming data from MongoDB collection into AWS S3 File Storage using the System.IO.Pipelines introduced in .Net Standard 2.1. I will be using MongoDB version 3.6 and going to be assuming that the appropriate indexes are created for the particular query.
Entity Framework Core Elegant Database Migrations on ECS
This article is insipired by the blog post Elegant Database Migrations on ECS from Adam Stepinski. The original article guides you through setting up an application thats setup with Django Framework. I am going to presribe a method with the following technologies:
IAM policy permissions for a public load balanced ecs fargate service on AWS CDK
Using AWS CDK with an admin user is all fine and straight forward. But, when it comes to creating a deployment pipeline with an IAM user specifically created with the actual permission needed, it can take a long time of trialing and failing to get to the final list of IAM policy statements.
Defensive coding with guard assertions in Javascript
Let’s take a look at a function that took a score between 1 and 100 and returned a rating out of 5.