-
Notifications
You must be signed in to change notification settings - Fork 7
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
Data mount #28
Data mount #28
Conversation
Signed-off-by: Nikhil Dhandre <ndhandre@redhat.com>
miqsel/server.py
Outdated
mount_dir = self.cfg["container"]["data_dir"] | ||
|
||
if mount_dir != "None": | ||
kwargs.update({"volumes": {mount_dir: {"bind": "/usr/tmp", "mode": "ro"}}}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strongly Suggest use either /tmp
or /var/tmp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/tmp
in heavy container used for creating temp files and .x11 stuff. so its not valid.
about /var/tmp
we can use but I think its sharing same like /urs/tmp
right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. @digitronik you are right, so instead of /usr/tmp
use directly /var/tmp
.
@@ -41,5 +41,8 @@ def config(): | |||
cfg["container"]["server_port"] = click.prompt( | |||
"Selenium server running on port?", default=cfg["container"]["server_port"] | |||
) | |||
cfg["container"]["data_dir"] = click.prompt( | |||
"Extra data mount directory to '/urs/tmp'", default=cfg["container"]["data_dir"] | |||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo:
'/urs/tmp'
should be '/usr/tmp'
Signed-off-by: Nikhil Dhandre <ndhandre@redhat.com>
@ganeshhubale @sbulage done |
LGTM 👍 |
extra data mount
It will help to mount testing pages in selenium server