From 0876c2c952d7cc694f5303291ef3a75adeef998a Mon Sep 17 00:00:00 2001 From: Arctic Ice Studio Date: Sat, 15 Sep 2018 17:06:11 +0200 Subject: [PATCH] Docker with macOS support Created a new snowblock that contains the `~/.docker/config.json` configuration file. The file for the `iceowl` host has been configured to ensure the macOS Keychain is used to store tokens instead of saving them as plain text into the config file. Related to epic GH-131 Closes GH-136 --- snowblocks/docker/README.md | 15 +++++++++++++++ snowblocks/docker/config.iceowl.json | 3 +++ snowblocks/docker/snowblock.json | 16 ++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 snowblocks/docker/README.md create mode 100644 snowblocks/docker/config.iceowl.json create mode 100644 snowblocks/docker/snowblock.json diff --git a/snowblocks/docker/README.md b/snowblocks/docker/README.md new file mode 100644 index 0000000..029aa5d --- /dev/null +++ b/snowblocks/docker/README.md @@ -0,0 +1,15 @@ +# Docker + +> Docker is the leader in the containerization market, an open-source project that automates the deployment of software applications inside containers by providing an additional layer of abstraction and automation of operating-system-level virtualization on Linux. + +## Setup + +### macOS Keychain + +To ensure that registry login tokens are stored in the macOS Keychain instead as plain text in the `~/.docker/config.json` file the configuration file must be adjusted: + +```json +{ + "credsStore": "osxkeychain" +} +``` diff --git a/snowblocks/docker/config.iceowl.json b/snowblocks/docker/config.iceowl.json new file mode 100644 index 0000000..a1be8c6 --- /dev/null +++ b/snowblocks/docker/config.iceowl.json @@ -0,0 +1,3 @@ +{ + "credsStore": "osxkeychain" +} diff --git a/snowblocks/docker/snowblock.json b/snowblocks/docker/snowblock.json new file mode 100644 index 0000000..fa874ec --- /dev/null +++ b/snowblocks/docker/snowblock.json @@ -0,0 +1,16 @@ +[ + { + "clean": ["~/.docker"] + }, + { + "link": { + "~/.docker/config.json": { + "create": true, + "force": true, + "hosts": { + "iceowl": "config.iceowl.json" + } + } + } + } +]