-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
Where should custom hubot scripts go in a snap installation? #5771
Comments
Good point, we need to also look at this on Docker. @graywolf336 @rodrigok any ideas? |
@geekgonecrazy any idea on how to do on snaps? |
For snaps anywhere relative to the code execution is read only. So if we can't change the path in settings or via environment variable then they couldnt write new files. These changes would be helpful for Docker as well. |
Should we put it inside the |
At least from a user perspective the upload folder was my first thought. However, maybe to avoid that the common directory gets too messy, I would like to recommend something like this: |
Maybe it would be helpful to have a filestructur similar to the mounted snap folders, which could externd/overwrite files from the mounted folder? |
For docker one can add custom scripts with docker cp into the location inside the rocketchat container, but these get deleted with every update via |
ref: #7095 as soon as this is merged we can add a folder in snaps for this. |
Is there an update on this? I'm unclear how to do this on 0.57.3 I created a folder /var/snap/rocketchat-server/common/scripts and placed an "example.coffee" in there that should respond to "test" I think. If I put "example.script" in the scripts field, and then try "test" in a channel with the bot, or @thebot, nothing happens. If I @thebot help I get the basic help text. If I specify "Folder to load the scripts" as "scripts/" or "common/scripts/" or "/var/snap/rocketchat-server/common/scripts" then the logs complain about not being able to locate example.script. Where would /var/snap/rocketchat-server/common/scripts be mounted relative to the rocketchat-server snap? |
Hello, I'm running into the same issue where I am not able to add Hubot or GifReply name: rocketchat-server
|
I am having the same issue, I cannot get internal-hubot to load custom scripts, or scripts I have modified from the github repository. |
I'm running 0.58.2 and I think I already works since 0.58.0 or earlier. The snaps seem to have security first in mind so there are some restrictions. The directories available are listed here: https://snapcraft.io/docs/reference/confinement |
Thanks for replying. I'll try that out.
Go RocketChat
…On Fri, Sep 15, 2017 at 3:30 PM, Werner Mueller ***@***.***> wrote:
I'm running 0.58.2 and I think I already works since 0.58.0 or earlier.
The snaps seem to have security first in mind so there are some
restrictions. The directories available are listed here:
https://snapcraft.io/docs/reference/confinement
So what I've done is to set: Folder to load the scripts:
/var/snap/rocketchat-server/hubot/
and put the modified scripts in there. That works for me. (no path given
for the scripts, ex: "countdown.coffee,gif-me.coffee,zen.coffee"
The logs (/admin/view-logs) show if a script cannot be loaded.
It seems the internal Hubot comes with some restrictions or drawbacks. The
chat pointed me to https://github.com/RocketChat/botswana-snap - which
also looks quite interesting.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5771 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ac0KjtQPOgMATYe0vmIJfs1r3ii-nJyXks5sivqUgaJpZM4LtQ_e>
.
--
Danny Patel • Sr. Director of DevOps & IT
[image: HEAL_SIG.gif]
<https://heal.com/?utm_source-email_signature&utm_medium=logo>
heal.com <https://heal.com/?utm_source-email_signature&utm_medium=link>
--
Disclaimer and Confidentiality Notice: Heal is a technology information
service provider that connects users with Heal At-Home Medical to provide
medical services in your area. Heal does not provide health care services
and shall not be liable for any professional advice from a health care
professional that is provided to any user of Heal. The information
contained in this transmission may contain privileged or confidential
information intended only for use of the individual or entity named above.
If the reader of this message is not the intended recipient, you are hereby
notified that any dissemination, distribution, or copying of this
communication is strictly prohibited. If you have received this
transmission in error, do not read it. Please immediately reply to the
sender that you have received this communication in error, then delete it.
Thank you.
|
Will close this because the referenced PR has been merged and any further updates to the internal hubot script loading can be tracked under #6640. |
Hey,
I installed rocket.chat 0.50.1 via snap on Ubuntu 16.04.1 TLS and enabled hubot. It is awesome! Now we would like to add custom hubot scripts to rocket.chat. However, in snap the directory
/snap/
is mounted as readonly, so I can't just put new scripts in thehubot-scripts
folder. I also tried to put scripts into/var/snap/rocketchat-server/common
but this gave me of course the following error:So, my question is where should custom hubot script go in snap installation? Thanks in advance!
The text was updated successfully, but these errors were encountered: