-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5ff7fd3
commit b2c35bb
Showing
1 changed file
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,25 @@ | ||
# docker-build | ||
# docket | ||
|
||
Build docker images with secrets. Use it just like the `docker build` command. | ||
|
||
## install | ||
|
||
``` | ||
pip install git+git://github.com/defunctzombie/docker-build.git | ||
``` | ||
|
||
## Use | ||
|
||
Put some files into `$HOME/.docker/private`. They will be available during the build process. | ||
|
||
Use docket like you would use `docker build` | ||
|
||
```shell | ||
docker-build -t foobar <path/to/build/root> | ||
``` | ||
|
||
Will source any files in `$HOME/.docker/private` into the image build context before building the Dockerfile and then remove the private files completely from the final image history. They will not appear in any previous layer of the image. | ||
## Private Files | ||
|
||
Any files in `$HOME/.docker/private` will be available during the build process. The folder structure under this directory will mirror the folder structure under `/` in the container. | ||
|
||
These private files will not appear in any layer of the final image. |