Task #7872
Story #6753: Upgrade production environment to use Ubuntu 14.04
create debian packages compatible with Ubuntu-14.04
100%
Description
CN debian packages need to work on Ubuntu-14.04
History
#1 Updated by Rob Nahf about 8 years ago
Ubuntu 12 (precise) is based off debian wheezy
Ubuntu 14 (trusty) is based off debian jessie
as gleaned from jenkins-1 and jenkins-ucsb-1
(see http://theserverteam.com/finding-ubuntu-or-debian-version/)
rnahf@jenkins-ucsb-1:~$ cat /etc/debian_version
jessie/sid
rnahf@jenkins-ucsb-1:~$ cat /etc/issue.net
Ubuntu 14.04.5 LTS
rnahf@jenkins-ucsb-1:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"
rnahf@jenkins-ucsb-1:~$
rnahf@jenkins-1:~$ cat /etc/debian_version
wheezy/sid
rnahf@jenkins-1:~$ cat /etc/issue.net
Ubuntu 12.04.5 LTS
rnahf@jenkins-1:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.5 LTS"
rnahf@jenkins-1:~$
#2 Updated by Rob Nahf about 8 years ago
- Category set to d1_cn_buildout
- Status changed from New to Closed
- % Done changed from 0 to 100
- translation missing: en.field_remaining_hours set to 0.0
following the decision to put Ubuntu 14.04 dataone packages under trusty distributions,
updated /usr/local/bin/build_debian_package_repo.sh on jenkins-1, to make the distribution folder an optional parameter.
added the parameter 'trusty' to the unstable job scripts on jenkins-1.
#!/bin/bash
set -e
DPKG_DEB=/usr/bin/dpkg-deb;
PACKAGE=${1}
APTREPOS=${2}
BUILDDIR=${3}
DIST=${4}
if [ -z "$DIST"]
then
DIST="precise";
fi
sudo chown -R root:root $BUILDDIR/sources
#build the .deb
cd $BUILDDIR/sources && $DPKG_DEB -b $PACKAGE ..;
sudo chown -R jenkins:jenkins $BUILDDIR
#remove existing versions of the .deb
RESULTS=(find $APTREPOS -name "$PACKAGE*.deb" -print
)
echo ${#RESULTS[@]}
if [[ ${#RESULTS[@]} > 0 ]]; then
sudo chown jenkins:jenkins $APTREPOS/$PACKAGE*.deb
find $APTREPOS -name "$PACKAGE*.deb" -exec rm -rf {} \;
fi
#Copy in the new stuff
cp -f $BUILDDIR/.deb $APTREPOS;
sudo chown -R jenkins:jenkins $APTREPOS/
#Build the Packages.gz doc
APTPKG=$APTREPOS/dists/$DIST/universe/binary-amd64;
mkdir -p $APTPKG;
cd $APTREPOS && dpkg-scanpackages . /dev/null | gzip -9c > $APTPKG/Packages.gz;
sudo chown -R root:root $APTREPOS/*
#3 Updated by Rob Nahf about 8 years ago
- Parent task changed from #6625 to #6753