Skip to content

Commit

Permalink
Update tf commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidaustinarcher committed Jan 31, 2023
1 parent 121c90c commit adb0c81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pipeline {
steps {
script {
waitUntil {
def r = sh returnStatus: true, script: "FQDN=\$(terraform output fqdn); wget --retry-connrefused --tries=300 --waitretry=1 -q \$FQDN -O /dev/null"
def r = sh returnStatus: true, script: "FQDN=\$(terraform output --raw fqdn); wget --retry-connrefused --tries=300 --waitretry=1 -q \$FQDN -O /dev/null"
return (r == 0);
}
}
Expand Down Expand Up @@ -96,7 +96,7 @@ pipeline {
steps {
script {
waitUntil {
def r = sh returnStatus: true, script: "FQDN=\$(terraform output fqdn); wget --retry-connrefused --tries=300 --waitretry=1 -q \$FQDN -O /dev/null"
def r = sh returnStatus: true, script: "FQDN=\$(terraform output --raw fqdn); wget --retry-connrefused --tries=300 --waitretry=1 -q \$FQDN -O /dev/null"
return (r == 0);
}
catchError(buildResult: 'SUCCESS', stageResult: 'ABORTED') {
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@ You can run PetClinic within a Docker container using Terraform.

There is a test script which you can use to reveal vulnerabilities which requires node and puppeteer.

1. Install Node, NPM and Chrome.
1. From the app folder run `npm i puppeteer`.
1. Run `BASEURL=https://<your service name>.azurewebsites.net node exercise.js` or `BASEURL=https://<your service name>.azurewebsites.net DEBUG=true node exercise.js` to watch the automated script.
1. Install Node, NPM, Playwright and Chrome.
1. From the app folder run `npx playwright test`.

## Updating the Docker Image

Expand Down

0 comments on commit adb0c81

Please sign in to comment.