-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename project, better make with docker-compose, dependencies
- Loading branch information
Showing
5 changed files
with
212 additions
and
10 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,42 @@ | ||
# Gopkg.toml example | ||
# | ||
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md | ||
# for detailed Gopkg.toml documentation. | ||
# | ||
# required = ["github.com/user/thing/cmd/thing"] | ||
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] | ||
# | ||
# [[constraint]] | ||
# name = "github.com/user/project" | ||
# version = "1.0.0" | ||
# | ||
# [[constraint]] | ||
# name = "github.com/user/project2" | ||
# branch = "dev" | ||
# source = "github.com/myfork/project2" | ||
# | ||
# [[override]] | ||
# name = "github.com/x/y" | ||
# version = "2.4.0" | ||
# | ||
# [prune] | ||
# non-go = false | ||
# go-tests = true | ||
# unused-packages = true | ||
|
||
|
||
[[constraint]] | ||
name = "github.com/hashicorp/vault" | ||
version = "0.10.1" | ||
|
||
[[constraint]] | ||
name = "github.com/pkg/errors" | ||
version = "0.8.0" | ||
|
||
[[constraint]] | ||
name = "github.com/stretchr/testify" | ||
version = "1.2.1" | ||
|
||
[prune] | ||
go-tests = true | ||
unused-packages = true |
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,13 +1,7 @@ | ||
.PHONY: test | ||
|
||
test: | ||
# TODO - dont't kill/sleep if already running | ||
docker stop test-vault || true && docker rm test-vault || true && \ | ||
docker run -d --name=test-vault -p 8300:8300 \ | ||
-e VAULT_DEV_ROOT_TOKEN_ID=hunter2 \ | ||
-e VAULT_DEV_LISTEN_ADDRESS=0.0.0.0:8300 \ | ||
-e VAULT_LOG=debug \ | ||
vault:latest && sleep 8 | ||
docker-compose up -d | ||
export VAULT_ADDR=http://localhost:8300 && \ | ||
export VAULT_TOKEN=hunter2 && \ | ||
go test -v ./... |
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,4 +1,6 @@ | ||
# vault-kv-utils | ||
[](https://circleci.com/gh/Lingrino/vault-kv-utils/tree/master) | ||
# vaku | ||
[](https://circleci.com/gh/Lingrino/vaku/tree/master) | ||
|
||
Useful functions for the Vault Key/Value Secrets Engine | ||
Useful functions in Go for Hashicorp Vault. | ||
|
||
Currently under active devlopment. |
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,11 @@ | ||
version: '3' | ||
services: | ||
vault: | ||
image: vault:0.10.1 | ||
ports: | ||
- 8300:8300 | ||
environment: | ||
- VAULT_LOG=debug | ||
- SKIP_SETCAP=true | ||
- VAULT_DEV_ROOT_TOKEN_ID=hunter2 | ||
- VAULT_DEV_LISTEN_ADDRESS=0.0.0.0:8300 |