apex-nitro
apex-nitro copied to clipboard
APEX Upload: Support for Oracle Cloud Wallet (TNS Admin)
Reference issue: https://github.com/vincentmorneau/apex-publish-static-files/pull/20
In apexnitro.cred.json should have the ability to provide a variable tns_admin so it could be set before calling apex-publish-static-files
Ex:
"path": "sqlcl",
"tns_admin": "/oracle/wallets/atp01",
"username": "your_username",
"password": "your_password",
"connectionString": "your_connection_string"
}
Before calling upload could detect if the TNS_NAMES is defined.
Pseudo code:
if (config.upload.tns_admin){
process.env['TNS_ADMIN'] = config.upload.tns_admin;
end if;
uploader.publish(....)