Skip to content

Instantly share code, notes, and snippets.

Avatar

Johan Euphrosine proppy

View GitHub Profile
View README.md

apk2layer

apk2layer flattens an alpine linux package(s) and its dependencies into a standalone tarball.

Usage

apk2layer [-mirror] PKGNAME... > layer.tar
View pod.go
package main
import (
"encoding/json"
"fmt"
"log"
"os"
"syscall"
"github.com/docker/libcontainer"
View README.md

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

@proppy
proppy / README.md
Last active Aug 1, 2016
isoc: yet another "standard" container format
View README.md

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 / go2docker.go
Last active Nov 30, 2021
go2docker: build golang docker image without docker :)
View go2docker.go
// 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 Aug 29, 2015
try docker machine GCP integration
View README.md

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 / Dockerfile
Last active Aug 29, 2015
io.js base image Dockerfile
View 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 Aug 29, 2015
minici: a docker CI that fits in a gist
View README.md

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
View Dockerfile
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 / docker-dev.sh
Last active Aug 29, 2015
docker-dev: poor man dev workflow for dockerized apps
View docker-dev.sh
#!/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
#