Skip to content

Commit

Permalink
Merge pull request #26 from manics/fix-travis
Browse files Browse the repository at this point in the history
Fix travis
  • Loading branch information
sbesson authored May 9, 2019
2 parents 671a764 + 127e74c commit 1243fb4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ ADD 50-config.py 60-database.sh 99-run.sh /startup/

USER omero-server

# Fixed in 5.5.0 https://github.com/openmicroscopy/openmicroscopy/pull/5949
RUN sed -i.bak -re \
's/(name="omero.fs.importArgs"\s+value=)""/\1"--no-upgrade-check"/' \
/opt/omero/server/OMERO.server/etc/templates/grid/templates.xml
EXPOSE 4063 4064
VOLUME ["/OMERO", "/opt/omero/server/OMERO.server/var"]

Expand Down
4 changes: 3 additions & 1 deletion test_processor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ SCRIPT=/omero/util_scripts/Dataset_To_Plate.py

dataset_id=$(docker exec $PREFIX-server $OMERO obj -q -s localhost -u $OMERO_USER -w $OMERO_PASS new Dataset name=$DSNAME | cut -d: -f2)

# Fixed in 5.5.0 https://github.com/openmicroscopy/openmicroscopy/pull/5949
BUGFIX_ARGS="--skip upgrade"
docker exec $PREFIX-server sh -c \
"touch /tmp/$FILENAME && $OMERO import -d $dataset_id /tmp/$FILENAME"
"touch /tmp/$FILENAME && $OMERO import $BUGFIX_ARGS -d $dataset_id /tmp/$FILENAME"

docker exec $PREFIX-server $OMERO script launch $SCRIPT IDs=$dataset_id
echo "Completed with code $?"
Expand Down

0 comments on commit 1243fb4

Please sign in to comment.