-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
@DOCKEROPTS is imagined to make it easier to lift summon secrets into docker. With usage like this in mind: summon docker run @DOCKEROPTS -it alpine
- Loading branch information
1 parent
6145b9f
commit 31f52b1
Showing
8 changed files
with
140 additions
and
8 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
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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Feature: dockeropts | ||
|
||
As a developer using summon | ||
I want to be able to use my secrets in a docker container environment | ||
I do not want to add the summon binary to every container | ||
|
||
Scenario: Running an dockeropts-consuming command | ||
Given a file named "secrets.yml" with: | ||
""" | ||
DB_PASSWORD: !var very/secret/db-password | ||
""" | ||
|
||
And a secret "very/secret/db-password" with "notSoSecret" | ||
When I successfully run `summon -p ./provider docker run --rm @DOCKEROPTS alpine printenv DB_PASSWORD` | ||
Then the output should contain exactly "DB_PASSWORD=notSoSecret\n" |
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
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
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
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
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