I hereby claim:
- I am cpuguy83 on github.
- I am cpuguy83 (https://keybase.io/cpuguy83) on keybase.
- I have a public key ASAo08bHNxNOVVkkmpl5T8GZMOgan7PmdCC7zM0-zVNcsQo
To claim this, I am signing this object:
Vagrant.configure(2) do |config| | |
CNI_LOOPBACK = <<-EOF | |
{ | |
"cniVersion": "0.3.0", | |
"type": "loopback" | |
} | |
EOF | |
I hereby claim:
To claim this, I am signing this object:
time="2016-07-27T18:58:18.401642630Z" level=debug msg="Calling POST /v1.24/containers/create" | |
time="2016-07-27T18:58:18.401896983Z" level=debug msg="form data: {\"AttachStderr\":false,\"AttachStdin\":false,\"AttachStdout\":false,\"Cmd\":[\"true\"],\"Domainname\":\"\",\"Entrypoint\":null,\"Env\":[],\"HostConfig\":{\"AutoRemove\":false,\"Binds\":null,\"BlkioDeviceReadBps\":null,\"BlkioDeviceReadIOps\":null,\"BlkioDeviceWriteBps\":null,\"BlkioDeviceWriteIOps\":null,\"BlkioWeight\":0,\"BlkioWeightDevice\":null,\"CapAdd\":null,\"CapDrop\":null,\"Cgroup\":\"\",\"CgroupParent\":\"\",\"ConsoleSize\":[0,0],\"ContainerIDFile\":\"\",\"CpuCount\":0,\"CpuPercent\":0,\"CpuPeriod\":0,\"CpuQuota\":0,\"CpuShares\":0,\"CpusetCpus\":\"\",\"CpusetMems\":\"\",\"Devices\":[],\"DiskQuota\":0,\"Dns\":[],\"DnsOptions\":[],\"DnsSearch\":[],\"ExtraHosts\":null,\"GroupAdd\":null,\"IOMaximumBandwidth\":0,\"IOMaximumIOps\":0,\"IpcMode\":\"\",\"Isolation\":\"\",\"KernelMemory\":0,\"Links\":null,\"LogConfig\":{\"Config\":{},\"Type\":\"\"}, |
class BasePusher < AbstractController::Base | |
include AbstractController::Logger | |
include AbstractController::Rendering | |
include AbstractController::Layouts | |
include AbstractController::Helpers | |
include AbstractController::Translation | |
include AbstractController::AssetPaths | |
include AbstractController::Callbacks | |
include Rails.application.routes.url_helpers if defined? Rails | |
FROM busybox | |
ADD echo.sh /tmp/echo.sh | |
ENTRYPOINT ["/tmp/echo.sh"] |
class OperatingHour | |
class MissingTimeZoneError < StandardError; end | |
class MissingTimeStringError < StandardError; end | |
attr_reader :time_string, :time_zone | |
def initialize(opts={}) | |
@time_string = opts[:time_string] | |
@time_zone = opts[:time_zone] | |
end |
merged_images = left.images.with_index.collect do |image, index| | |
compare(left.images[index], right.images[index], index) | |
end |
FROM ubuntu | |
# some awesome stuff with mysql | |
VOLUME /var/lib/mysql | |
--- End Dockerfile --- | |
docker build -t my/awesome_mysql_stuff |
func (b *buildFile) BuildCmdFromJson(args string) []string { | |
var cmd []string | |
if err := json.Unmarshal([]byte(args), &cmd); err != nil { | |
utils.Debugf("Error unmarhsalling: %s, setting %s to /bin/sh -c", err) | |
cmd = []string{"/bin/sh", "-c", args} | |
} | |
return cmd | |
} | |
func (b *buildFile) CmdCmd(args string) error { |
func (b *buildFile) CmdEnv(args string) error { | |
var env map[string]string | |
if err := json.Unmarshal([]byte(args), &env); err != nil { | |
env = []string{args} | |
} | |
if err := b.commit("", env, fm.Sprintf("ENV %v", env)); err != nil { | |
return err | |
} |