From 15b1bc8c9382c75216335e700e4dd81aa7ce3bca Mon Sep 17 00:00:00 2001 From: Wesley Moore Date: Sat, 2 Mar 2019 15:47:45 +1100 Subject: [PATCH] Update docker post with custom base image info --- README.mkdn | 7 +++++ .../01/linux-conf-au-rust-epaper-badge.yaml | 1 + .../02/alpine-linux-docker-infrastructure.md | 31 ++++++++++++++----- .../alpine-linux-docker-infrastructure.yaml | 7 +++++ 4 files changed, 39 insertions(+), 7 deletions(-) diff --git a/README.mkdn b/README.mkdn index f6eb24a..d412037 100644 --- a/README.mkdn +++ b/README.mkdn @@ -10,3 +10,10 @@ Site Structure /personal /category /about + +Tips +---- + +Set updated_at on a post in vim: + + :r! ruby -rtime -e "puts File.mtime('%:r.md').xmlschema" diff --git a/content/technical/2019/01/linux-conf-au-rust-epaper-badge.yaml b/content/technical/2019/01/linux-conf-au-rust-epaper-badge.yaml index 3642fa9..70cc82e 100644 --- a/content/technical/2019/01/linux-conf-au-rust-epaper-badge.yaml +++ b/content/technical/2019/01/linux-conf-au-rust-epaper-badge.yaml @@ -4,6 +4,7 @@ extra: For linux.conf.au 2019 I built a digital conference badge using a Raspber kind: article section: technical created_at: 2019-01-27 11:00:00.000000000 +11:00 +updated_at: 2019-01-28T20:08:26+11:00 keywords: - rust - linux diff --git a/content/technical/2019/02/alpine-linux-docker-infrastructure.md b/content/technical/2019/02/alpine-linux-docker-infrastructure.md index 0daa62a..a8fa7e3 100644 --- a/content/technical/2019/02/alpine-linux-docker-infrastructure.md +++ b/content/technical/2019/02/alpine-linux-docker-infrastructure.md @@ -129,9 +129,25 @@ decided early on that these weren't really for me: - I wasn't a huge fan of pulling random Docker images from the Internet, even if they were official images. -In the end I only need to trust one image from [Docker Hub]: The 5Mb [Alpine +~~In the end I only need to trust one image from [Docker Hub]: The 5Mb [Alpine image][alpine-docker-image]. All of my images are built on top of this one -image. +image.~~ + +**Update 2 Mar 2019:** I am no longer depending on any Docker Hub images. After +the [Alpine Linux 3.9.1 release][alpine-3.9.1] I noticed the official Docker +images had not been updated so I built my own. Turns out it's quite simple. +Download the miniroot tarball from the Alpine website and then add it to a +Docker image: + +```language-docker +FROM scratch + +ENV ALPINE_ARCH x86_64 +ENV ALPINE_VERSION 3.9.1 + +ADD alpine-minirootfs-${ALPINE_VERSION}-${ALPINE_ARCH}.tar.gz / +CMD ["/bin/sh"] +``` An aspect of Docker that I don't really like is that inside the container you are root by default. When building my images I made a point of making the @@ -370,6 +386,7 @@ to wherever you are. Happy computing! [acme.sh]: https://github.com/Neilpang/acme.sh [Alpine Linux]: https://alpinelinux.org/ +[alpine-3.9.1]: https://alpinelinux.org/posts/Alpine-3.9.1-released.html [alpine-docker-image]: https://hub.docker.com/_/alpine [Ansible]: https://www.ansible.com/ [busybox]: https://www.busybox.net/ @@ -387,7 +404,10 @@ to wherever you are. Happy computing! [LuaDNS]: https://luadns.com/ [Mattermost]: https://mattermost.com/ [musl-libc]: http://www.musl-libc.org/ +[nginx]: http://nginx.org/ [OpenRC]: https://wiki.gentoo.org/wiki/Project:OpenRC +[PostgreSQL]: https://www.postgresql.org/ +[Rails]: https://rubyonrails.org/ [rust.melbourne]: https://rust.melbourne/ [Sourcehut]: https://sourcehut.org/ [sr.ht-announce]: https://lists.sr.ht/~sircmpwn/sr.ht-announce/%3C20190117003837.GA6037%40homura.localdomain%3E @@ -396,10 +416,7 @@ to wherever you are. Happy computing! [systemd-tragedy]: https://youtu.be/o_AIw9bGogo [systemd]: https://freedesktop.org/wiki/Software/systemd/ [Ubuntu]: https://www.ubuntu.com/ +[varnish-http2]: https://info.varnish-software.com/blog/varnish-cache-5-http2-support +[Varnish]: https://varnish-cache.org/ [Vultr]: https://www.vultr.com/?ref=7903263 [WebPageTest]: https://www.webpagetest.org/ -[Varnish]: https://varnish-cache.org/ -[varnish-http2]: https://info.varnish-software.com/blog/varnish-cache-5-http2-support -[nginx]: http://nginx.org/ -[PostgreSQL]: https://www.postgresql.org/ -[Rails]: https://rubyonrails.org/ diff --git a/content/technical/2019/02/alpine-linux-docker-infrastructure.yaml b/content/technical/2019/02/alpine-linux-docker-infrastructure.yaml index c78ea0b..32add5b 100644 --- a/content/technical/2019/02/alpine-linux-docker-infrastructure.yaml +++ b/content/technical/2019/02/alpine-linux-docker-infrastructure.yaml @@ -4,6 +4,13 @@ extra: My story of replacing three servers, across two countries, running two op kind: article section: technical created_at: 2019-02-28 09:45:00.000000000 +11:00 +updated_at: 2019-03-02T14:09:11+11:00 keywords: + - docker - linux + - alpine + - freebsd + - lets-encrypt + - varnish + - hitch short_url: