Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Include configuration for docker containers, SSL automation and repla… #41

Merged
merged 2 commits into from
Mar 29, 2017

Conversation

mofesola
Copy link
Contributor

@mofesola mofesola commented Mar 24, 2017

Replace CouchRiver with Logstash

  • Add automated installation for SSL with Let's Encrypt
  • Replace deprecated CouchRiver Plugin with Logstash
  • Containerise application with docker and docker-compose
  • Introduce Nginx as the webserver for production deployment

Resolves #20

@mofesola mofesola force-pushed the config/deploy branch 4 times, most recently from 7dc2145 to 7bae57c Compare March 24, 2017 19:16
Copy link
Member

@jkleinsc jkleinsc left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @mofesola. Can you clarify -- did you get logstash working instead of couchdb rivers? I can test to verify as it appears that it is included in this PR, I just wanted to check if actually was working on your side.

@adeolabadmus
Copy link

@jkleinsc, While rivers has been replaced with logstash in the config and build pipeline, search from the frontend doesn't work yet. I'm currently working on this to perfect it.

Cc @mofesola

@jkleinsc
Copy link
Member

@adeolabadmus thanks for the update. Let me know if you have any questions about how search works in HospitalRun

@jkleinsc
Copy link
Member

@mofesola @adeolabadmus I just tried setting this up on my Mac and it fails with the following error:
ERROR: Service 'nginx' failed to build: lstat conf/hospitalrun-dev.conf: no such file or directory

What OSes has this been tested on?

@mofesola
Copy link
Contributor Author

@jkleinsc I have removed the erring line. Apparently, the file existed on my local so I couldn't catch it. It works fine now.

Also, I reverted to v0.9.9 in server routes, because 0.9.11 was throwing an error and exiting the container. Can we look into this?

Error:
hospitalrun | > hospitalrun-server@0.9.18 start /usr/src/app hospitalrun | > node app.js hospitalrun | hospitalrun | /usr/src/app/node_modules/hospitalrun-server-routes/routes/10-couchproxy.js:19 hospitalrun | let configsToUpdate = []; hospitalrun | ^^^ hospitalrun | hospitalrun | SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode hospitalrun | at exports.runInThisContext (vm.js:53:16) hospitalrun | at Module._compile (module.js:373:25) hospitalrun | at Object.Module._extensions..js (module.js:416:10) hospitalrun | at Module.load (module.js:343:32) hospitalrun | at Function.Module._load (module.js:300:12) hospitalrun | at Module.require (module.js:353:17) hospitalrun | at require (internal/module.js:12:17) hospitalrun | at Array.map (native) hospitalrun | at Object.<anonymous> (/usr/src/app/node_modules/hospitalrun-server-routes/index.js:2:63) hospitalrun | at Module._compile (module.js:409:26) hospitalrun | hospitalrun | npm info hospitalrun-server@0.9.18 Failed to exec start script hospitalrun | npm ERR! Linux 4.9.12-moby hospitalrun | npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start" hospitalrun | npm ERR! node v4.4.3 hospitalrun | npm ERR! npm v2.15.1 hospitalrun | npm ERR! code ELIFECYCLE hospitalrun | npm ERR! hospitalrun-server@0.9.18 start: node app.jshospitalrun | npm ERR! Exit status 1

@jkleinsc
Copy link
Member

@mofesola can you change to use Node 6.x instead of 4.x? That will resolve the error you are getting with hospitalrun-server-routes v0.9.11.

@mofesola
Copy link
Contributor Author

Great, I'll do that and push

@mofesola
Copy link
Contributor Author

This has been updated with the working logstash configuration, and node has been updated to v6
@jkleinsc

@jkleinsc
Copy link
Member

Looks good to me @mofesola. Thanks for the PR! I am going to merge it in.

@jkleinsc jkleinsc merged commit f85a6db into HospitalRun:master Mar 29, 2017
@jkleinsc jkleinsc mentioned this pull request Aug 7, 2017
@ghost
Copy link

ghost commented Oct 15, 2019

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@ghost ghost added the released label Oct 15, 2019
@ghost
Copy link

ghost commented Oct 15, 2019

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace CouchDB River Plugin for Elasticsearch with logstash couchdb changes input.
3 participants