Task #6368 (closed)
Opened 13 years ago
Closed 8 years ago
Make/ensure that the VM Scripts are idempotent
Reported by: | szwells | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | Unscheduled |
Component: | General | Version: | OMERO-5.2.0 |
Keywords: | n.a. | Cc: | jamoore, cmacleod-x, khgillen, rleigh, bpindelski, pwalczycko |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | n.a. |
Description
The scripts rely on external repositories, for example, to get updates to the OS & external prerequisite software. These represent potential points of failure in the scripts. If the scripts fail then you should be able to rerun them in place. Currently there are a number of points where rerunning the scripts does not yield idempotent behaviour:
- In omerovm.sh the VM will be deleted if it already exists and a new one created
- The environment variables are added to .bashrc without checking whether they already exist
- There are no checks to ensure that a postgres user or omero DB does not already exist
Change History (2)
comment:1 Changed 11 years ago by jmoore
- Cc cmacleod-x khgillen rleigh bpindelski pwalczycko added
- Owner szwells deleted
comment:2 Changed 8 years ago by sbesson
- Resolution set to invalid
- Status changed from new to closed
- Version set to OMERO-5.2.0
VM is deprecated as of 5.2.2