<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Docker on Cathrine Wilhelmsen</title>
    <link>https://www.cathrinewilhelmsen.net/tags/docker/</link>
    <description>Recent content in Docker on Cathrine Wilhelmsen</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <copyright>© Cathrine Wilhelmsen</copyright>
    <lastBuildDate>Sun, 08 Aug 2021 00:00:00 +0200</lastBuildDate>
    <atom:link href="https://www.cathrinewilhelmsen.net/tags/docker/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Developing in Containers using Visual Studio Code (T-SQL Tuesday #140)</title>
      <link>https://www.cathrinewilhelmsen.net/developing-in-containers-using-visual-studio-code/</link>
      <pubDate>Tue, 13 Jul 2021 21:30:56 +0200</pubDate>
      <guid>https://www.cathrinewilhelmsen.net/developing-in-containers-using-visual-studio-code/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://www.centinosystems.com/blog/sql/t-sql-tuesday-140-what-have-you-been-up-to-with-containers&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;img src=&#34;https://www.cathrinewilhelmsen.net/images/sql/TSQLTuesdayCircle.svg&#34; alt=&#34;T-SQL Tuesday logo.&#34; width=&#34;80&#34; height=&#34;80&#34; class=&#34;alignleft width-80&#34; loading=&#34;lazy&#34; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;This month&amp;rsquo;s &lt;a href=&#34;http://tsqltuesday.com/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;T-SQL Tuesday&lt;/a&gt; is hosted by &lt;a href=&#34;https://www.centinosystems.com/blog/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Anthony Nocentino&lt;/a&gt; (&lt;a href=&#34;https://twitter.com/nocentino&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;@nocentino&lt;/a&gt;). He wants to know &lt;a href=&#34;https://www.centinosystems.com/blog/sql/t-sql-tuesday-140-what-have-you-been-up-to-with-containers/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;what we&amp;rsquo;ve been up to with containers&lt;/a&gt;. Perfect timing, because I have just spent the last couple of weeks learning how to develop in containers using Visual Studio Code! I was planning to write this for myself anyway, but perhaps it can be interesting for others as well 🤓&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-is-the-use-case&#34;&gt;What is the use case?&lt;/h2&gt;&#xA;&lt;p&gt;One of my clients are using &lt;a href=&#34;https://www.getdbt.com/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;dbt&lt;/a&gt; (Data Build Tool) for their data transformations. In short, this means that developers write data transformations in SQL as SELECT statements. All SQL code can be combined with &lt;a href=&#34;https://jinja.palletsprojects.com/en/3.0.x/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Jinja&lt;/a&gt; templates. Inside of these Jinja templates, developers can reference other tables, use control logic, or define common SQL code snippets as reusable macros. Dbt then compiles the SQL+Jinja code into pure SQL.&#xA;&lt;span id=&#34;continue-reading&#34;&gt;&lt;/span&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Creating a SQL Server 2019 Demo Environment in a Docker Container</title>
      <link>https://www.cathrinewilhelmsen.net/sql-server-2019-docker-container/</link>
      <pubDate>Sun, 02 Dec 2018 17:15:02 +0100</pubDate>
      <guid>https://www.cathrinewilhelmsen.net/sql-server-2019-docker-container/</guid>
      <description>&lt;p&gt;&#xA;&#xA;&#xA;&#xA;&lt;img src=&#34;https://www.cathrinewilhelmsen.net/images/2018/Docker.svg&#34; alt=&#34;Docker logo.&#34; width=&#34;80&#34; height=&#34;80&#34; class=&#34;alignleft width-80&#34; loading=&#34;lazy&#34; /&gt;&lt;/p&gt;&#xA;&lt;p&gt;About a month ago, I learned something new. I learned how to run SQL Server 2019 in Docker and how to set up my demo environment in a container. Cool stuff! I like whales. Whales are cool.&lt;/p&gt;&#xA;&lt;p&gt;While learning, I started writing this blog post. Then I got &lt;a href=&#34;https://www.youtube.com/watch?v=Faa2dHJNFqQ&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;distracted&lt;/a&gt; and never finished it. This weekend, I had to set up my demo environment again. It was the perfect opportunity to update the content and finally publish this post.&lt;/p&gt;&#xA;&lt;p&gt;(&lt;em&gt;Why did I have to set up everything again? Oh, it&amp;rsquo;s a long story that involves disk cleanup and a Cathrine who likes to delete things to keep her computer tidy. Ok, it&amp;rsquo;s not really a long story. It was more like &amp;ldquo;oops, I accidentally deleted my container&amp;rdquo;.&lt;/em&gt;)&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Anyway! Back to the actual content.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;In this post, I share my approach and code snippets for:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Installing Docker&lt;/li&gt;&#xA;&lt;li&gt;Getting SQL Server 2019&lt;/li&gt;&#xA;&lt;li&gt;Running SQL Server 2019 in a Docker Container&lt;/li&gt;&#xA;&lt;li&gt;Restoring Demo Databases (AdventureWorks and WideWorldImporters)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;installing-docker&#34;&gt;Installing Docker&lt;/h2&gt;&#xA;&lt;p&gt;I knew &lt;em&gt;nothing&lt;/em&gt; about Docker or containers a month ago. But! I&amp;rsquo;m lucky to have smart friends 🤩 &lt;a href=&#34;https://dbafromthecold.com/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Andrew Pruski&lt;/a&gt; (&lt;a href=&#34;https://twitter.com/dbafromthecold&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;@dbafromthecold&lt;/a&gt;) wrote &lt;a href=&#34;https://dbafromthecold.com/2018/09/25/running-sql-server-2019-ctp-in-a-docker-container/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Running SQL Server 2019 CTP in a Docker container&lt;/a&gt; as part of his brilliant &lt;a href=&#34;https://dbafromthecold.com/2017/03/15/summary-of-my-container-series/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;blog post series on containers&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I decided to start with his walkthrough and do exactly what he did. It worked pretty well for me! See below 👇🏻&#xA;&lt;span id=&#34;continue-reading&#34;&gt;&lt;/span&gt;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
