Skip to content

Instantly share code, notes, and snippets.

View hairyhenderson's full-sized avatar

Dave Henderson hairyhenderson

View GitHub Profile
@hairyhenderson
hairyhenderson / console.log
Created April 25, 2017 00:46
result of build caches
$ docker build -f foo .
Sending build context to Docker daemon 968.2 kB
Step 1/2 : FROM scratch
--->
Step 2/2 : ENTRYPOINT foo
---> Running in 6ff458f299fc
---> 9bd53a17eb65
Removing intermediate container 6ff458f299fc
Successfully built 9bd53a17eb65
$ docker build -f foo .
This file has been truncated, but you can view the full file.
/
/init
/var
/var/run
/var/tmp
/var/spool
/var/opt
/var/log
/var/log/rngd.err.log
/var/log/rngd.out.log
@hairyhenderson
hairyhenderson / deletion_policies.diff
Last active February 8, 2018 20:06
files for post
--- Docker.tmpl.orig 2018-02-07 22:31:45.000000000 -0500
+++ Docker.tmpl 2018-02-07 22:31:37.000000000 -0500
@@ -900,6 +900,7 @@
"Ref": "Vpc"
}
},
+ "DeletionPolicy": "Retain",
"Type": "AWS::EC2::VPCGatewayAttachment"
},
"CloudstorEBSPolicy": {
@hairyhenderson
hairyhenderson / dstest.go
Created May 7, 2019 01:33
Using gomplate datasources programatically
package main
import (
"fmt"
"github.com/hairyhenderson/gomplate/data"
)
func main() {
d, err := data.NewData([]string{"ip=https://ipinfo.io"}, nil)
<?xml version="1.0"?>
<installation>
<keymap>us</keymap>
<primary-disk>sda</primary-disk>
<guest-disk>sda</guest-disk>
<root-password>tototo2</root-password>
<source type="local"></source>
<admin-interface name="eth0" proto="dhcp" />
<timezone>America/Toronto</timezone>
<ui-confirmation-prompt>True</ui-confirmation-prompt>