Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
#13 readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuriy Bogdanov committed Sep 19, 2015
1 parent b0cfdf8 commit 2700441
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/rocker/template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,26 @@ Example:
HOME={{ .Env.HOME }}
```

# Load file content to a variable
This template engine also supports loading files content to a variables. `rocker` and `rocker-compose` support this through a command line parameters:

```bash
rocker build -var key=@key.pem
rocker-compose run -var key=@key.pem
```

If the file path is relative, it will be resolved according to the current working directory.

**Usage options:**

```
key=@relative/file/path.txt
key=@../another/relative/file/path.txt
key=@/absolute/file/path.txt
key=@~/.bash_history
key=\@keep_value_as_is
```

# Development

Please install pre-push git hook that will run tests before every push:
Expand Down

0 comments on commit 2700441

Please sign in to comment.