You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by gi...@git.apache.org on 2017/09/13 09:25:08 UTC

[GitHub] daisy-ycguo opened a new issue #130: An error in Dockerfile

daisy-ycguo opened a new issue #130: An error in Dockerfile
URL: https://github.com/apache/incubator-openwhisk-package-cloudant/issues/130
 
 
   The image built based on Dockerfile in the root folder is not runnable now because `/logs/cloudantTrigger_logs.log` is not exist.
   
   Below changes are an option to fix this issue.
   ```
   --- a/Dockerfile
   +++ b/Dockerfile
   @@ -16,10 +16,11 @@ RUN apt-get update --fix-missing && \
    # only package.json
    ADD package.json /alarmsTrigger/
    RUN cd /alarmsTrigger; npm install
   +RUN touch ~/alarmsTrigger_logs.log
   
    # App
    ADD provider/. /alarmsTrigger/
   
    EXPOSE 8080
   
   -CMD ["/bin/bash", "-c", "node /alarmsTrigger/app.js >> /logs/alarmsTrigger_logs.log 2>&1"]
   +CMD ["/bin/bash", "-c", "node /alarmsTrigger/app.js >> ~/alarmsTrigger_logs.log 2>&1"]
   ```
 
----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services