feat(examples/nginx-deployment): minor refactor, fixes and e2e test

This commit is contained in:
Jaka Hudoklin 2019-03-07 23:24:28 +01:00
parent eac2d78667
commit fc9abaa519
No known key found for this signature in database
GPG key ID: 6A08896BFD32BD95
4 changed files with 54 additions and 14 deletions

View file

@ -5,10 +5,10 @@ image
## Usage
### Building and applying kubernetes yaml file
### Building and applying kubernetes configuration
```
nix-instantiate --eval --strict --json -A listObject | kubectl apply -f -
nix-instantiate --eval --strict --json -A result | kubectl apply -f -
```
### Building and pushing docker images
@ -16,3 +16,13 @@ nix-instantiate --eval --strict --json -A listObject | kubectl apply -f -
```
nix run -f ./. pushDockerImages -c copy-docker-images
```
### Running tests
Test will spawn vm with kubernetes and run test script, which checks if everyting
works as expected.
```
nix build -f ./. test
cat result | jq '.'
```