Skip to content
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

Merged
merged 2 commits into from
Jul 23, 2019
Merged

Data mount #28

merged 2 commits into from
Jul 23, 2019

Conversation

digitronik
Copy link
Owner

@digitronik digitronik commented Jul 21, 2019

extra data mount
It will help to mount testing pages in selenium server

Signed-off-by: Nikhil Dhandre <ndhandre@redhat.com>
@sbulage sbulage self-assigned this Jul 22, 2019
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"}}})
Copy link
Collaborator

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

Copy link
Owner Author

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?

Copy link
Collaborator

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"]
)
Copy link
Collaborator

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>
@digitronik
Copy link
Owner Author

@ganeshhubale @sbulage done

@sbulage
Copy link
Collaborator

sbulage commented Jul 23, 2019

LGTM 👍

@sbulage sbulage merged commit da53d0a into master Jul 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants