Skip to content

Instantly share code, notes, and snippets.

@popsikle
popsikle / web_app@.service
Last active August 29, 2015 14:13
Port Enabled Sidekick Announcement
[Unit]
Description=Web App
After=docker.service
Requires=docker.service
[Service]
TimeoutStartSec=0
ExecStartPre=-/usr/bin/docker kill web_app-%i
ExecStartPre=-/usr/bin/docker rm web_app-%i
ExecStartPre=/usr/bin/docker pull tutum/hello-world
@popsikle
popsikle / bootstrap.rb
Created April 8, 2014 19:34
Quick and dirty method of outputting the rendered bootstrap template (knife modification)
#
# Author:: Adam Jacob (<adam@opscode.com>)
# Copyright:: Copyright (c) 2010 Opscode, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0