Skip to content

Commit

Permalink
Docker with macOS support
Browse files Browse the repository at this point in the history
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
  • Loading branch information
arcticicestudio committed Sep 15, 2018
1 parent 47af7ad commit 0876c2c
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
15 changes: 15 additions & 0 deletions snowblocks/docker/README.md
Original file line number Diff line number Diff line change
@@ -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"
}
```
3 changes: 3 additions & 0 deletions snowblocks/docker/config.iceowl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"credsStore": "osxkeychain"
}
16 changes: 16 additions & 0 deletions snowblocks/docker/snowblock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"clean": ["~/.docker"]
},
{
"link": {
"~/.docker/config.json": {
"create": true,
"force": true,
"hosts": {
"iceowl": "config.iceowl.json"
}
}
}
}
]

0 comments on commit 0876c2c

Please sign in to comment.