1
0
Fork 0
forked from barak/tarpoon
Docker Build -- Without the Docker
Find a file
2016-12-05 11:16:31 -08:00
examples Add a README intro section 2016-12-05 11:16:31 -08:00
vendor Add glide.yaml and vendor deps 2016-12-03 22:43:32 -08:00
.gitignore Add a README intro section 2016-12-05 11:16:31 -08:00
builddir.go Add a README intro section 2016-12-05 11:16:31 -08:00
docker_import.go First working cut 2016-11-02 15:36:10 -07:00
glide.lock Add glide.yaml and vendor deps 2016-12-03 22:43:32 -08:00
glide.yaml Add glide.yaml and vendor deps 2016-12-03 22:43:32 -08:00
LICENSE Initial commit 2016-11-02 22:34:50 +00:00
main.go Add a README intro section 2016-12-05 11:16:31 -08:00
README.md Add a README intro section 2016-12-05 11:16:31 -08:00
sha.go First working cut 2016-11-02 15:36:10 -07:00

tarpoon

Docker Build -- Without the Docker

Tarpoon starts with a base image, appends an application's tarball, and pushes the resulting image to a Docker registry. It replaces the need for Docker in Docker or Docker on Docker hackery.

Build

Install packages for dynamic dependencies.

sudo dnf install gpgme-devel
sudo dnf install libassuan-devel

Build using Go 1.7 or higher.

go build -o tarpoon git.barakmich.com/barak/tarpoon

Examples

Create an example app tarball.

echo "hello" > examples/world

Tar the application.

tar czf world.tar examples/world

Build and push the image.

./tarpoon -b //busybox world.tar //docker.io/username/test-image

Verify the Docker image works contains the contents.

sudo docker run username/test-image