Skip to content

Instantly share code, notes, and snippets.

package main
import (
"bytes"
"fmt"
"os"
"github.com/fsouza/go-dockerclient"
)

Keybase proof

I hereby claim:

  • I am fsouza on github.
  • I am fsouza (https://keybase.io/fsouza) on keybase.
  • I have a public key ASDwWLBo8qkDE0KvAdTqUU5q_rC_PxcMTISr3JS05DMQjgo

To claim this, I am signing this object:

#!/bin/bash -elx
# This script uses the archive-server (https://github.com/tsuru/archive-server)
# to generate archives and deploy applications using them.
#
# It depends on the following environment variables:
#
# - ARCHIVE_SERVER_READ: the base URL that will be sent to the tsuru server,
# is a public URL that will be used to serve the
# archive (for example: http://archive-server:8080)
diff --git a/scan/scanner.go b/scan/scanner.go
index 5b62583..0110bbc 100644
--- a/scan/scanner.go
+++ b/scan/scanner.go
@@ -376,7 +376,7 @@ func swaggerSchemaForType(typeName string, prop swaggerTypable) error {
switch typeName {
case "bool":
prop.Typed("boolean", "")
- case "rune", "string":
+ case "rune", "string", "error":
@fsouza
fsouza / run.bash
Created November 29, 2015 13:05
tsuru now with -x
#!/bin/bash -uex
# Copyright 2015 tsuru-now authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
set -eu
release=""
codename=""
@fsouza
fsouza / Dockerfile
Last active November 17, 2015 15:25
FROM tsuru/ruby
@fsouza
fsouza / Dockerfile
Last active January 28, 2016 23:06
# Copyright 2015 basebuilder authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
# this file describes how to build tsuru static image
# to run it:
# 1 - tsuru-admin platform-add static -d https://raw.github.com/tsuru/basebuilder/master/static/Dockerfile
from tsuru/static
# Copyright 2015 basebuilder authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
# this file describes how to build tsuru python image
# to run it:
# 1 - tsuru-admin platform-add python -d https://raw.github.com/tsuru/basebuilder/master/python/Dockerfile
from tsuru/python
@fsouza
fsouza / Dockerfile
Last active November 12, 2015 15:25
# Copyright 2015 basebuilder authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
# this file describes how to build tsuru python image
# to run it:
# 1 - tsuru-admin platform-add python -d https://raw.github.com/tsuru/basebuilder/master/python/Dockerfile
from ubuntu-debootstrap:14.04
run locale-gen en_US.UTF-8