1
0
Fork 0
forked from barak/tarpoon

Add a README intro section

This commit is contained in:
Dalton Hubble 2016-12-03 23:50:59 -08:00
parent 5b3d5e81bd
commit 22621ac77f
5 changed files with 29 additions and 2 deletions

1
.gitignore vendored
View file

@ -25,3 +25,4 @@ _testmain.go
*.prof
tarpoon
*.tar

View file

@ -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

View file

@ -89,7 +89,7 @@ func systemContext() *types.SystemContext {
return &types.SystemContext{
RegistriesDirPath: "",
DockerCertPath: "",
DockerInsecureSkipTLSVerify: !tlsVerify,
DockerInsecureSkipTLSVerify: !tlsVerify
}
}

1
examples/world Normal file
View file

@ -0,0 +1 @@
hello

View file

@ -75,5 +75,4 @@ func rootRun(cmd *cobra.Command, args []string) {
fmt.Println(err)
os.Exit(1)
}
}