Skip to content
This repository has been archived by the owner on Dec 29, 2024. It is now read-only.

Commit

Permalink
fix batches
Browse files Browse the repository at this point in the history
  • Loading branch information
kiorky committed Sep 20, 2024
1 parent 99d0125 commit 845ad9d
Show file tree
Hide file tree
Showing 48 changed files with 67 additions and 3,398 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,20 +65,16 @@ jobs:
fail-fast: false
matrix:
IMAGES:
- "library/redis/latest library/redis/alpine library/redis/7 library/redis/7-alpine library/redis/7-bookworm library/redis/7-bullseye"
- "library/redis/5 library/redis/5-alpine"
- "library/redis/6 library/redis/6-alpine"
- "library/redis/7 library/redis/7-alpine"
- "library/redis/alpine library/redis/latest"
#- "corpusops/test/a corpusops/test/b corpusops/test/c"
# all images that werent explicitly told to be built would be built in the next batches
# we span them onto N jobs
- "zleftover:1/10"
- "zleftover:2/10"
- "zleftover:3/10"
- "zleftover:4/10"
- "zleftover:5/10"
- "zleftover:6/10"
- "zleftover:7/10"
- "zleftover:8/10"
- "zleftover:9/10"
- "zleftover:10/10"
- "zleftover:1/2"
- "zleftover:2/2"


on:
push:
Expand Down
13 changes: 3 additions & 10 deletions .github/workflows/cicd.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,9 @@ jobs:
#- "corpusops/test/a corpusops/test/b corpusops/test/c"
# all images that werent explicitly told to be built would be built in the next batches
# we span them onto N jobs
- "zleftover:1/10"
- "zleftover:2/10"
- "zleftover:3/10"
- "zleftover:4/10"
- "zleftover:5/10"
- "zleftover:6/10"
- "zleftover:7/10"
- "zleftover:8/10"
- "zleftover:9/10"
- "zleftover:10/10"
- "zleftover:1/2"
- "zleftover:2/2"


on:
push:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.args
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ARG NONINTERACTIVE=y
ARG DEBIAN_FRONTEND=noninteractive
ARG INSTALL_DEFAULT_LOCALE="fr_FR.UTF-8"
ARG EXTRA_FILES_LIST=""
ARG COPS_SYSTEM=${_cops_SYSTEM}
ARG COPS_SYSTEM=${_cops_SYSTEM-}
ARG FOREGO_RELEASE=latest
ARG REMCO_RELEASE=latest
ARG GOSU_RELEASE=latest
Expand Down
45 changes: 23 additions & 22 deletions helpers/up.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env sh
set -e
set -ex
log() { echo "${@}" >&2; }
vv() { log "${@}";"${@}"; }
DO_UPDATE=1
Expand All @@ -22,13 +22,15 @@ oldubuntu="^(10\.|12\.|13\.|14\.|15\.|16\.|17\.|18\.10|19\.|20\.10|21\.|22\.10)"
# oldubuntu="^(10\.|12\.|13\.|14.10|15\.|16.10|17\.04)"
NOSOCAT=""
CENTOS_OLDSTABLE=8
CENTOS_OLDSTABLES="6|7|8"
OAPTMIRROR="${OAPTMIRROR:-}"
OYUMMIRROR="${OYUMMIRROR:-}"
NYUMMIRROR="${NYUMMIRROR:-}"
OUBUNTUMIRROR="${OUBUNTUMIRROR:-old-releases.ubuntu.com}"
ODEBIANMIRROR="${ODEBIANMIRROR:-archive.debian.org}"
NDEBIANMIRROR="${NDEBIANMIRROR:-http.debian.net|httpredir.debian.org|deb.debian.org}"
NUBUNTUMIRROR="${NUBUNTUMIRROR:-archive.ubuntu.com|security.ubuntu.com}"
IS_OLD_CENTOS_STABLE=""
SNCENTOSMIRROR="$(echo "${NCENTOSMIRROR}"|sed -re "s/\|.*//g")"
SNDEBIANMIRROR="$(echo "${NDEBIANMIRROR}"|sed -re "s/\|.*//g")"
SNUBUNTUMIRROR="$(echo "${NUBUNTUMIRROR}"|sed -re "s/\|.*//g")"
Expand Down Expand Up @@ -58,27 +60,27 @@ elif [ -e /etc/redhat-release ];then
DISTRIB_RELEASE=$(echo $(head /etc/issue)|awk '{print tolower($3)}')
fi
DISTRIB_MAJOR="$(echo ${DISTRIB_RELEASE}|sed -re "s/\..*//g")"
if [ "x${DISTRIB_ID}" = "xcentos" ] && ( echo "${DISTRIB_MAJOR}" | grep -Eq "^(6|7|8)");then
sed -i 's/^mirrorlist/#mirrorlist/g;s|^#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
fi
if ( echo $DISTRIB_ID | grep -E -iq "centos|red|fedora" );then
if (echo $DISTRIB_ID|grep -E -iq centos);then
if (echo "$DISTRIB_RELEASE"|egrep -q "8|7");then
OCENTOSMIRROR="${OCENTOSMIRROR:-mirror.centos.org}"
NCENTOSMIRROR="${NCENTOSMIRROR:-vault.centos.org}"
elif [ $DISTRIB_RELEASE -le $CENTOS_OLDSTABLE ];then
OCENTOSMIRROR="${OCENTOSMIRROR:-vault.centos.org}"
NCENTOSMIRROR="${NCENTOSMIRROR:-mirror.centos.org}"
else
OCENTOSMIRROR="${OCENTOSMIRROR:-mirror.centos.org}"
NCENTOSMIRROR="${NCENTOSMIRROR:-vault.centos.org}"
fi
OYUMMIRROR="${OCENTOSMIRROR}"
NYUMMIRROR="${NCENTOSMIRROR}"
EPEL_RPM_URL="https://dl.fedoraproject.org/pub/epel/epel-release-latest-${DISTRIB_MAJOR}.noarch.rpm"
if [ "x${DISTRIB_ID}" = "xcentos" ] && ( echo "${DISTRIB_MAJOR}" | grep -Eq "$CENTOS_OLDSTABLES");then
IS_OLD_CENTOS_STABLE="1"
EPEL_RPM_URL="https://archives.fedoraproject.org/pub/archive/epel/7/x86_64/Packages/e/epel-release-7-14.noarch.rpm"
if (echo "$DISTRIB_RELEASE"|egrep -q "8|7");then
OCENTOSMIRROR="${OCENTOSMIRROR:-mirror.centos.org}"
NCENTOSMIRROR="${NCENTOSMIRROR:-vault.centos.org}"
elif [ $DISTRIB_RELEASE -le $CENTOS_OLDSTABLE ];then
OCENTOSMIRROR="${OCENTOSMIRROR:-vault.centos.org}"
NCENTOSMIRROR="${NCENTOSMIRROR:-mirror.centos.org}"
else
OCENTOSMIRROR="${OCENTOSMIRROR:-mirror.centos.org}"
NCENTOSMIRROR="${NCENTOSMIRROR:-vault.centos.org}"
fi
OYUMMIRROR="${OCENTOSMIRROR}"
NYUMMIRROR="${NCENTOSMIRROR}"
if [ "$OYUMMIRROR" != "x" ];then
sed -i -r -e 's!'$NCENTOSMIRROR'!'$OCENTOSMIRROR'!g' $( find /etc/yum.repos.d -type f; )
sed -i -r -e 's!'$OCENTOSMIRROR'!'$NCENTOSMIRROR'!g' $( find /etc/yum.repos.d -type f; )
fi
sed -i "s/^#.*baseurl=http/baseurl=http/g" $( find /etc/yum.repos.d -type f; )
sed -i "s/^mirrorlist=http/#mirrorlist=http/g" $( find /etc/yum.repos.d -type f; )
fi
if ( grep -q amzn /etc/os-release );then
yuminstall findutils
Expand All @@ -96,9 +98,8 @@ if [ -e /etc/redhat-release ];then
vv yum upgrade -y --nogpg fedora-gpg-keys fedora-repos
fi
if [ ! -e /etc/yum.repos.d/epel.repo ];then
rpm="epel-release-latest-${DISTRIB_MAJOR}.noarch.rpm"
curl -sSLO "https://dl.fedoraproject.org/pub/epel/$rpm"
rpm -ivh $(pwd)/$rpm
curl -sSLO "$EPEL_RPM_URL"
rpm -ivh $(pwd)/$(basename $EPEL_RPM_URL)
fi
if ! ( find --version >/dev/null 2>&1);then
yuminstall findutils
Expand Down
2 changes: 1 addition & 1 deletion library/redis/5-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG NONINTERACTIVE=y
ARG DEBIAN_FRONTEND=noninteractive
ARG INSTALL_DEFAULT_LOCALE="fr_FR.UTF-8"
ARG EXTRA_FILES_LIST=""
ARG COPS_SYSTEM=${_cops_SYSTEM}
ARG COPS_SYSTEM=${_cops_SYSTEM-}
ARG FOREGO_RELEASE=latest
ARG REMCO_RELEASE=latest
ARG GOSU_RELEASE=latest
Expand Down
97 changes: 0 additions & 97 deletions library/redis/5-bullseye/Dockerfile

This file was deleted.

97 changes: 0 additions & 97 deletions library/redis/5-buster/Dockerfile

This file was deleted.

Loading

0 comments on commit 845ad9d

Please sign in to comment.