THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
No Format |
---|
# Go to the build slave, docker-slave-06 or docker-slave-07, depends on which built the packages VERSION=1.4.0 OS=centos-7 cp -r /home/jenkins/workspace/Bigtop-1.4.0${VERSION}/DISTRO/${OS}/PLATFORM/amd64-slave/output ~/${OS} |
...
No Format |
---|
gpg --import YOUR_CODE_SIGNING_SECRET_KEY echo "%_gpg_name YOUR_CODE_SIGNING_KEY_ID" > ~/.rpmmacros yum install -y rpm-sign createrepo |
Signing:
No Format |
---|
cd /tmp OS=centos-7 # Sign all RPM packages (This step required to input passphrase, so don't copy and paste the entire script here) OS=centos-7 rpm --addsign `find ${OS} -name \*rpm` # Recreate the metadata for repository createrepo ${OS} # Armor the metadata gpg --detach-sign --armor ${OS}/repodata/repomd.xml |
...
No Format |
---|
gpg --armor --export evansye@apache.org > opensuse-42.13/repodata/repomd.xml.key for i in `find opensuse-42.13/repodata -name *.xml.gz` opensuse-42.13/repodata/repomd.xml.key ; do gpg --detach-sign --armor $i ; done |
...
No Format |
---|
# Go to the build slave, docker-slave-06 or docker-slave-07, depends on which built the packages VERSION=1.4.0 OS=debian-9 SLAVE=amd64-slave # or aarch64-slave, or ... cp -r /home/jenkins/workspace/Bigtop-1.2.1/OS/debian-8${VERSION}/DISTRO/${OS}/PLATFORM/${SLAVE}/output ~/debian-8${OS} |
Startup a docker images that is DEB based system:
No Format |
---|
cd ~/ docker run -ti --rm -v $PWD:/tmp bigtop/puppet:1.4.0-debian-89 bash |
Prepare the environment for signing:
No Format |
---|
gpg --import YOUR_CODE_SIGNING_SECRET_KEY apt-get update apt-get install -y dpkg-siggpg apt-get install -y libterm-readkey-perl apt-get install -y dpkg-sig apt-get install -y reprepro gpg --import YOUR_CODE_SIGNING_SECRET_KEY |
Signing:
No Format |
---|
VERSION=1.4.0 OS=debian-9 SIGN_KEY=B7B4BD70 cd /tmptmp export GPG_TTY=$(tty) # Sign DEB packages (This step required to input passphrase, so don't copy and paste the entire script here) dpkg-sig --cache-passphrase --sign builder `find debian-8${OS}/ -name \*deb` # Build signed apt repository mkdir -p apt/conf cat > apt/conf/distributions <<__EOT__ Origin: Bigtop Label: Bigtop Suite: stable Codename: bigtop Version: 1.2.1${VERSION} Architectures: amd64 source Components: contrib Description: Apache Bigtop SignWith: 8C10EE0A${SIGN_KEY} __EOT__ cat > apt/conf/options <<__EOT__ verbose ask-passphrase __EOT__ rm -rf ${OS}/apt reprepro --ask-passphrase -Vb . includedeb bigtop `find debian-8${OS}/ -name \*deb` |
5.5. Create repo files
...