<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Posts on Craig Barr | Platform Engineering</title>
    <link>https://www.craigbarr.link/post/</link>
    <description>Recent content in Posts on Craig Barr | Platform Engineering</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <lastBuildDate>Mon, 04 Apr 2022 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://www.craigbarr.link/post/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Accelerating development with the VS Code bridge for Kubernetes</title>
      <link>https://www.craigbarr.link/post/kubernetes-bridge/</link>
      <pubDate>Mon, 04 Apr 2022 00:00:00 +0000</pubDate>
      <guid>https://www.craigbarr.link/post/kubernetes-bridge/</guid>
      <description>&lt;p&gt;&lt;strong&gt;UPDATE:&lt;/strong&gt; 16/Oct/2024. This article is deprecated. Microsoft have &lt;a href=&#34;https://github.com/Azure/Bridge-To-Kubernetes/issues/645&#34;&gt;focused their attention away from the Kubernetes bridge project&lt;/a&gt;. It you are looking for supported alternative checkout &lt;a href=&#34;https://github.com/Azure/Bridge-To-Kubernetes/issues/645#issuecomment-2367912173&#34;&gt;mirrord&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Let&amp;rsquo;s say your code runs on Kubernetes? Cool!&lt;/p&gt;&#xA;&lt;p&gt;But during development you run your service locally?&lt;/p&gt;&#xA;&lt;p&gt;Ok, now what if you had something already running in a Kubernetes Cluster, but you wanted to replace it with something running locally so that you could debug or test something in development?&lt;/p&gt;</description>
    </item>
    <item>
      <title>Publishing automated events to Microsoft Teams</title>
      <link>https://www.craigbarr.link/post/microsoft-teams-webhooks/</link>
      <pubDate>Sat, 02 Jan 2021 00:00:00 +0000</pubDate>
      <guid>https://www.craigbarr.link/post/microsoft-teams-webhooks/</guid>
      <description>&lt;p&gt;Automated event messages can be sent to channels in Microsoft Teams from third-party systems with a webhook.&lt;/p&gt;&#xA;&lt;h2 id=&#34;establishing-the-connector&#34;&gt;Establishing the connector&lt;/h2&gt;&#xA;&lt;p&gt;To create a webhook for a given channel click on the &amp;ldquo;&lt;code&gt;...&lt;/code&gt;&amp;rdquo; button in the top-right of the screen and choose &lt;strong&gt;Connectors&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://www.craigbarr.link/images/microsoft-teams-webhooks/ms-teams-connector.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Find the connector called &lt;code&gt;Incoming Webhook&lt;/code&gt; and click &lt;strong&gt;Configure&lt;/strong&gt;. There is also a list of out-of-the-box connectors that can be choosen as an alternative to a webhook for some integrations.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Infrastructure-as-code for Websites, Blogs and Single-Page Applications on AWS</title>
      <link>https://www.craigbarr.link/post/aws-cloudformation-spa/</link>
      <pubDate>Wed, 06 Nov 2019 08:24:18 +1000</pubDate>
      <guid>https://www.craigbarr.link/post/aws-cloudformation-spa/</guid>
      <description>&lt;p&gt;In this article, we are going to look at the power of infrastructure-as-code with AWS Cloudformation to deploy our website, blog or single-page application.&lt;/p&gt;&#xA;&lt;p&gt;Our stack is production ready and contains the following characteristics&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Fast &amp;amp; Global&lt;/strong&gt;: No matter the locations of our users, they will gain fast access through the Cloudfront content delivery network.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Secure&lt;/strong&gt;: All endpoints are protected with HTTPS to ensure the website is hosted on a secure connection.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Automated&lt;/strong&gt;: All changes will be 100% automated using Cloudformation. This will save us a lot of time and prevent us from needing to jump between various consoles doing manual steps.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Reusable&lt;/strong&gt;: Our stack is parameterised so can be easily reused for different domain names.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Serverless&lt;/strong&gt;: We don&amp;rsquo;t require any servers to be managed by us.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;No Idle Cost&lt;/strong&gt;: It won&amp;rsquo;t cost us anything to run our application in an idle state. In fact it probably won&amp;rsquo;t cost anything at all unless we are going to get some serious load on our application.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;anatomy-of-the-stack&#34;&gt;Anatomy of the stack&lt;/h2&gt;&#xA;&lt;p&gt;Our stack is going to be represented in an AWS Cloudformation template and contains four key components:&lt;/p&gt;</description>
    </item>
    <item>
      <title>The Easiest Way to Create and Deploy Certificates on AWS</title>
      <link>https://www.craigbarr.link/post/aws-ssl-certificates/</link>
      <pubDate>Mon, 04 Nov 2019 00:00:00 +0000</pubDate>
      <guid>https://www.craigbarr.link/post/aws-ssl-certificates/</guid>
      <description>&lt;p&gt;The easiest way to create and deploy SSL certificates for AWS services (such as CloudFront, API Gateway, Elastic Load Balancer etc) is through the AWS Certificate Manager.&#xA;This approach automates the more cumbersome certificate provisioning steps and ensures that the deployment of the certificate is usually as simple as selecting it from a dropdown within the desired AWS service that requires it (or by referencing the ARN if you are managing infrastructure-as-code).&lt;/p&gt;</description>
    </item>
    <item>
      <title>How to update your website just by changing files on your computer</title>
      <link>https://www.craigbarr.link/post/github-actions-static-website/</link>
      <pubDate>Wed, 11 Sep 2019 00:00:00 +0000</pubDate>
      <guid>https://www.craigbarr.link/post/github-actions-static-website/</guid>
      <description></description>
    </item>
    <item>
      <title>Taking control of your finances with Up bank</title>
      <link>https://www.craigbarr.link/post/open-banking/</link>
      <pubDate>Wed, 11 Sep 2019 00:00:00 +0000</pubDate>
      <guid>https://www.craigbarr.link/post/open-banking/</guid>
      <description></description>
    </item>
    <item>
      <title>Creating Google OAuth Credentials for 3rd Party Applications</title>
      <link>https://www.craigbarr.link/post/google-oauth-credentials/</link>
      <pubDate>Mon, 01 Jul 2019 00:00:00 +0000</pubDate>
      <guid>https://www.craigbarr.link/post/google-oauth-credentials/</guid>
      <description>&lt;p&gt;OAuth credentials are used for third party applications to authenticate with Google. As an administrator, you may be required to generate these credentials and share them securely with authorised people so they can be defined as configuration for applications.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-you-need-to-know&#34;&gt;What you need to know&lt;/h2&gt;&#xA;&lt;p&gt;Before you can create an OAuth credential, you will need to know the following details&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Authorized JavaScript origins&lt;/strong&gt;: The URL that traffic will come from&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Authorized Redirect URIs&lt;/strong&gt;: The URL where OAuth should redirect to after login&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;what-you-need-to-provide&#34;&gt;What you need to provide&lt;/h2&gt;&#xA;&lt;p&gt;Once a credential has been created, you will need to share the following with the third party application developer or administrator.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Tips for saving money on your monthly AWS spend</title>
      <link>https://www.craigbarr.link/post/aws-cost-saving/</link>
      <pubDate>Mon, 25 Mar 2019 00:00:00 +0000</pubDate>
      <guid>https://www.craigbarr.link/post/aws-cost-saving/</guid>
      <description>&lt;p&gt;The problem of finding ways to reduce costs on Amazon Web Services is often not an easy one but in this article I hope to highlight a set of common approaches that I have found to be useful in cutting costs. It&amp;rsquo;s important to note that some of these are a quick win while others may be considerably more complex to implement. As a rule, if you are already tagging your resources with ownership that aligns accurately to your business cost centers, then detecting areas for optimisation will be easier to achieve in a reasonable timeframe. The correction and realisation of the cost saving can range from being a simple 5 minute reconfiguration to a lengthy re-architecture project depending on the approach listed.&lt;/p&gt;</description>
    </item>
    <item>
      <title>How to use Maven for complex build processes</title>
      <link>https://www.craigbarr.link/post/maven/</link>
      <pubDate>Sun, 04 Nov 2018 20:46:49 -0600</pubDate>
      <guid>https://www.craigbarr.link/post/maven/</guid>
      <description>&lt;p&gt;Don&amp;rsquo;t.&lt;/p&gt;&#xA;&lt;p&gt;&amp;hellip;but if you have to and you want Apache Maven to make your life easier rather than bring you eternal pain, you might find these 8 tips and tricks useful.&lt;/p&gt;&#xA;&lt;h6 id=&#34;tip-1-use-profile-activation-conditions-to-do-different-things-based-on-operating-system&#34;&gt;Tip #1: Use profile activation conditions to do different things based on Operating System&lt;/h6&gt;&#xA;&lt;p&gt;In the below example on a &lt;code&gt;mvn clean&lt;/code&gt; the message &lt;code&gt;I will only run on Linux&lt;/code&gt; is printed on Linux but not on Mac.&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;&amp;lt;profiles&amp;gt;&#xA;  &amp;lt;profile&amp;gt;&#xA;    &amp;lt;id&amp;gt;platform-unix&amp;lt;/id&amp;gt;&#xA;    &amp;lt;activation&amp;gt;&#xA;      &amp;lt;os&amp;gt;&#xA;        &amp;lt;family&amp;gt;unix&amp;lt;/family&amp;gt;&#xA;        &amp;lt;name&amp;gt;!mac os x&amp;lt;/name&amp;gt;&#xA;      &amp;lt;/os&amp;gt;&#xA;    &amp;lt;/activation&amp;gt;&#xA;    &amp;lt;build&amp;gt;&#xA;      &amp;lt;plugins&amp;gt;&#xA;        &amp;lt;plugin&amp;gt;&#xA;          &amp;lt;groupId&amp;gt;org.apache.maven.plugins&amp;lt;/groupId&amp;gt;&#xA;          &amp;lt;artifactId&amp;gt;maven-antrun-plugin&amp;lt;/artifactId&amp;gt;&#xA;          &amp;lt;version&amp;gt;1.7&amp;lt;/version&amp;gt;&#xA;          &amp;lt;executions&amp;gt;&#xA;            &amp;lt;execution&amp;gt;&#xA;              &amp;lt;id&amp;gt;clean-message&amp;lt;/id&amp;gt;&#xA;              &amp;lt;phase&amp;gt;clean&amp;lt;/phase&amp;gt;&#xA;              &amp;lt;goals&amp;gt;&#xA;                &amp;lt;goal&amp;gt;run&amp;lt;/goal&amp;gt;&#xA;              &amp;lt;/goals&amp;gt;&#xA;              &amp;lt;configuration&amp;gt;&#xA;                &amp;lt;target&amp;gt;&#xA;                  &amp;lt;echo message=&amp;#34;I will only run on Linux&amp;#34;/&amp;gt;&#xA;                &amp;lt;/target&amp;gt;&#xA;              &amp;lt;/configuration&amp;gt;&#xA;            &amp;lt;/execution&amp;gt;&#xA;          &amp;lt;/executions&amp;gt;&#xA;        &amp;lt;/plugin&amp;gt;&#xA;      &amp;lt;/plugins&amp;gt;&#xA;    &amp;lt;/build&amp;gt;&#xA;  &amp;lt;/profile&amp;gt;&#xA;&amp;lt;/profiles&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h6 id=&#34;tip-2-use-maven-dependency-plugin-if-you-need-to-download-dependencies-to-custom-locations-in-your-project&#34;&gt;Tip #2: Use maven-dependency-plugin if you need to download dependencies to custom locations in your project&lt;/h6&gt;&#xA;&lt;p&gt;In the below example, every dependency with a scope set of &lt;code&gt;runtime&lt;/code&gt; will be copied to the &lt;code&gt;lib&lt;/code&gt; directory of the project except for the artifacts with the ID of &lt;code&gt;coreTest&lt;/code&gt; and &lt;code&gt;libTest&lt;/code&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>No more pets! Releasing cattle to the Oracle Public Cloud</title>
      <link>https://www.craigbarr.link/post/oracle-public-cloud/</link>
      <pubDate>Sun, 04 Nov 2018 20:46:49 -0600</pubDate>
      <guid>https://www.craigbarr.link/post/oracle-public-cloud/</guid>
      <description>&lt;p&gt;At the dawn of the 2010s, a number of cloud thought leaders were looking for a good way to explain to customers how cloud providers, cloud native apps, and cloud more generally &lt;a href=&#34;http://cloudscaling.com/blog/cloud-computing/the-history-of-pets-vs-cattle/&#34;&gt;were fundamentally different from what had come and gone before&lt;/a&gt;. For cloud pioneer Randy Bias, there was a light that went on above his head when he realised he had found the perfect elevator pitch.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;Cloud infrastructure is like cattle, we no longer think of our servers as pets.&lt;/strong&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Running WebLogic 12.2.1 on Docker: more hoops than you&#39;d hope</title>
      <link>https://www.craigbarr.link/post/weblogic-12-on-docker/</link>
      <pubDate>Sun, 04 Nov 2018 20:46:49 -0600</pubDate>
      <guid>https://www.craigbarr.link/post/weblogic-12-on-docker/</guid>
      <description>&lt;p&gt;It’s a sign of the times when Oracle mention that the latest version (12.2.1) of their Oracle WebLogic Java EE Application Server was released last week on Docker shortly before it was released as a plain old executable installer.&lt;/p&gt;&#xA;&lt;p&gt;But before you get too excited, let me just say one thing. If you were hoping to run something like this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;docker run -d oracle/weblogic:12.2.1&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;…and then, voilà! …you might be a tad bit underwhelmed.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Supercharge the value of your Java investments with WebLogic Server on Docker</title>
      <link>https://www.craigbarr.link/post/supercharge-weblogic-on-docker/</link>
      <pubDate>Sun, 04 Nov 2018 20:46:49 -0600</pubDate>
      <guid>https://www.craigbarr.link/post/supercharge-weblogic-on-docker/</guid>
      <description>&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt; &lt;em&gt;WebLogic Applications can be deployed to Oracle Container Cloud using a separate application image and volume mapping to the official WebLogic image for Docker at runtime &lt;a href=&#34;https://www.youtube.com/watch?v=rbcDwEhSsuE&#34;&gt;as shown in this 2 minute video&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;The &lt;a href=&#34;http://blog.rubiconred.com/oracle-container-cloud-offerings/&#34;&gt;Oracle Container Cloud Service&lt;/a&gt; is an easy way to start running Docker containers on the Cloud. When combined with the &lt;a href=&#34;http://blog.rubiconred.com/a-first-look-at-the-oracle-container-registry/&#34;&gt;Oracle Container Registry&lt;/a&gt;, we can pull down official pre-built images for platforms such as WebLogic Server, Coherence, Tuxedo and of course the Oracle Database. In a few minutes, they&amp;rsquo;ll be &lt;a href=&#34;http://blog.rubiconred.com/zero-to-weblogic-in-5-minutes/&#34;&gt;running out-the-box&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Tips and tricks for configuring WebLogic Resources on Docker boot</title>
      <link>https://www.craigbarr.link/post/weblogic-resources-on-docker-boot/</link>
      <pubDate>Sun, 04 Nov 2018 20:46:49 -0600</pubDate>
      <guid>https://www.craigbarr.link/post/weblogic-resources-on-docker-boot/</guid>
      <description>&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt; &lt;em&gt;I will show you that the MedRec sample application for WebLogic can be used for deploying Java artifacts and configuring WebLogic resources on first boot of a WebLogic Docker image. We can do this with a 5 line &lt;code&gt;Dockerfile&lt;/code&gt; and a &lt;code&gt;medrec.py&lt;/code&gt; script which customises the WebLogic domain. This example is available to play with on Github at &lt;a href=&#34;https://github.com/craigbarrau/medrec-monolith&#34;&gt;this link&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;In previous blogs, we showed &lt;a href=&#34;http://blog.rubiconred.com/zero-to-weblogic-in-5-minutes/&#34;&gt;how to run WebLogic with Java Applications on Docker both locally and on Oracle Container Cloud Service&lt;/a&gt;. We achieved this by &lt;a href=&#34;http://blog.rubiconred.com/supercharge-the-value-of-your-jee-investments-with-weblogic-server-on-docker/&#34;&gt;extending the official WebLogic image&lt;/a&gt; from &lt;a href=&#34;http://blog.rubiconred.com/a-first-look-at-the-oracle-container-registry/&#34;&gt;Oracle Container Registry&lt;/a&gt; either directly or by linking up the WebLogic &lt;code&gt;autodeploy&lt;/code&gt; directory from another container to deploy our applications.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Zero to WebLogic in 5 Minutes</title>
      <link>https://www.craigbarr.link/post/weblogic-on-oracle-container-cloud-service/</link>
      <pubDate>Sun, 04 Nov 2018 20:46:49 -0600</pubDate>
      <guid>https://www.craigbarr.link/post/weblogic-on-oracle-container-cloud-service/</guid>
      <description>&lt;blockquote&gt;&#xA;&lt;p&gt;Did you know that you can &lt;em&gt;integrate&lt;/em&gt; the Oracle Container Registry and Container Cloud to rapidly deliver a WebLogic environment?&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;In this post, I will show you how it is done in 3 easy steps.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;strong&gt;Integrate&lt;/strong&gt; the Registry with Oracle Container Cloud&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Spin up&lt;/strong&gt; a WebLogic Stack on the Cloud&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Access&lt;/strong&gt; your Cloud-based instance&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Firstly make sure you have an Oracle account and are signed into &lt;strong&gt;&lt;a href=&#34;https://container-registry.oracle.com&#34;&gt;container-registry.oracle.com&lt;/a&gt;&lt;/strong&gt;. You will need to accept the terms and restrictions as I mention in &lt;a href=&#34;http://blog.rubiconred.com/a-first-look-at-the-oracle-container-registry&#34;&gt;my previous article&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
