X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a61c6238265db896c91902f27f692f98f780393c..bde488e7eff0e9a94cbf9709d28de13603857a3d:/build/run-build-packages.sh diff --git a/build/run-build-packages.sh b/build/run-build-packages.sh index a29ba19790..7da70e7e78 100755 --- a/build/run-build-packages.sh +++ b/build/run-build-packages.sh @@ -15,8 +15,10 @@ Options: Build api server and workbench packages with vendor/bundle included --debug Output debug information (default: false) ---target +--target Distribution to build packages for (default: debian7) +--only-build + Build only a specific package (or $ONLY_BUILD from environment) --command Build command to execute (defaults to the run command defined in the Docker image) @@ -31,7 +33,7 @@ TARGET=debian7 COMMAND= PARSEDOPTS=$(getopt --name "$0" --longoptions \ - help,build-bundle-packages,debug,target: \ + help,build-bundle-packages,debug,target:,only-build: \ -- "" "$@") if [ $? -ne 0 ]; then exit 1 @@ -48,6 +50,9 @@ while [ $# -gt 0 ]; do --target) TARGET="$2"; shift ;; + --only-build) + ONLY_BUILD="$2"; shift + ;; --debug) DEBUG=1 ;; @@ -104,7 +109,7 @@ case "$TARGET" in ciso8601 pycrypto backports.ssl_match_hostname llfuse==0.41.1 \ 'pycurl<7.21.5' contextlib2 pyyaml 'rdflib>=4.2.0' \ shellescape mistune typing avro ruamel.ordereddict - cachecontrol) + cachecontrol requests) PYTHON3_BACKPORTS=(docker-py==1.7.2 six requests websocket-client) ;; debian8) @@ -126,7 +131,7 @@ case "$TARGET" in ciso8601 pycrypto backports.ssl_match_hostname llfuse==0.41.1 \ contextlib2 'pycurl<7.21.5' pyyaml 'rdflib>=4.2.0' \ shellescape mistune typing avro isodate ruamel.ordereddict - cachecontrol) + cachecontrol requests) PYTHON3_BACKPORTS=(docker-py==1.7.2 six requests websocket-client) ;; ubuntu1404) @@ -172,7 +177,7 @@ case "$TARGET" in oauth2client==1.5.2 pyasn1==0.1.7 pyasn1-modules==0.0.5 \ rsa uritemplate httplib2 ws4py pykka \ ciso8601 pycrypto 'pycurl<7.21.5' \ - python-daemon llfuse==0.41.1 'pbr<1.0' pyyaml \ + python-daemon==2.1.1 llfuse==0.41.1 'pbr<1.0' pyyaml \ 'rdflib>=4.2.0' shellescape mistune typing avro \ isodate pyparsing sparqlwrapper html5lib==0.9999999 keepalive \ ruamel.ordereddict cachecontrol) @@ -248,6 +253,7 @@ fi # Perl packages debug_echo -e "\nPerl packages\n" +if [[ -z "$ONLY_BUILD" ]] || [[ "libarvados-perl" = "$ONLY_BUILD" ]] ; then cd "$WORKSPACE/sdk/perl" if [[ -e Makefile ]]; then @@ -263,6 +269,7 @@ perl Makefile.PL INSTALL_BASE=install >"$STDOUT_IF_DEBUG" && \ "Curoverse, Inc." dir "$(version_from_git)" install/man/=/usr/share/man \ "$WORKSPACE/LICENSE-2.0.txt=/usr/share/doc/libarvados-perl/LICENSE-2.0.txt" && \ mv --no-clobber libarvados-perl*.$FORMAT "$WORKSPACE/packages/$TARGET/" +fi # Ruby gems debug_echo -e "\nRuby gems\n" @@ -431,6 +438,8 @@ package_go_binary tools/keep-block-check keep-block-check \ "Verify that all data from one set of Keep servers to another was copied" package_go_binary tools/keep-rsync keep-rsync \ "Copy all data from one set of Keep servers to another" +package_go_binary tools/keep-exercise keep-exercise \ + "Performance testing tool for Arvados Keep" # The Python SDK # Please resist the temptation to add --no-python-fix-name to the fpm call here @@ -446,14 +455,14 @@ fpm_build $WORKSPACE/sdk/python "${PYTHON2_PKG_PREFIX}-arvados-python-client" 'C # cwl-runner cd $WORKSPACE/packages/$TARGET rm -rf "$WORKSPACE/sdk/cwl/build" -fpm_build $WORKSPACE/sdk/cwl "${PYTHON2_PKG_PREFIX}-arvados-cwl-runner" 'Curoverse, Inc.' 'python' "$(awk '($1 == "Version:"){print $2}' $WORKSPACE/sdk/cwl/arvados_cwl_runner.egg-info/PKG-INFO)" "--url=https://arvados.org" "--description=The Arvados CWL runner" --iteration 3 +fpm_build $WORKSPACE/sdk/cwl "${PYTHON2_PKG_PREFIX}-arvados-cwl-runner" 'Curoverse, Inc.' 'python' "$(awk '($1 == "Version:"){print $2}' $WORKSPACE/sdk/cwl/arvados_cwl_runner.egg-info/PKG-INFO)" "--url=https://arvados.org" "--description=The Arvados CWL runner" --depends "${PYTHON2_PKG_PREFIX}-setuptools" --iteration 3 fpm_build lockfile "" "" python 0.12.2 --epoch 1 # schema_salad. This is a python dependency of arvados-cwl-runner, # but we can't use the usual PYTHONPACKAGES way to build this package due to the -# intricacies of how version numbers get generated in setup.py: we need version -# 1.7.20160316203940. If we don't explicitly list that version with the -v +# intricacies of how version numbers get generated in setup.py: we need a specific version, +# e.g. 1.7.20160316203940. If we don't explicitly list that version with the -v # argument to fpm, and instead specify it as schema_salad==1.7.20160316203940, we get # a package with version 1.7. That's because our gittagger hack is not being # picked up by self.distribution.get_version(), which is called from @@ -465,7 +474,7 @@ fpm_build lockfile "" "" python 0.12.2 --epoch 1 # So we build this thing separately. # # Ward, 2016-03-17 -fpm_build schema_salad "" "" python 1.18.20160907135919 --depends "${PYTHON2_PKG_PREFIX}-lockfile >= 1:0.12.2-2" +fpm_build schema_salad "" "" python 1.20.20161122192122 --depends "${PYTHON2_PKG_PREFIX}-lockfile >= 1:0.12.2-2" # And schema_salad now depends on ruamel-yaml, which apparently has a braindead setup.py that requires special arguments to build (otherwise, it aborts with 'error: you have to install with "pip install ."'). Sigh. # Ward, 2016-05-26 @@ -476,7 +485,7 @@ fpm_build ruamel.yaml "" "" python 0.12.4 --python-setup-py-arguments "--single- fpm_build cwltest "" "" python 1.0.20160907111242 # And for cwltool we have the same problem as for schema_salad. Ward, 2016-03-17 -fpm_build cwltool "" "" python 1.0.20160913171024 +fpm_build cwltool "" "" python 1.0.20161128202906 # FPM eats the trailing .0 in the python-rdflib-jsonld package when built with 'rdflib-jsonld>=0.3.0'. Force the version. Ward, 2016-03-25 fpm_build rdflib-jsonld "" "" python 0.3.0 @@ -537,6 +546,11 @@ esac for deppkg in "${PYTHON_BACKPORTS[@]}"; do outname=$(echo "$deppkg" | sed -e 's/^python-//' -e 's/[<=>].*//' -e 's/_/-/g' -e "s/^/${PYTHON2_PKG_PREFIX}-/") + + if [[ -n "$ONLY_BUILD" ]] && [[ "$outname" != "$ONLY_BUILD" ]] ; then + continue + fi + case "$deppkg" in httplib2|google-api-python-client) # Work around 0640 permissions on some package files. @@ -586,6 +600,7 @@ handle_rails_package arvados-api-server "$WORKSPACE/services/api" \ --license="GNU Affero General Public License, version 3.0" # Build the workbench server package +if [[ -z "$ONLY_BUILD" ]] || [[ "arvados-workbench" = "$ONLY_BUILD" ]] ; then ( set -e cd "$WORKSPACE/apps/workbench" @@ -610,6 +625,7 @@ handle_rails_package arvados-api-server "$WORKSPACE/services/api" \ # Remove generated configuration files so they don't go in the package. rm config/application.yml config/environments/production.rb ) +fi if [[ "$?" != "0" ]]; then echo "ERROR: Asset precompilation failed"