diff options
author | François Andriot <albator78@libertysurf.fr> | 2017-07-25 18:36:32 +0200 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2017-07-25 18:36:32 +0200 |
commit | 2a9e6e2053407cd126bf1154086f3ca170c7d5a9 (patch) | |
tree | 0bc55a768492922ffffc01167dd96624d8384f93 /redhat/docker/opensuse32.sh | |
parent | a166e45221dabbf06d176ce3186e5f52b1549a1f (diff) | |
download | tde-packaging-2a9e6e2053407cd126bf1154086f3ca170c7d5a9.tar.gz tde-packaging-2a9e6e2053407cd126bf1154086f3ca170c7d5a9.zip |
RPM packaging: update build scripts
Diffstat (limited to 'redhat/docker/opensuse32.sh')
-rwxr-xr-x | redhat/docker/opensuse32.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/redhat/docker/opensuse32.sh b/redhat/docker/opensuse32.sh new file mode 100755 index 000000000..9622efd56 --- /dev/null +++ b/redhat/docker/opensuse32.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +NAME="opensuse32" +VERSION="$1" # E.g: '42.3' +IMAGE="${NAME}:${VERSION}" +INSTALLROOT="/dev/shm/${IMAGE}" + +sudo rm -rf "${INSTALLROOT}" +sudo mkdir -p "${INSTALLROOT}" + +sudo zypper --root "${INSTALLROOT}" \ + ar "http://download.opensuse.org/distribution/leap/${VERSION}/repo/oss/" "oss" +sudo zypper --root "${INSTALLROOT}" \ + ar "http://download.opensuse.org/distribution/leap/${VERSION}/repo/non-oss/" "non-oss" +sudo zypper --root "${INSTALLROOT}" \ + ar "http://download.opensuse.org/update/leap/${VERSION}/oss/" "update-oss" +sudo zypper --root "${INSTALLROOT}" \ + ar "http://download.opensuse.org/update/leap/${VERSION}/non-oss/" "update-non-oss" +setarch i686 sudo zypper --root "${INSTALLROOT}" \ + --gpg-auto-import-keys ref +setarch i686 sudo zypper --root "${INSTALLROOT}" \ + install -y bash vim zypper openSUSE-release + +sudo tar -C "${INSTALLROOT}" -c . >"${IMAGE}.tar" +sudo rm -rf "${INSTALLROOT}" + +docker rmi -f "${IMAGE}" +docker import "${IMAGE}.tar" "${IMAGE}" |