-
Notifications
You must be signed in to change notification settings - Fork 31
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
On release, update omero-server Docker with export script #547
Comments
This issue has been mentioned on Image.sc Forum. There might be relevant details there: https://forum.image.sc/t/omere-figure-export-pdf-does-not-work/39573/31 |
This branch of my fork of omero-server-docker adds omero-figure to the python plugins installed in the ansible playbook so it is available in the server image by default and adds a script which auto-updates Figure_To_Pdf.py to the version in the latest tagged release of omero-figure. It does this by querying the github API to get the hash of the commit of the release and pulling Figure_To_Pdf.py from that commit. https://github.com/RichardJActon/omero-server-docker/tree/omero-figure-auto-update Happy to open a PR with this if you approve of the general approach. |
@will-moore this applies to any of the apps included in https://github.com/ome/omero-web-docker/blob/master/standalone/Dockerfile |
@jburel Are there any issues with using 'exotic' tags like that? |
@will-moore no we already used it. It is something to discuss with the wider group. As for the automation, we already have things in place via GHA e.g. ome/omero-web-docker#64 |
It occurred to me that there might be a better way of automating getting the scripts from the various packages into the right places in the docker image and ensuring that they are consistent with the installed package versions that does not rely on making potentially brittle API calls to github during the build process. It depends if python packages have an analog of this feature or not - I'm not sure I've not done a lot of python packaging. In R packages there is a folder |
It is not just the script , it is also its dependencies that potentially need to be updated. |
Indeed - so to clarify, the desired sequence of events is:
To be successful the image rebuild with the latest omero-figure needs to:
Setting aside triggering the rebuild with github actions for a moment and thinking about what needs to change in Docker build to update omero-figure, we need as I understand it, to:
There are two approaches I can think of to updating the script(s):
I would suggest that the latter option is the preferable approach as it creates a tight coupling between the package installed and the version of the script being used. It also does not make additional calls to external sources during the image build which are brittle and could fail breaking the image build. EDIT: *The web client image should probably also have a rebuild triggered on an omero-figure release so the client is in sync with the server. |
This topic was raised again today by @jburel... As I understand the current situation:
We're looking for solutions to 2 and 3 from this list? |
Only when the docker image is built. |
See https://forum.image.sc/t/omere-figure-export-pdf-does-not-work/39573/30
On release, we should update the omero-server Docker with the Pdf export script, as well as the omero-web Docker.
That way, it will always be installed for users, without needing complex workflows as described above.
The text was updated successfully, but these errors were encountered: