-
Notifications
You must be signed in to change notification settings - Fork 15
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
omego install #36
omego install #36
Conversation
Upgrade* classes renamed Install* Add a parameter and conditional to control whether an upgrade or new install is performed Separate --upgradedb (upgrade) or --initdb (new) params for database Maintains backwards compatibility for now, will probably change to a common argument when the command line args are refactored
Also rearrange log messages
I got
|
When executing the second example from a "wrong" folder, I got:
Expected ? |
What does -v option do ? What is it supposed to do ? |
hmmm
|
Will continue tomorrow - definitely confused, need some explanation |
...
Yes, that's the purpose of this PR. You should only use
|
Works as expected. Ready to merge. See my ramblings on #39. |
As pointed out by @pwalczysko the current behaviour of
omego upgrade
automatically creating anOMERO-CURRENT
symlink if it doesn't exist is annoying if you inadvertently run omego from the wrong directory. This PR just moves that behaviour into a newomego install
command (optionally with--initdb
).install
andupgrade
should also check straight away for the presence/absence of theOMERO-CURRENT
symlinkOther than this
omero install
is identical to the previousomego upgrade
behaviour, i.e. not yet a proper installer.In addition travis has been split into two sub-builds, the old wget+upgrade and a new install, though if you trust the install command enough it could replace the wget and setup commands, and we'd be back at a single build. The upgrade test now checks a multi-stage db upgrade works (4.4->5.1DEV)
Example commands are in .travis.yml
e.g.
omego install --initdb --dbhost localhost --dbname omero -v http://downloads.openmicroscopy.org/omero/5.0.0-rc1/artifacts/OMERO.server-5.0.0-rc1-ice34-b10.zip
omego upgrade --branch=OMERO-5.1-latest --labels=ICE=3.4 --upgradedb --dbhost localhost --dbname omero -v