<?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 Matt Bolitho</title><link>https://mattbolitho.github.io/tags/docker/</link><description>Recent content in Docker on Matt Bolitho</description><generator>Hugo -- gohugo.io</generator><language>en-GB</language><copyright>Matt Bolitho</copyright><lastBuildDate>Thu, 24 Oct 2024 20:00:00 +0000</lastBuildDate><atom:link href="https://mattbolitho.github.io/tags/docker/index.xml" rel="self" type="application/rss+xml"/><item><title>Tiny C++ container images with `-static`</title><link>https://mattbolitho.github.io/posts/generating-statics-executables-with-clang/</link><pubDate>Thu, 24 Oct 2024 20:00:00 +0000</pubDate><guid>https://mattbolitho.github.io/posts/generating-statics-executables-with-clang/</guid><description>Both gcc and clang support the -static compilation option. When we pass this option, we are asking the compiler to create a static executable. That is, an executable with no dynamic dependencies.
If we compile a &amp;ldquo;Hello World&amp;rdquo; program both with (with-static) and without (no-static) this option enabled, we can see the difference highlighted by ldd. For reference, I am using clang++-19 with the mold linker on an amd64 based Ubuntu 24.</description></item><item><title>Configurable devcontainers with Docker targets</title><link>https://mattbolitho.github.io/posts/configurable-devcontainers-with-docker-targets/</link><pubDate>Sun, 04 Feb 2024 10:00:00 +0000</pubDate><guid>https://mattbolitho.github.io/posts/configurable-devcontainers-with-docker-targets/</guid><description>🎊 Happy New Year! 🎊
A bit late to the party, but this is my first post of 2024 so if you&amp;rsquo;re reading this: I hope you have a great year!
This weekend, I found out about the build.target property in devcontainer.json files and it filled in a massive knowledge gap for me: adding conditional logic in your devcontainer image.
This could be useful when:
You have a monorepo and the projects have slightly differing requirements for their development environments.</description></item></channel></rss>