set -eo pipefail
-echo "deb http://apt.arvados.org/ buster main" | sudo tee /etc/apt/sources.list.d/arvados.list
+echo "deb http://apt.arvados.org/buster buster main" | sudo tee /etc/apt/sources.list.d/arvados.list
# Install a few dependencies
sudo DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install gnupg2 wget git default-jdk docker.io netcat
FREIGHT_SCRIPT = """
cd "$1"; shift
DISTNAME=$1; shift
-freight add "$@" "apt/$DISTNAME"
-freight cache "apt/$DISTNAME"
+aptly repo add "$DISTNAME" "$@"
+aptly publish update "$DISTNAME" filesystem:"${DISTNAME%-*}":
rm "$@"
"""
# --packages list of packages, comma separated, to move from dev_repo_dir to prod_repo_dir
# --distros list of distros, comma separated, to which to publish packages
-APT_REPO_BASE_DIR="/var/lib/freight"
RPM_REPO_BASE_DIR="/var/www/rpm.arvados.org"
### MAIN ####################################################################
else
for DISTNAME in ${DIST_LIST}; do
ADDED=()
- cd ${APT_REPO_BASE_DIR}
- mkdir -p ${APT_REPO_BASE_DIR}/apt/${DISTNAME}
echo "Copying packages ..."
for P in ${PACKAGES}; do
- cp ${APT_REPO_BASE_DIR}/apt/${DISTNAME}-testing/${P} ${APT_REPO_BASE_DIR}/apt/${DISTNAME}/
- if [ $? -ne 0 ]; then
- FAILED_PACKAGES="${FAILED_PACKAGES} ${P}"
- else
- TMP=`ls -C1 ${APT_REPO_BASE_DIR}/apt/${DISTNAME}-testing/${P}`
- ADDED+=( "${TMP[@]}" )
- fi
- done
- for P in "${ADDED[@]}"; do
- freight add apt/${DISTNAME}/$(basename ${P}) apt/${DISTNAME}
+ aptly repo copy ${DISTNAME}-testing ${DISTNAME} $(basename ${P})
done
- echo "Recreating repo apt/${DISTNAME} ..."
- freight cache apt/${DISTNAME}
+ echo "Publishing ${DISTNAME} repository..."
+ aptly publish update ${DISTNAME} filesystem:${DISTNAME}:
done
fi
#
# SPDX-License-Identifier: AGPL-3.0
-# This script publishes packages from our dev repo to the prod repo (#11572)
-# Parameters: list of packages, space separated, to move from *-testing to *
-# under /var/lib/freight/apt/ in host public.curoverse.com
+# This script publishes packages from our testing repo to the prod repo
+# (#11572)
+# Parameters: list of packages, space separated, to copy from *-testing to *
APT_REPO_SERVER="apt.arvados.org"
RPM_REPO_SERVER="rpm.arvados.org"