Giter VIP home page Giter VIP logo

Comments (1)

sbesson avatar sbesson commented on July 30, 2024 1

Added some notes capturing how this feature had been implemented in ci.openmicroscopy.org a few years back with @pwalczysko.

Minimally, this implementation can be seen as an extension of the PURGE_DATA option in devspace 0.11.0 as:

if [ "$PURGE_DATA" = "true" ]; then
dropdb -h $OMERO_DB_HOST -U $OMERO_DB_USER $OMERO_DB_NAME || echo "First run or already exists"
rm -rf $OMERO_DATA_DIR
else
echo "Skipping PURGE_DATA:CleanDbAndRepo"
fi

In addition to these comamnds purging the database and the binary repository, a subsequent step is to restore an existing reference DB + binary repo. There are a few assumptions here:

  • the database and the binary repo need to be available from the Jenkins environment

  • the golden DB to be created in a systematic way (pg_dump format, disk layout)

  • enough space need to be provisioned esp. for large valuable DBs. By default, the data directory is in the same place as the devspace clone.

    <hudson.model.StringParameterDefinition>
    <name>DATA_DIR</name>
    <description>Default is $HOME/omero-server-data</description>
    <defaultValue>$HOME/omero-server-data</defaultValue>
    </hudson.model.StringParameterDefinition>

    Minimally, this variable would need to be overriden or the path on disk symlinked to a larger volume with appropriate write permissions.

from devspace.

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.