Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let's upgrade to node 6 #78

Merged
merged 14 commits into from
Aug 17, 2017
Merged
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:4.2.2-slim
FROM node:6.11.1-slim

RUN apt-get update && apt-get install -y \
python \
Expand Down
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Vcs-Browser: https://github.com/stackstorm/st2chatops
Package: st2chatops
Architecture: any
Pre-Depends: dpkg (>= 1.16.16)
Depends: nodejs (>= 4.0.0)
Depends: nodejs (>= 6.0.0)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Considering nodejs epopeya https://github.com/StackStorm/ops-infra/pull/206, please pin node versions to 6 for both deb/rpm.
So we won't install any node7 or node8 or whatever in future.

Description: St2Chatops - StackStorm ChatOps.
Package providing StackStorm ChatOps functionality: bundled, tested and ready to use Hubot
with hubot-stackstorm plugin and additional chat adapters
2 changes: 2 additions & 0 deletions debian/st2chatops.service
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ TimeoutSec=60
PrivateTmp=true
Restart=on-failure
RestartSec=5
StandardOutput=syslog+console
StandardError=syslog+console
Copy link
Member

@arm4b arm4b Jul 26, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does that fix hubot logging bug described here: StackStorm/st2-packages#300 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does not. This directive instructs journalctl to write to console which should get logged to /var/log according to docs but it doesn't. So sad.

Copy link
Member

@arm4b arm4b Jul 26, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this param, feels like the truth is out there.

Let's try this for st2chatops.service:

- ExecStart=/opt/stackstorm/chatops/bin/hubot $DAEMON_ARGS
+ ExecStart=exec bin/hubot $DAEMON_ARGS >> /var/log/st2/st2chatops.log 2>&1


[Install]
WantedBy=multi-user.target
Loading