zhy989 commented on issue #81: can not compile successfully
URL: 
https://github.com/apache/incubator-openwhisk-package-alarms/issues/81#issuecomment-321503063
 
 
   @jasonpet thanks 
   
   - wsk trigger create every-20-seconds --feed /whisk.system/alarms/alarm 
--param cron "*/20 * * * * *" -i
   ok: invoked /whisk.system/alarms/alarm with id 
c6e0085cbc6e4c22966861487ff396ac
   {
       "activationId": "c6e0085cbc6e4c22966861487ff396ac",
       "annotations": [
           {
               "key": "limits",
               "value": {
                   "logs": 10,
                   "memory": 256,
                   "timeout": 60000
               }
           },
           {
               "key": "path",
               "value": "whisk.system/alarms/alarm"
           }
       ],
       "duration": 1007,
       "end": 1502357858530,
       "logs": [],
       "name": "alarm",
       "namespace": "whisk.system",
       "publish": false,
       "response": {
           "result": {},
           "status": "success",
           "success": true
       },
       "start": 1502357857523,
       "subject": "whisk.system",
       "version": "0.0.6"
   }
   ok: created trigger every-20-seconds
   
   I run this script to start up the  alarms container
   
   - cat docker_run.sh 
   
   WSK_HOME=/openwhisk
   DB_PROTOCOL=`awk -F "=" '/db_protocol/ {print $2}' 
$WSK_HOME/ansible/db_local.ini`
   DB_HOST=`awk -F "=" '/db_host/ {print $2}' $WSK_HOME/ansible/db_local.ini`
   DB_PORT=`awk -F "=" '/db_port/ {print $2}' $WSK_HOME/ansible/db_local.ini`
   DB_USER=`awk -F "=" '/db_username/ {print $2}' 
$WSK_HOME/ansible/db_local.ini`
   DB_PWD=`awk -F "=" '/db_password/ {print $2}' $WSK_HOME/ansible/db_local.ini`
   DB_PREFIX=test
   
   
   docker run -d -p 32691:8080 -v $HOME/wsklogs/alarms:/logs \
   -e PORT=8080 -e ROUTER_HOST=172.17.0.1 \
   -e DB_PREFIX=${DB_PREFIX} -e DB_USERNAME=${DB_USER} \
   -e DB_PASSWORD=${DB_PWD} -e DB_HOST=${DB_HOST}:${DB_PORT} \
   -e DB_PROTOCOL=${DB_PROTOCOL} whisk/catalog_alarms
   
   - docker ps | grep alarm
   243523e5ad17        whisk/nodejs6action:latest   "/bin/sh -c 'node --e"   
About a minute ago   Up About a minute                                          
                                                                                
                                wsk0_36_whisksystemalarm
   bf1286ae2427        whisk/catalog_alarms         "/bin/bash -c 'node /"   45 
hours ago         Up 45 hours         0.0.0.0:32691->8080/tcp                   
                                                                                
                             agitated_engelbart
   
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to