THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||
---|---|---|
| ||
cd ~/ # Change the image for AARCH64 or PPC64LE docker run -ti --rm -v $PWD:/tmpwork bigtop/puppet:1.4.0-centos-7 bash |
...
Code Block | ||
---|---|---|
| ||
cd /tmpwork OS=centos-7 # Sign all RPM packages (This step required to input passphrase, so don't copy and paste the entire script here) rpm --addsign `find ${OS} -name \*rpm` # Recreate the metadata for repository createrepo ${OS} # Armor the metadata gpg --detach-sign --armor ${OS}/repodata/repomd.xml |
...
Code Block | ||
---|---|---|
| ||
cd ~/ # Change the image for AARCH64 or PPC64LE docker run -ti --rm -v $PWD:/tmpwork bigtop/puppet:1.4.0-debian-9 bash |
...
Code Block | ||
---|---|---|
| ||
cd /tmpwork VERSION=1.4.0 OS=debian-9 ARCH=amd64 #ARCH=arm64 #ARCH=ppc64el SIGN_KEY=B7B4BD70 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 --sign-changes force_full `find ${OS}/ -name \*deb` # Build signed apt repository mkdir -p conf cat > conf/distributions <<__EOT__ Origin: Bigtop Label: Bigtop Suite: stable Codename: bigtop Version: ${VERSION} Architectures: ${ARCH} source Components: contrib Description: Apache Bigtop SignWith: ${SIGN_KEY} __EOT__ cat > conf/options <<__EOT__ verbose ask-passphrase __EOT__ rm -rf ${OS}/apt # Note that this command creates the apt repository (db, dists, pool) # in the current directory, so you can't ran it for multiple distros in parallel. reprepro --ask-passphrase -Vb . includedeb bigtop `find ${OS}/ -name \*deb` rm -rf ./${OS}/* mv conf db dists pool ${OS} |
...
For YUM repos, upload files /tmpwork/centos-7/* into into repos.bigtop.apache.org/releases/1.4.0/centos/7/x86_64/. For example:
...
For APT repos, upload files /tmpwork/debian-9/* into into repos.bigtop.apache.org/releases/1.4.0/debian/9//. For example:
...
Code Block | ||
---|---|---|
| ||
cd ~/ docker run -ti -u jenkins -v $PWD:/tmpwork bigtop/slaves:trunk-ubuntu-18.04 bash -l # The subsequence commands should be executed inside the docker container cp -r /tmpwork/.gnupg ~/ |
Create a maven settings file ~/.m2/settings.xml with the following content:
...
Code Block | ||
---|---|---|
| ||
VERSION=X.Y.Z RC_NUMBER=n cd /tmpwork git clone https://gitbox.apache.org/repos/asf/bigtop.git -b release-${VERSION} --depth 1 wget --no-parent --recursive --reject='index.html*' https://dist.apache.org/repos/dist/dev/bigtop/bigtop-${VERSION}-RC${RC_NUMBER}/ # make sure that the source code tree and the release tarball are identical except for .git/CI/site releated files tar xf dist.apache.org/repos/dist/dev/bigtop/bigtop-${VERSION}-RC${RC_NUMBER}/bigtop-${VERSION}-project.tar.gz diff -r bigtop bigtop-${VERSION} # make sure that the signature and checksums are correct cd dist.apache.org/repos/dist/dev/bigtop/bigtop-${VERSION}-RC${RC_NUMBER} gpg --verify bigtop-${VERSION}-project.tar.gz.asc bigtop-${VERSION}-project.tar.gz diff <(sha256sum bigtop-${VERSION}-project.tar.gz) bigtop-${VERSION}-project.tar.gz.sha256 diff <(sha512sum bigtop-${VERSION}-project.tar.gz) bigtop-${VERSION}-project.tar.gz.sha512 # make sure that all files exist and their signatures are correct for i in $(find repos -not -name '*.asc' -type f); do echo ${i}; gpg --verify ${i}.asc ${i}; done |
...