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
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -25,3 +25,4 @@ _testmain.go
|
|||
*.prof
|
||||
|
||||
tarpoon
|
||||
*.tar
|
||||
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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ func systemContext() *types.SystemContext {
|
|||
return &types.SystemContext{
|
||||
RegistriesDirPath: "",
|
||||
DockerCertPath: "",
|
||||
DockerInsecureSkipTLSVerify: !tlsVerify,
|
||||
DockerInsecureSkipTLSVerify: !tlsVerify
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
1
examples/world
Normal file
1
examples/world
Normal file
|
|
@ -0,0 +1 @@
|
|||
hello
|
||||
1
main.go
1
main.go
|
|
@ -75,5 +75,4 @@ func rootRun(cmd *cobra.Command, args []string) {
|
|||
fmt.Println(err)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue