GithubHelp home page GithubHelp logo

Comments (7)

manics avatar manics commented on September 2, 2024

What changes are required that can't be handled by docker run --user UID?

from ansible-role-omero-web.

joshmoore avatar joshmoore commented on September 2, 2024

That doesn't change the UID/GID of the files owned by that user, right? The goal in that thread is to be able to access the source file to develop on omero-web. The docker cp workflow there would need this change. Other ideas welcome.

from ansible-role-omero-web.

manics avatar manics commented on September 2, 2024

https://www.openmicroscopy.org/community/viewtopic.php?f=4&t=8397&start=10#p18793
forum-image

A host directory is being mounted on /opt/omero/web, which means the permissions and UID should be entirely determined by the host system.

from ansible-role-omero-web.

joshmoore avatar joshmoore commented on September 2, 2024

I don't follow. The goal of using docker cp was to have a simple way to get the valid values out for editing. However, docker cp transforms permissions even when using -a. Another option would be to have all of /opt/omero/web in a volume, but that's not currently the case. The downstream dockerfile that I added on that forum post does the trick, but it's suboptimal.

from ansible-role-omero-web.

manics avatar manics commented on September 2, 2024

If the primary goal is development I'd have though it'd be easier to download OMERO.py on the host, mount that on /opt/omero/web/OMERO.web, run the docker container with your local UID, and make changes on your host, bypassing the need to copy files back and forth.

edit: what would be even nicer is if you could git clone https://github.com/openmicroscopy/openmicroscopy locally and mount a subdir of that on /opt/omero/web/OMERO.web

from ansible-role-omero-web.

joshmoore avatar joshmoore commented on September 2, 2024

The difference between docker cp and wget OMERO.py is probably negligible, so whatever works.

More critical is going to be getting the UIDs/GIDs correct which is what this card is about. I tried several things (all on that thread) with only the last working and it would be simplified by being able to change the UID in the build without needing to chown. If you have another working blurb that doesn't require it, 👍

from ansible-role-omero-web.

joshmoore avatar joshmoore commented on September 2, 2024

what would be even nicer is if you could git clone https://github.com/openmicroscopy/openmicroscopy locally and mount a subdir of that on /opt/omero/web/OMERO.web

Not exactly the same, but at least for the OMERO.server image there's now https://github.com/openmicroscopy/openmicroscopy/pull/5656/files#diff-3254677a7917c6c01f55212f86c57fbf

from ansible-role-omero-web.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.