Skip to content

Commit

Permalink
rename project, better make with docker-compose, dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
lingrino committed May 13, 2018
1 parent 84232f1 commit 7e5b1d0
Show file tree
Hide file tree
Showing 5 changed files with 212 additions and 10 deletions.
153 changes: 153 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 42 additions & 0 deletions Gopkg.toml
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
8 changes: 1 addition & 7 deletions Makefile
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 ./...
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# vault-kv-utils
[![CircleCI](https://circleci.com/gh/Lingrino/vault-kv-utils/tree/master.svg?style=svg)](https://circleci.com/gh/Lingrino/vault-kv-utils/tree/master)
# vaku
[![CircleCI](https://circleci.com/gh/Lingrino/vaku/tree/master.svg?style=svg)](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.
11 changes: 11 additions & 0 deletions docker-compose.yml
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

0 comments on commit 7e5b1d0

Please sign in to comment.