-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
docker: root directory is /dist/docker/bin #558
Conversation
innnnnteresting cc @paddyforan |
Scratch that, it does not seem to work at all. I tried running it directly on the server instead of in the docker image. Like this:
Which results in:
Which is the same error message I got when trying to run this in the docker image. |
@Bondza you probably want to use |
this probably has to do with the way |
Yes, I ended up using By the way, the docs for |
I didn't try docker. it works on OS X btw.
|
I don't feel strongly about this one - it could come down to filesystem, etc. Semantically, I'm not sure we should make it easier to route topics to Now, whether or not the docker image should be rooted the way it is could be a useful conversation. I'm going to update the title (again) to reflect that. |
I looked through this (rather late, I apologise) and there's an easy fix. If we add the binaries one at a time, instead of the entire directory, it behaves the exact same way, but doesn't overwrite the entire filesystem (which is baaad). This lets people use I'll test it a bit more for backwards-compatibility when it's not 3am, but....
That looks promising. Downside, of course, is if a new binary is added to the release, we need to add it manually to the Dockerfile. |
That's an acceptable trade off (having to manually add new binaries). Let's do it! Thanks for looking into this! |
PR incoming tonight, to finally finish this thing off. At the same time, we can symlink the binaries to /bin, so you can just |
That makes me think... could you just
or
|
Couldn't you put the binaries in That way you could
You would have to symlink each binary but any new binaries would automatically be added to |
I'd just like to add that, if you use my second suggestion, you can additionally put links in bin, of course:
And also, for docker, fewer directives ➡️ fewer layers ➡️ faster push/pull/run |
Of course that works, I suggested it because I think it's a bit odd to place binaries in the root directory and not in Assuming that all binaries are called nsq-something, you could have the binaries accessible from
Anyways, thanks for fixing this! |
docker: root directory is /dist/docker/bin
Is there a reason that / is set to /dist/docker/bin for the docker image?
I would like to use nsq_to_file and output messages to /dev/null to avoid the queues filling up my server disks while testing, which is not possible because of this.