Skip to content

matejvasek/packdocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PackDocker

Implements subset of Docker API that is required for creating buildpack/builder images. This allows to create buildpack/builder images if docker daemon is not available. The resultant images are being stored as tarballs instead of being stored into daemon.

Example

In one terminal:

packdocker -s=/tmp/d.sock -o=/tmp/out -u=testuser -p=testpwd

In another terminal:

export DOCKER_HOST="unix:///tmp/d.sock"
pack buildpack package example.com/boson/faas-quarkus-jvm-bp:tip --path ./buildpacks/quarkus-jvm/
pack buildpack package example.com/boson/faas-springboot-bp:tip --path ./buildpacks/springboot/
pack builder create --pull-policy=never example.com/boson/faas-jvm-builder:tip --config jvm-builder.toml

After this the /tmp/out directory will contain three tarballs (2 buildpacks, 1 builder) and tags.json.

The tags.json contains mapping between repo tag (e.g. example.com/boson/faas-jvm-builder:tip) and image sha256.

About

Implementation of subset of Docker API that is required for creating buildpack/builder images using the `pack` CLI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages