forked from barak/tarpoon
Add a README intro section
This commit is contained in:
parent
5b3d5e81bd
commit
22621ac77f
5 changed files with 29 additions and 2 deletions
26
README.md
26
README.md
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
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.
|
||||
|
|
@ -11,4 +13,28 @@ Install packages for dynamic dependencies.
|
|||
|
||||
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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue