apk2layer
flattens an alpine linux package(s) and its dependencies into a standalone tarball.
apk2layer [-mirror] PKGNAME... > layer.tar
apk2layer
flattens an alpine linux package(s) and its dependencies into a standalone tarball.
apk2layer [-mirror] PKGNAME... > layer.tar
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"log" | |
"os" | |
"syscall" | |
"github.com/docker/libcontainer" |
"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.
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.
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.
// 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, |
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
# 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, |
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"] |