X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/89bc5fc945891bec4322fe14b6d11d0cdc1ca267..30298819bc92b5ec90c8544bee7e102cb64e888d:/build/run-build-packages.sh diff --git a/build/run-build-packages.sh b/build/run-build-packages.sh index f1cc6965cd..b800d43e08 100755 --- a/build/run-build-packages.sh +++ b/build/run-build-packages.sh @@ -30,8 +30,18 @@ WORKSPACE=path Path to the Arvados source tree to build packages from EOF -EXITCODE=0 +# Begin of user configuration + +# set to --no-cache-dir to disable pip caching +CACHE_FLAG= + +MAINTAINER="Ward Vandewege " +VENDOR="Veritas Genetics, Inc." + +# End of user configuration + DEBUG=${ARVADOS_DEBUG:-0} +EXITCODE=0 TARGET=debian8 COMMAND= @@ -215,7 +225,7 @@ if [[ -z "$ONLY_BUILD" ]] || [[ "libarvados-perl" = "$ONLY_BUILD" ]] ; then perl Makefile.PL INSTALL_BASE=install >"$STDOUT_IF_DEBUG" && \ make install INSTALLDIRS=perl >"$STDOUT_IF_DEBUG" && \ fpm_build install/lib/=/usr/share libarvados-perl \ - "Curoverse, Inc." dir "$(version_from_git)" install/man/=/usr/share/man \ + dir "$(version_from_git)" install/man/=/usr/share/man \ "$WORKSPACE/apache-2.0.txt=/usr/share/doc/libarvados-perl/apache-2.0.txt" && \ mv --no-clobber libarvados-perl*.$FORMAT "$WORKSPACE/packages/$TARGET/" fi @@ -238,21 +248,6 @@ handle_ruby_gem arvados-login-sync # Python packages debug_echo -e "\nPython packages\n" -cd "$WORKSPACE/sdk/pam" -handle_python_package - -cd "$WORKSPACE/sdk/python" -handle_python_package - -cd "$WORKSPACE/sdk/cwl" -handle_python_package - -cd "$WORKSPACE/services/fuse" -handle_python_package - -cd "$WORKSPACE/services/nodemanager" -handle_python_package - # arvados-src ( cd "$WORKSPACE" @@ -277,10 +272,9 @@ handle_python_package cd "$SRC_BUILD_DIR" PKG_VERSION=$(version_from_git) cd $WORKSPACE/packages/$TARGET - fpm_build $SRC_BUILD_DIR/=/usr/local/arvados/src arvados-src 'Curoverse, Inc.' 'dir' "$PKG_VERSION" "--exclude=usr/local/arvados/src/.git" "--url=https://arvados.org" "--license=GNU Affero General Public License, version 3.0" "--description=The Arvados source code" "--architecture=all" + fpm_build $SRC_BUILD_DIR/=/usr/local/arvados/src arvados-src 'dir' "$PKG_VERSION" "--exclude=usr/local/arvados/src/.git" "--url=https://arvados.org" "--license=GNU Affero General Public License, version 3.0" "--description=The Arvados source code" "--architecture=all" rm -rf "$SRC_BUILD_DIR" - fi ) @@ -294,6 +288,8 @@ package_go_binary cmd/arvados-server arvados-server \ "Arvados server daemons" package_go_binary cmd/arvados-server arvados-controller \ "Arvados cluster controller daemon" +package_go_binary cmd/arvados-server arvados-dispatch-cloud \ + "Arvados cluster cloud dispatch" package_go_binary sdk/go/crunchrunner crunchrunner \ "Crunchrunner executes a command inside a container and uploads the output" package_go_binary services/arv-git-httpd arvados-git-httpd \ @@ -335,15 +331,7 @@ fpm_build_virtualenv "arvados-python-client" "sdk/python" "python3" fpm_build_virtualenv "arvados-cwl-runner" "sdk/cwl" # The PAM module -if [[ $TARGET =~ debian|ubuntu ]]; then - cd $WORKSPACE/packages/$TARGET - rm -rf "$WORKSPACE/sdk/pam/build" - libpam_arvados_version=$(awk '($1 == "Version:"){print $2}' $WORKSPACE/sdk/pam/arvados_pam.egg-info/PKG-INFO) - test_package_presence libpam-arvados "$libpam_arvados_version" python - if [[ "$?" == "0" ]]; then - fpm_build $WORKSPACE/sdk/pam libpam-arvados 'Curoverse, Inc.' 'python' "$libpam_arvados_version" "--url=https://arvados.org" "--description=PAM module for authenticating shell logins using Arvados API tokens" --depends libpam-python - fi -fi +fpm_build_virtualenv "libpam-arvados" "sdk/pam" # The FUSE driver fpm_build_virtualenv "arvados-fuse" "services/fuse" @@ -357,30 +345,16 @@ fpm_build_virtualenv "arvados-docker-cleaner" "services/dockercleaner" "python3" # The Arvados crunchstat-summary tool fpm_build_virtualenv "crunchstat-summary" "tools/crunchstat-summary" -# Forked libcloud -if test_package_presence "$PYTHON2_PKG_PREFIX"-apache-libcloud "$LIBCLOUD_PIN" python 2 -then - LIBCLOUD_DIR=$(mktemp -d) - ( - cd $LIBCLOUD_DIR - git clone $DASHQ_UNLESS_DEBUG https://github.com/curoverse/libcloud.git . - git checkout $DASHQ_UNLESS_DEBUG apache-libcloud-$LIBCLOUD_PIN - # libcloud is absurdly noisy without -q, so force -q here - OLD_DASHQ_UNLESS_DEBUG=$DASHQ_UNLESS_DEBUG - DASHQ_UNLESS_DEBUG=-q - handle_python_package - DASHQ_UNLESS_DEBUG=$OLD_DASHQ_UNLESS_DEBUG - ) - - # libcloud >= 2.3.0 now requires python-requests 2.4.3 or higher, otherwise - # it throws - # ImportError: No module named packages.urllib3.poolmanager - # when loaded. We only see this problem on ubuntu1404, because that is our - # only supported distribution that ships with a python-requests older than - # 2.4.3. - fpm_build $LIBCLOUD_DIR "$PYTHON2_PKG_PREFIX"-apache-libcloud "" python "" --iteration 2 --depends 'python-requests >= 2.4.3' - rm -rf $LIBCLOUD_DIR +# The cwltest package, which lives out of tree +cd "$WORKSPACE" +if [[ -e "$WORKSPACE/cwltest" ]]; then + rm -rf "$WORKSPACE/cwltest" fi +git clone https://github.com/common-workflow-language/cwltest.git +# signal to our build script that we want a cwltest executable installed in /usr/bin/ +mkdir cwltest/bin && touch cwltest/bin/cwltest +fpm_build_virtualenv "cwltest" "cwltest" +rm -rf "$WORKSPACE/cwltest" # Build the API server package test_rails_package_presence arvados-api-server "$WORKSPACE/services/api"