-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add config validation for local Airnode invocation including airnode-…
…client container
- Loading branch information
1 parent
dd140e3
commit 49d7bc5
Showing
8 changed files
with
47 additions
and
5 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@api3/airnode-examples': minor | ||
'@api3/airnode-node': minor | ||
--- | ||
|
||
Add config validation for local Airnode invocation including airnode-client container |
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
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,13 @@ | ||
import { cliPrint, readIntegrationInfo, runAndHandleErrors, runShellCommand } from '../src'; | ||
|
||
const main = async () => { | ||
const integrationInfo = readIntegrationInfo(); | ||
if (integrationInfo.airnodeType !== 'local') { | ||
cliPrint.error('You only need to run this script if you want to stop Airnode running locally!'); | ||
return; | ||
} | ||
|
||
runShellCommand(`docker stop airnode`); | ||
}; | ||
|
||
runAndHandleErrors(main); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
node /app/src/cli/validate-config.js && crond -f |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import * as path from 'path'; | ||
import dotenv from 'dotenv'; | ||
import { loadConfig } from '../config'; | ||
|
||
dotenv.config({ path: path.resolve(`${__dirname}/../../config/secrets.env`) }); | ||
// We don't care about the config itself, we just need it to be validated during the loading | ||
loadConfig(path.resolve(`${__dirname}/../../config/config.json`), process.env); |