|
|
@ -14,19 +14,26 @@ mkdir -p "${HOME}/rpmbuild/RPMS/RPMS${DIST}.tde-${TDE_VERSION}"
|
|
|
|
mkdir -p "${HOME}/rpmbuild/SRPMS/SRPMS${DIST}.tde-${TDE_VERSION}"
|
|
|
|
mkdir -p "${HOME}/rpmbuild/SRPMS/SRPMS${DIST}.tde-${TDE_VERSION}"
|
|
|
|
mkdir -p "/dev/shm/docker"
|
|
|
|
mkdir -p "/dev/shm/docker"
|
|
|
|
|
|
|
|
|
|
|
|
docker run -t -i --rm --privileged \
|
|
|
|
case "${VERSION}" in
|
|
|
|
|
|
|
|
"14.0."*) TDE_BRANCH="r14.0.x";;
|
|
|
|
|
|
|
|
*) TDE_BRANCH="master";;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p "${HOME}/rpmbuild/RPMS/RPMS${DIST}.tde-${TDE_VERSION}" "${HOME}/rpmbuild/SRPMS/SRPMS${DIST}.tde-${TDE_VERSION}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
docker run -ti --rm --privileged \
|
|
|
|
-h "${IMAGE}" \
|
|
|
|
-h "${IMAGE}" \
|
|
|
|
--name "${IMAGE//:/-}" \
|
|
|
|
--name "${IMAGE//:/-}" \
|
|
|
|
-v /dev/shm/docker:/tmp:z \
|
|
|
|
-v /dev/shm/docker:/tmp:z \
|
|
|
|
-u trinity \
|
|
|
|
-u trinity \
|
|
|
|
-e TMPPATH=/tmp \
|
|
|
|
-e TMPPATH=/tmp \
|
|
|
|
-e TDE_VERSION=${TDE_VERSION} \
|
|
|
|
-e TDE_VERSION=${TDE_VERSION} \
|
|
|
|
-w /home/trinity/tde/tde-packaging.r14.0.x/redhat \
|
|
|
|
-e TDE_BRANCH=${TDE_BRANCH} \
|
|
|
|
|
|
|
|
-w /home/trinity/tde/${TDE_BRANCH}/tde-packaging/redhat \
|
|
|
|
-v ${HOME}/.gnupg:/home/trinity/.gnupg \
|
|
|
|
-v ${HOME}/.gnupg:/home/trinity/.gnupg \
|
|
|
|
-v ${HOME}/tde/tde-packaging.r14.0.x:/home/trinity/tde/tde-packaging.r14.0.x \
|
|
|
|
-v ${HOME}/tde/${TDE_BRANCH}/tde-packaging:/home/trinity/tde/${TDE_BRANCH}/tde-packaging \
|
|
|
|
-v ${HOME}/tde/tde-packaging.master:/home/trinity/tde/tde-packaging.master \
|
|
|
|
-v ${HOME}/tde/patches:/home/trinity/tde/patches \
|
|
|
|
-v ${HOME}/tde/tde-patches:/home/trinity/tde/tde-patches \
|
|
|
|
-v ${HOME}/tde/tarballs:/home/trinity/tde/tarballs \
|
|
|
|
-v ${HOME}/tde/tde-tarballs:/home/trinity/tde/tde-tarballs \
|
|
|
|
|
|
|
|
-v ${HOME}/rpmbuild/RPMS/RPMS${DIST}.tde-${TDE_VERSION}:/home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION} \
|
|
|
|
-v ${HOME}/rpmbuild/RPMS/RPMS${DIST}.tde-${TDE_VERSION}:/home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION} \
|
|
|
|
-v ${HOME}/rpmbuild/SRPMS/SRPMS${DIST}.tde-${TDE_VERSION}:/home/trinity/rpmbuild/SRPMS.tde-${TDE_VERSION} \
|
|
|
|
-v ${HOME}/rpmbuild/SRPMS/SRPMS${DIST}.tde-${TDE_VERSION}:/home/trinity/rpmbuild/SRPMS.tde-${TDE_VERSION} \
|
|
|
|
"${IMAGE}" setarch ${ARCH} bash
|
|
|
|
"${IMAGE}" setarch ${ARCH} bash
|
|
|
|