Skip to content

Update eNotes button in admin page

Created by: dtu-compute

This is copy/paste from https://github.com/dtu-compute/doc/blob/master/file-manager.md#get-pdfs-for-the-enote-drop-down-menu

Get PDF's for the eNote drop down menu

So there should be an "Update eNotes" button which executes

ssh root@get-pdf /get_pdf.sh "http://enote.compute.dtu.dk:14000" test@dtu.dk test@dtu.dk 01005 579b4ec056432e5b00742d93

and then rescans /vol/enotes/10005/ and update the eNotes drop down menu. The get-pdf container will be in the same private Docker network (currently called testnet) so the hostname get-pdf can be reached by the website.

get-pdf is a container which only purpose is to download eNotes from the different ShareLatex containers, post process the pdf's, and put them in /vol/enotes/10005/ for the website to read them from.

The 5 arguments for get_pdf.sh are

  • url to the courses sharelatex container
  • sharelatex username for enote dumper user
  • sharelatex password for enote dumper user
  • course number
  • enote project number

There should be some sort of global enote yaml config file which containers all the secrets like these 5 values for each course. I imagine the other containers also have config values like these that would be suited for a global config?

I haven't build the get-pdf container yet, but will do it next.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information