X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0c66cb22bd16305ca9b75b0b56a73587cc22e84f..116c96b2c709ed47490ddf05a66000fa3974359b:/build/run-build-packages.sh diff --git a/build/run-build-packages.sh b/build/run-build-packages.sh index 0e74ac6f25..e231a83df8 100755 --- a/build/run-build-packages.sh +++ b/build/run-build-packages.sh @@ -125,7 +125,7 @@ case "$TARGET" in FORMAT=rpm PYTHON3_PACKAGE=$(rpm -qf "$(which python$PYTHON3_VERSION)" --queryformat '%{NAME}\n') PYTHON3_PKG_PREFIX=$PYTHON3_PACKAGE - PYTHON3_PREFIX=/opt/rh/rh-python36/root/usr + PYTHON3_PREFIX=/usr PYTHON3_INSTALL_LIB=lib/python$PYTHON3_VERSION/site-packages export PYCURL_SSL_LIBRARY=nss ;; @@ -259,10 +259,8 @@ debug_echo -e "\nPython packages\n" git checkout $DASHQ_UNLESS_DEBUG "$COMMIT_HASH" echo "$COMMIT_HASH" >git-commit.version - cd "$SRC_BUILD_DIR" - PKG_VERSION=$(version_from_git) cd $WORKSPACE/packages/$TARGET - fpm_build "$WORKSPACE" $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" + fpm_build "$WORKSPACE" $SRC_BUILD_DIR/=/usr/local/arvados/src arvados-src 'dir' "$arvados_src_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 @@ -327,6 +325,17 @@ fpm_build_virtualenv "crunchstat-summary" "tools/crunchstat-summary" "python3" # The Docker image cleaner fpm_build_virtualenv "arvados-docker-cleaner" "services/dockercleaner" "python3" +# The Arvados user activity tool +fpm_build_virtualenv "arvados-user-activity" "tools/user-activity" "python3" + +# The python->python3 metapackages +build_metapackage "arvados-fuse" "services/fuse" +build_metapackage "arvados-python-client" "services/fuse" +build_metapackage "arvados-cwl-runner" "sdk/cwl" +build_metapackage "crunchstat-summary" "tools/crunchstat-summary" +build_metapackage "arvados-docker-cleaner" "services/dockercleaner" +build_metapackage "arvados-user-activity" "tools/user-activity" + # The cwltest package, which lives out of tree cd "$WORKSPACE" if [[ -e "$WORKSPACE/cwltest" ]]; then @@ -336,6 +345,9 @@ 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" "python3" +# The python->python3 metapackage +build_metapackage "cwltest" "cwltest" +cd "$WORKSPACE" rm -rf "$WORKSPACE/cwltest" calculate_go_package_version arvados_server_version cmd/arvados-server @@ -389,8 +401,8 @@ if [[ "$?" == "0" ]] ; then mv /tmp/x /etc/arvados/config.yml perl -p -i -e 'BEGIN{undef $/;} s/WebDAV(.*?):\n( *)ExternalURL: ""/WebDAV$1:\n$2ExternalURL: "example.com"/g' /etc/arvados/config.yml - RAILS_ENV=production RAILS_GROUPS=assets bundle exec rake npm:install >"$STDOUT_IF_DEBUG" - RAILS_ENV=production RAILS_GROUPS=assets bundle exec rake assets:precompile >"$STDOUT_IF_DEBUG" + ARVADOS_CONFIG=none RAILS_ENV=production RAILS_GROUPS=assets bundle exec rake npm:install >"$STDOUT_IF_DEBUG" + ARVADOS_CONFIG=none RAILS_ENV=production RAILS_GROUPS=assets bundle exec rake assets:precompile >"$STDOUT_IF_DEBUG" # Remove generated configuration files so they don't go in the package. rm -rf /etc/arvados/