-
Notifications
You must be signed in to change notification settings - Fork 51
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
Merge build #2035
Merged
Merged
Merge build #2035
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
5270470
Copy from jenkins
joshmoore 6bf2512
Updates for running locally
joshmoore 493ac61
Rely on pip-installed omero
joshmoore bd2721e
workspace fixes
joshmoore 2226797
Simplify script for artifacts rather than release
joshmoore cd4a836
Download OMERO.server in Jenkinsfile
joshmoore ca434ea
Activate phase 1 OMERO.server
joshmoore 9869602
Create a virtualenv
joshmoore ee959e6
Correct starting location of scripts
joshmoore d606ebb
Futurize and add new pypi versions
joshmoore 19f1f9a
Fix web development issue
joshmoore 7a47dc2
Merge branch 'develop' into merge-build
joshmoore 5bbe2b5
Temporarily pre-run for logging purposes
joshmoore 8901081
Install future in venv
joshmoore 11c2b98
Always recreate venv, preferring py3
joshmoore 3e350e7
Install ansible
joshmoore f8407fb
Remove osx for omeroweb-install
joshmoore 441d96c
Set PYTHONPATH
joshmoore 28ef1e0
Install scc
joshmoore 03184a1
Temporarily pin pyyaml to 5.1
joshmoore 2d44f5c
Replace make with ant
joshmoore 5daa8aa
Include pip-local just in case
joshmoore 5b46c95
Add newline at end of file
joshmoore File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
venv | ||
.DS_Store | ||
*.pyc | ||
OMERO.server* | ||
omero-install | ||
omeroweb-install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
set -u | ||
set -x | ||
|
||
# TODO | ||
echo no linkcheck | ||
|
||
# from the sub-script | ||
export WORKSPACE=${WORKSPACE:-$(pwd)} | ||
export USER=${USER:-$(whoami)} | ||
export OMERODIR=${WORKSPACE}/OMERO.server | ||
|
||
# VARIABLES #1 | ||
MESSAGE="Update auto-generated documentation" | ||
PUSH_COMMAND="update-submodules develop --no-ask --push develop/latest/autogen" | ||
OPEN_PR=false | ||
export SPHINXOPTS=-W | ||
|
||
# Responsibilities of caller, likely omero-docs-superbuild | ||
test -e $WORKSPACE/OMERO.server | ||
test -e $WORKSPACE/omero-install | ||
test -e $WORKSPACE/omeroweb-install | ||
|
||
if [ -e $WORKSPACE/venv ]; then | ||
rm -rf $WORKSPACE/venv | ||
fi | ||
python3 -m venv --system-site-packages $WORKSPACE/venv || virtualenv --system-site-packages $WORKSPACE/venv | ||
$WORKSPACE/venv/bin/pip install -r $WORKSPACE/OMERO.server/share/web/requirements-py27.txt | ||
$WORKSPACE/venv/bin/pip install future 'ansible<2.7' | ||
$WORKSPACE/venv/bin/pip install -U PyYAML==5.1 | ||
$WORKSPACE/venv/bin/pip install scc | ||
set +u # PS1 issue | ||
. $WORKSPACE/venv/bin/activate | ||
set -u | ||
export PATH=$WORKSPACE/OMERO.server/bin:$PATH:$HOME/.local/bin | ||
export PYTHONPATH=$WORKSPACE/OMERO.server/lib/python | ||
|
||
cd $WORKSPACE/ome-documentation/ | ||
omero/autogen_docs | ||
|
||
if [[ -z $(git status -s) ]]; then | ||
echo "No local changes" | ||
else | ||
git add . | ||
if [ "$OPEN_PR" = "true" ]; then | ||
scc $PUSH_COMMAND -m "$MESSAGE" | ||
else | ||
scc $PUSH_COMMAND --no-pr -m "$MESSAGE" | ||
fi | ||
fi | ||
|
||
# OSX compatibility for testing | ||
MD5SUM=md5sum | ||
type $MD5SUM || MD5SUM=md5 | ||
SHA1SUM=sha1sum | ||
type $SHA1SUM || SHA1SUM=shasum | ||
|
||
cd omero | ||
run_ant(){ | ||
ant "$@" -Dsphinx.opts="$SPHINXOPTS" -Domero.release="$OMERO_RELEASE" | ||
} | ||
run_ant clean html | ||
|
||
echo "Order deny,allow | ||
Deny from all | ||
Allow from 134.36 | ||
Allow from 10 | ||
Satisfy Any" > _build/.htaccess | ||
run_ant zip | ||
for x in $WORKSPACE/ome-documentation/omero/_build/*.zip | ||
do | ||
base=`basename $x` | ||
dir=`dirname $x` | ||
pushd "$dir" | ||
$MD5SUM "$base" >> "$base.md5" | ||
$SHA1SUM "$base" >> "$base.sha1" | ||
popd | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
set -u | ||
set -e | ||
set -x | ||
set -o pipefail | ||
WORKSPACE=${WORKSPACE:-$(pwd)} | ||
USER=${USER:-$(whoami)} | ||
|
||
|
@@ -19,36 +20,37 @@ cat $WORKSPACE/OMERO.server/history.rst >> newfile.rst | |
mv newfile.rst omero/users/history.rst | ||
|
||
echo "Generating configuration properties page" | ||
$WORKSPACE/OMERO.server/bin/omero config parse --rst | sed "s|$WORKSPACE|/home/omero|" > omero/sysadmins/config.rst | ||
omero config parse --rst # Pre-run to see errors | ||
omero config parse --rst | sed "s|$WORKSPACE|/home/omero|" > omero/sysadmins/config.rst | ||
|
||
echo "Generating ldap setdn usage page" | ||
mkdir -p omero/downloads/ldap | ||
(cd $WORKSPACE/OMERO.server && bin/omero ldap setdn -h) > omero/downloads/ldap/setdn.out | ||
(cd $WORKSPACE/OMERO.server && omero ldap setdn -h) > omero/downloads/ldap/setdn.out | ||
|
||
echo "Generating advanced CLI help" | ||
(cd $WORKSPACE/OMERO.server && bin/omero import --advanced-help) 2> advanced-help.txt || echo "Dumped" | ||
(cd $WORKSPACE/OMERO.server && omero import --advanced-help) 2> advanced-help.txt || echo "Dumped" | ||
sed 1,5d advanced-help.txt > omero/downloads/inplace/advanced-help.txt | ||
(cd $WORKSPACE/OMERO.server && bin/omero import --javahelp) 2> java-help.txt || echo "Dumped" | ||
(cd $WORKSPACE/OMERO.server && omero import --javahelp) 2> java-help.txt || echo "Dumped" | ||
sed 1,5d java-help.txt > omero/downloads/cli/help.out | ||
|
||
echo "Generating DB script example" | ||
(cd $WORKSPACE && OMERO.server/bin/omero db script --password secretpassword 2>&1) | sed "s|$WORKSPACE|/home/omero|" > omero/downloads/cli/db-script-example.txt | ||
(cd $WORKSPACE && omero db script --password secretpassword 2>&1) | sed "s|$WORKSPACE|/home/omero|" > omero/downloads/cli/db-script-example.txt | ||
|
||
echo "Generating Web configuration templates" | ||
# Nginx / WSGI | ||
$WORKSPACE/OMERO.server/bin/omero web config nginx | sed "s|$WORKSPACE/OMERO.server|/home/omero/OMERO.py|g" > omero/sysadmins/unix/install-web/nginx-omero.conf | ||
$WORKSPACE/OMERO.server/bin/omero web config nginx-location | sed "s|$WORKSPACE/OMERO.server|/home/omero/OMERO.py|g" | grep -v '^#' > omero/sysadmins/unix/install-web/nginx-location.conf | ||
$WORKSPACE/OMERO.server/bin/omero web config nginx-location | sed "s|/opt/omero/web|/home/omero|g" | grep '^##' | cut -c3- | ||
omero config set omero.web.application_server wsgi-tcp | ||
omero web config nginx | sed "s|$WORKSPACE/OMERO.server|/home/omero/OMERO.py|g" > omero/sysadmins/unix/install-web/nginx-omero.conf | ||
omero web config nginx-location | sed "s|$WORKSPACE/OMERO.server|/home/omero/OMERO.py|g" | grep -v '^#' > omero/sysadmins/unix/install-web/nginx-location.conf | ||
omero web config nginx-location | sed "s|/opt/omero/web|/home/omero|g" | grep '^##' | cut -c3- | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note to self. This will have to be reviewed when we rename |
||
> omero/sysadmins/unix/install-web/nginx-location-manual-wrapper.conf | ||
|
||
echo "Generating omeroweb install walkthrough" | ||
|
||
(cd $WORKSPACE/omeroweb-install && ansible-playbook ./.travis/../ansible/omeroweb-install-doc.yml -i ./.travis/../ansible/hosts/centos7-ice3.6 --extra-vars '{"os": "centos7", "ice_version": "3.6", "clean": True}') | ||
(cd $WORKSPACE/omeroweb-install && ansible-playbook ./.travis/../ansible/omeroweb-install-doc.yml -i ./.travis/../ansible/hosts/ubuntu-ice3.6 --extra-vars '{"os": "ubuntu", "ice_version": "3.6", "clean": True}') | ||
(cd $WORKSPACE/omeroweb-install && ansible-playbook ./.travis/../ansible/omeroweb-install-doc.yml -i ./.travis/../ansible/hosts/osx-ice3.6 --extra-vars '{"os": "osx", "ice_version": "3.6", "clean": True}') | ||
(cd $WORKSPACE/omeroweb-install && ansible-playbook ./.travis/../ansible/omeroweb-install-doc.yml -i ./.travis/../ansible/hosts/debian-ice3.6 --extra-vars '{"os": "debian", "ice_version": "3.6", "clean": True}') | ||
|
||
mv $WORKSPACE/omeroweb-install/ansible/doc/* $WORKSPACE/src/omero/sysadmins/unix/install-web/walkthrough | ||
mv $WORKSPACE/omeroweb-install/ansible/doc/* $WORKSPACE/ome-documentation/omero/sysadmins/unix/install-web/walkthrough | ||
|
||
echo "Copying omero-install Linux scripts" | ||
DIRECTORY=omero/sysadmins/unix/walkthrough/ | ||
|
@@ -64,11 +66,11 @@ rm walkthrough_*.sh | |
|
||
for f in \ | ||
README.md \ | ||
requirements* \ | ||
requirements\* \ | ||
settings.env \ | ||
settings-web.env \ | ||
setup_* \ | ||
omero-* \ | ||
setup_\* \ | ||
omero-\* \ | ||
; do | ||
cp $WORKSPACE/omero-install/linux/$f $DIRECTORY | ||
done | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$WORKSPACE/venv/bin/pip install -r $WORKSPACE/OMERO.server/share/web/requirements-py27.txt
seems strange with the decoupled workThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. Happy to replace it, but requires something upstream.
see ome/omero-web#96