mirror of
https://github.com/NarrativeScience-old/log.io.git
synced 2026-04-26 01:25:55 +03:00
[GH-ISSUE #159] how can i install log.io in docker? #130
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/log.io-NarrativeScience-old#130
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dayuoba on GitHub (Jul 31, 2015).
Original GitHub issue: https://github.com/NarrativeScience-old/log.io/issues/159
in docker container i have the root right,but when i run npm i log.io -g . it fails
npm install -g log.io --user "ubuntu" , i've tried this command either
@dayuoba commented on GitHub (Jul 31, 2015):
run this command
npm i log.io -g --user "root"@clemtibs commented on GitHub (Aug 26, 2015):
The simple answer to your question is:
npm install -g log.io --user "root"A warning from someone who's put this thing inside a docker container already (sort of). It's very difficult to get it working reliably. I've been able to hack together an image that functions as both harvester and server, but it's really a giant shit-show and unreliable because:
@dayuoba commented on GitHub (Aug 28, 2015):
@brianclements yep,in our docker ENV only one port can be exposed so i gave up either.i wrote a log module of node my self. may @NarrativeScience give a official container image?
@clemtibs commented on GitHub (Aug 28, 2015):
@dayuoba I wouldn't count on it. I really have nothing against @NarrativeScience, it's just that the repo has all the hallmarks of being abandoned; these things happen. The main committer for the past 4 years (@msmathers) has essentially zero activity for a very long time. I'd suggest people start forking or center around an existing fork if they really want to continue this project in a different scope.
@rarkins commented on GitHub (Aug 29, 2015):
@brianclements do you have any suggestions for alternatives?
@clemtibs commented on GitHub (Aug 30, 2015):
As for a quick and simple analog? I don't know unfortunately. My particular bias was for use with @docker. So that's where my suggestions and research are coming from. I haven't decided or experimented yet, but the most promising choices are going to be programs that work with the newly implemented docker logging drivers. Those particular plugins imply fluentd and the GELF format which can be used with Graylog and Logstash. Those solutions are a step up from the quick and simple solution that Log.io seemed to provide, but honestly, when properly captured in a docker container, they can be really simple to deploy. I am pretty sure Log.io was heavily used by windows users as well, and luckily Docker now has windows support. Again, I have yet to experiment with these in particular, but that is the direction I'm headed in anyway. It's a bit more setup but it's a robust and scalable solution centered around products that communities still maintain. Hope this helps!
@rarkins commented on GitHub (Aug 30, 2015):
Thanks. I'm actually looking for a browser based log streaming container that can function as an output from fluentd. I.e. as an alternative in dev environments to console and stdout
@purezen commented on GitHub (Nov 9, 2015):
@rarkins I am looking for a similar solution. Would love to know of it in case you get one.
@brianclements even I was looking to use log.io with Docker. What is your fix right now?
@clemtibs commented on GitHub (Nov 9, 2015):
@purezen my ventures in docker are as a hobbyist so I've not been forced to pick something as of yet and have not had time to dive into this aspect of it in a while. But with the newest version of docker, the entire world of logging has changed drastically anyway since I first started messing around with Log.io. I suggest you check out the logging docs to start your search.
I do plan to find an equally simple solution to this in time and make it easily available in my Radial project repos. It will be something that can easily plug into an official docker logging driver, run in a single container, and just receive streaming log data to a web interface. But I have no idea when I'll get around to it. Sorry I can't be much more help!
@Chaturaphut commented on GitHub (Nov 18, 2015):
https://github.com/Chaturaphut/log.io-docker-centos
@franciskim commented on GitHub (Jun 25, 2016):
Looks like you need to run it as root, as in use
sudo@adamgoose commented on GitHub (Jul 18, 2016):
The following Dockerfile works for me:
Then, use the following command to run:
docker run -itd -p 28778:28778 -p 28777:28777 logioI'm considering creating a Pull Request to use the
node:onbuildimage.Of course, this simply runs the server. @brianclements mentioned that it's difficult to run the harvester inside the container due to the single-process mentality of Docker. However, it would make sense to me to simply run this as a server-only container, and instal the harvester in your other Docker containers (or any linux machine) to report the logs. We've achieved multi-process containers with Supervisor.
@msmathers commented on GitHub (Jan 12, 2020):
v0.4.3 uses the more idiomatic package.json
binscript to invoke the server & harvester processes, and no longer requires root/sudo to install, so running it in docker should be pretty trivial.