forked from barak/tarpoon
Docker Build -- Without the Docker
| examples | ||
| vendor | ||
| .gitignore | ||
| builddir.go | ||
| docker_import.go | ||
| glide.lock | ||
| glide.yaml | ||
| LICENSE | ||
| main.go | ||
| README.md | ||
| sha.go | ||
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