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

Support Cylc 8 #33

Merged
merged 4 commits into from
Jun 12, 2024
Merged

Support Cylc 8 #33

merged 4 commits into from
Jun 12, 2024

Conversation

dpmatthews
Copy link
Member

No description provided.

Comment on lines +36 to +37
apt-get install -q -y subversion chromium-browser tkcvs tk libxml-parser-perl || error
xdg-settings set default-web-browser chromium-browser.desktop
Copy link
Member Author

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.

Comment on lines +131 to +134
# 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
Copy link
Member Author

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.

Comment on lines -199 to -203
#### 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'

Copy link
Member Author

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
Copy link
Member Author

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.

@dpmatthews dpmatthews merged commit 87ec2bd into metomi:master Jun 12, 2024
1 of 3 checks passed
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.

1 participant