GithubHelp home page GithubHelp logo

Comments (8)

mvdbeek avatar mvdbeek commented on June 8, 2024

What about putting a empty file into /export during build-time.

this is what we're doing in https://github.com/ARTbio/GalaxyKickStart/blob/master/roles/galaxy.movedata/tasks/main.yml. As an added bonus you will be able to commit your docker images :).

from ansible-galaxy-extras.

bgruening avatar bgruening commented on June 8, 2024

So you ended up with the same idea and named this file .original? :)

from ansible-galaxy-extras.

mvdbeek avatar mvdbeek commented on June 8, 2024

exactly ... seemed like the easiest way to control the persistence, and works with containers and VMs.

from ansible-galaxy-extras.

bgruening avatar bgruening commented on June 8, 2024

What are you plans for this sub-role? Why is this not upstream ;)

from ansible-galaxy-extras.

mvdbeek avatar mvdbeek commented on June 8, 2024

Sure, let's do that. I'll make this a separate repo, and make it configurable if you want hard-links or soft links, and you'll use that for docker-galaxy?

from ansible-galaxy-extras.

mvdbeek avatar mvdbeek commented on June 8, 2024

Hmm, though it would be a bit more work for the custom locations you're using. What we do is just take the location in the container (say /var/lib/postgresql-9.3/ and move that to /export/var/lib/postgresql-9.3/). Not a crazy amount of work, but that will need some testing.

from ansible-galaxy-extras.

bgruening avatar bgruening commented on June 8, 2024

I guess soft-links are enough? If you have already ported the export_user_files.py.j2 to ansible than lets use this. I'm not entirely convinced that ansible is more readable than a python script but I'm willing to learn :)

I don't see a problem with the custom locations as these can be migrated if needed like here: https://github.com/galaxyproject/ansible-galaxy-extras/blob/master/templates/startup.sh.j2#L3

Wenn wir es uns richtig dreckig geben wollen könnten wir in dem Rutsch auch dem Umstieg auf Ubuntu 16.04 machen. With this change people need to upgrade there DB not matter what and we can introduce this the new location as well.

from ansible-galaxy-extras.

mvdbeek avatar mvdbeek commented on June 8, 2024

I guess soft-links are enough?

For containers definitely, but for the VM use case you may want to upgrade the instance by replaying the playbook. Unfortunately ansible doesn't play nice with softlinks. Though in reality, you would probably just point a new VM against old exported data, just as in docker.
I'll make it configurable, maybe we can even remove the hardlink option. The downside with hardlinks is that with GalaxyKickStart containers we need to run privileged containers to be able to do bindmounts, so here soft-links would definitely be better.

from ansible-galaxy-extras.

Related Issues (20)

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.