-
Notifications
You must be signed in to change notification settings - Fork 14
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
Support Cylc 8 #33
Support Cylc 8 #33
Conversation
apt-get install -q -y subversion chromium-browser tkcvs tk libxml-parser-perl || error | ||
xdg-settings set default-web-browser chromium-browser.desktop |
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.
The Cylc 8 graph view seems to have weird display issues with Firefox on the Ubuntu 22.04 VM (never seen this issue with Firefox anywhere else). Switching to Chromium for the moment.
# Insecure workaround for browser permissions error | ||
# See https://stackoverflow.com/questions/70753768/jupyter-notebook-access-to-the-file-was-denied | ||
mkdir -p /opt/metomi-site/etc/cylc/uiserver | ||
dos2unix -n /vagrant/opt/metomi-site/etc/cylc/uiserver/jupyter_config.py /opt/metomi-site/etc/cylc/uiserver/jupyter_config.py |
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.
This workaround exposes the auth token in the process list so would not be appropriate on a shared system.
#### Configure firefox as the default PDF viewer | ||
sudo -u $(logname) mkdir -p /home/vagrant/.local/share/applications | ||
sudo -u $(logname) bash -c 'echo "[Added Associations]" >/home/vagrant/.local/share/applications/mimeapps.list' | ||
sudo -u $(logname) bash -c 'echo "application/pdf=firefox.desktop;" >>/home/vagrant/.local/share/applications/mimeapps.list' | ||
|
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.
I suspect this was only added to allow viewing of the old PDF versions of the documentation which we no longer produce.
@@ -85,10 +85,10 @@ else | |||
echo "[INFO] No errors detected" | |||
fi | |||
|
|||
if [[ $collections =~ desktop ]]; then | |||
rm -f /etc/nologin | |||
if [[ $collections =~ desktop && ! $collections =~ skip-shutdown ]]; then |
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.
Shutting down and then restarting was wasting time in github actions and also causing some failures which I couldn't explain so I've added this crude method to skip the shutdown.
No description provided.