This repository has been archived by the owner on Aug 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update expiration for host-factory token, this fixes the test
- Loading branch information
Dustin Collins
committed
Apr 18, 2018
1 parent
4a6a436
commit c684862
Showing
3 changed files
with
16 additions
and
38 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,43 +1,30 @@ | ||
.PHONY: nodejs-image cli-image | ||
.PHONY: apidocs-image cli-image | ||
|
||
default: nodejs-image cli-image api.md | ||
default: apidocs-image cli-image api.md | ||
|
||
test: nodejs-image api.md | ||
test: apidocs-image api.md | ||
echo "Running tests against container '$(CONJUR_CONTAINER)'" | ||
summon docker run \ | ||
--rm \ | ||
summon docker run --rm -v $(PWD):/app \ | ||
--link $(CONJUR_CONTAINER):conjur \ | ||
-v $(PWD):/app \ | ||
-e NODE_TLS_REJECT_UNAUTHORIZED=0 \ | ||
--env-file @SUMMONENVFILE \ | ||
apidocs \ | ||
/dredd | ||
./dredd | ||
|
||
names: nodejs-image api.md | ||
names: apidocs-image api.md | ||
echo "Enumerating transaction names" | ||
docker run \ | ||
--rm \ | ||
-v $(PWD):/app \ | ||
apidocs \ | ||
dredd \ | ||
./api.md \ | ||
https://conjur \ | ||
--names | ||
|
||
docker run --rm -v $(PWD):/app apidocs \ | ||
dredd ./api.md https://conjur --names | ||
|
||
preview: api.md | ||
rvm use --create 2.2.4@apidocs | ||
bundle | ||
apiary preview --server --port=8081 --path api.md | ||
|
||
api.md: nodejs-image src/* src/partials/* | ||
docker run \ | ||
--rm \ | ||
-v $(PWD):/app -w /app \ | ||
apidocs \ | ||
api.md: apidocs-image src/* src/partials/* | ||
docker run --rm -v $(PWD):/app -w /app apidocs \ | ||
hercule src/api.md -o api.md | ||
|
||
nodejs-image: | ||
apidocs-image: | ||
docker build -t apidocs . | ||
|
||
cli-image: | ||
docker build -t apidocs-conjur-cli -f Dockerfile.cli . |
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