Skip to content

Instantly share code, notes, and snippets.

View proppy's full-sized avatar

Johan Euphrosine proppy

View GitHub Profile
@proppy
proppy / dsh.go
Last active August 29, 2015 14:04 — forked from crosbymichael/dsh.go
package main
import (
"bufio"
"fmt"
"log"
"os"
"os/exec"
"strconv"
"strings"
--- sandbox.py.orig 2014-09-23 13:26:01.151339089 -0700
+++ sandbox.py 2014-09-23 13:28:04.452163114 -0700
@@ -21,6 +21,7 @@
import imp
import os
import re
+import site
import sys
import traceback
import types
@proppy
proppy / docker-dev.sh
Last active August 29, 2015 14:06
docker-dev: poor man dev workflow for dockerized apps
#!/bin/bash
# Copyright 2014 Google Inc. All rights reserved.
#
# 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
#
@proppy
proppy / Dockerfile
Last active August 29, 2015 14:07
fig2kube
FROM google/python:2.7
ADD requirements.txt /code/requirements.txt
RUN pip install -r /code/requirements.txt
ADD . /code
WORKDIR /code
ENTRYPOINT ["python", "app.py"]
@proppy
proppy / README.md
Last active August 29, 2015 14:09
minici: a docker CI that fits in a gist

minici

minici is a docker continuous integration that fits in a gist.

TODOs

  • snapshot and reuse disk
  • archive logs on gs
  • plug with gh hooks
  • deploy to appengine
@proppy
proppy / Dockerfile
Last active August 29, 2015 14:13
io.js base image Dockerfile
# Copyright 2015 Google Inc. All Rights Reserved.
#
# 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
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@proppy
proppy / README.md
Last active August 29, 2015 14:13
try docker machine GCP integration

Assuming you installed docker machine and a docker build with identity support locally, and a Google Cloud Platform Project.

PROJECT=my-gcp-project
ZONE=us-central1-f
machine create --driver google --google-project ${PROJECT} --google-zone ${ZONE} \
    gcp-machine
export DOCKER_HOST=$(machine url)
export DOCKER_AUTH=identity
docker version
@proppy
proppy / go2docker.go
Last active November 30, 2021 17:51
go2docker: build golang docker image without docker :)
// Copyright 2015 Google Inc. All Rights Reserved.
//
// 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
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
@proppy
proppy / README.md
Last active August 1, 2016 13:32
isoc: yet another "standard" container format

isoc

isoc is yet another "standard" container format.

It brings together the best bits of Docker Image Specification 1.0 and App Container Specification 0.3.0+git into a comprehensive yet portable container archive format, at the cost of a "few" duplicated bytes.

Layout

An isoc image is a appc image embedded in a docker image, but also a docker image embedded in a appc image. Some people might describe it as an iso-contained container format.

@proppy
proppy / README.md
Last active October 8, 2015 00:39
podlet

podlet pod de lait

"pot-de-lait"

podlet is a tiny CLI tool & daemon to launch kubernetes pods on a bare docker host.

This is a proof of concept, not affiliated to the main kubernetes project, and it only supports a subset of the v1beta3 PodSpec.

Usage