Skip to content

Commit

Permalink
More Updates to the jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
VidyasagarMSC committed Jun 22, 2020
1 parent e2c8fc1 commit 4bc73d3
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,4 @@ dist
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.pnp.*

deploy.sh
.pnp.*
15 changes: 15 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
# declare an array called array and define 3 vales
declare -a folders=( "frontend" "backend" "jobs" )
for folder in "${folders[@]}"
do
echo $folder
cd $folder
if [ $folder == "jobs" ]
then
docker build . -t ibmcom/backend-job && docker push ibmcom/backend-job
else
docker build . -t ibmcom/$folder && docker push ibmcom/$folder
fi
cd ..
done
2 changes: 1 addition & 1 deletion frontend/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h1 class="navbar-item title">
<div class="tabs is-centered">
<ul>
<li class="is-active"><a href="https://www.ibm.com/cloud" target="_blank">IBM Cloud</a></li>
<li class="is-active"><a href="https://www.ibm.com/cloud" target="_blank">Code</a></li>
<li class="is-active"><a href="https://test.cloud.ibm.com/docs/solution-tutorials?topic=solution-tutorials-coligo" target="_blank">Tutorial</a></li>
</ul>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions jobs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ const VisualRecognitionV3 = require("ibm-watson/visual-recognition/v3");
const { IamAuthenticator } = require("ibm-watson/auth");

const visualRecognition = new VisualRecognitionV3({
url: process.env.VR_URL,
url: process.env.VR_JOB_SECRET_URL,
version: process.env.VR_VERSION || '2018-03-19',
authenticator: new IamAuthenticator({ apikey: process.env.VR_APIKEY }),
authenticator: new IamAuthenticator({ apikey: process.env.VR_JOB_SECRET_APIKEY }),
});

var config = {
Expand Down

0 comments on commit 4bc73d3

Please sign in to comment.