Skip to content

Instantly share code, notes, and snippets.

@satmandu
Last active November 3, 2025 23:38
Show Gist options
  • Save satmandu/d8365cb70b899901a05290d31c04909a to your computer and use it in GitHub Desktop.
Save satmandu/d8365cb70b899901a05290d31c04909a to your computer and use it in GitHub Desktop.
#!/bin/bash
# crew-pre-glibc-standalone-alex-i686.m58.sh
if [ -z ${CI+x} ]; then
echo "CI is not set."
else
CI_PASSTHROUGH=-e
CI_PASSTHROUGH+=" "
CI_PASSTHROUGH+=NESTED_CI=${CI}
fi
if [ -z ${CREW_MAX_BUILD_TIME+x} ]; then
echo "CREW_MAX_BUILD_TIME is not set."
else
CREW_MAX_BUILD_TIME_PASSTHROUGH=-e
CREW_MAX_BUILD_TIME_PASSTHROUGH+=" "
CREW_MAX_BUILD_TIME_PASSTHROUGH+=CREW_MAX_BUILD_TIME=${CREW_MAX_BUILD_TIME}
fi
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
SESSION_TYPE=remote/ssh
elif pstree -p 2>/dev/null | egrep --quiet --extended-regexp ".*sshd.*\($$\)"; then
SESSION_TYPE=remote/ssh
else
case $(ps -o comm= -p $PPID) in
sshd|*/sshd) SESSION_TYPE=remote/ssh;;
esac
fi
if [ -z ${PAGER+x} ]; then
echo "PAGER is not set."
else
PAGER_PASSTHROUGH=-e
PAGER_PASSTHROUGH+=" "
PAGER_PASSTHROUGH+=CONTAINER_PAGER=${PAGER}
fi
if [ -z ${REPO+x} ] && [ -z ${BRANCH+x} ] && [ -z ${BRANCH+x} ]; then
echo "Alternate BRANCH/OWNER/REPO is not set."
else
: "${BRANCH:=master}"
: "${OWNER:=chromebrew}"
: "${REPO:=chromebrew}"
REPO_PASSTHROUGH=-e
REPO_PASSTHROUGH+=" "
REPO_PASSTHROUGH+=CREW_REPO=https://github.com/${OWNER}/${REPO}.git
REPO_PASSTHROUGH+=" -e "
REPO_PASSTHROUGH+=CREW_BRANCH=${BRANCH}
fi
if [ -z ${TZ+x} ]; then
echo "TZ is not set."
else
TZ_PASSTHROUGH=-e
TZ_PASSTHROUGH+=" "
TZ_PASSTHROUGH+=TZ=${TZ}
fi
X11=-e
X11+=" "
X11+=DISPLAY=${DISPLAY:-:0.0}
X11+=" "
if ! [[ $SESSION_TYPE == remote/ssh ]] && [ -d /tmp/.X11-unix ]; then
X11+=" -v /tmp/.X11-unix:/tmp/.X11-unix "
fi
if [ -f "$HOME"/.Xauthority ]; then
X11+=--volume=$HOME/.Xauthority:/home/chronos/user/.Xauthority:rw
X11+=" "
X11+=--volume=$HOME/.Xauthority:/home/chronos/.Xauthority:rw
fi
docker pull --platform linux/386 satmandu/crew-pre-glibc-standalone:alex-i686.m58
docker pull tonistiigi/binfmt
docker run --privileged --rm tonistiigi/binfmt --install all
docker run --init --platform linux/386 --rm --net=host ${CI_PASSTHROUGH} ${CREW_MAX_BUILD_TIME_PASSTHROUGH} ${PAGER_PASSTHROUGH} ${REPO_PASSTHROUGH} ${TZ_PASSTHROUGH} ${X11} -e LOCALRC="${LOCALRC}" -v $(pwd)/pkg_cache:/usr/local/tmp/packages -v $(pwd):/output -h $(hostname)-i686 --tmpfs /tmp --ulimit "nofile=$(ulimit -Sn):$(ulimit -Hn)" -it satmandu/crew-pre-glibc-standalone:alex-i686.m58 $@
#!/bin/bash
# crew-pre-glibc-standalone-fievel-armv7l.m91.sh
if [ -z ${CI+x} ]; then
echo "CI is not set."
else
CI_PASSTHROUGH=-e
CI_PASSTHROUGH+=" "
CI_PASSTHROUGH+=NESTED_CI=${CI}
fi
if [ -z ${CREW_MAX_BUILD_TIME+x} ]; then
echo "CREW_MAX_BUILD_TIME is not set."
else
CREW_MAX_BUILD_TIME_PASSTHROUGH=-e
CREW_MAX_BUILD_TIME_PASSTHROUGH+=" "
CREW_MAX_BUILD_TIME_PASSTHROUGH+=CREW_MAX_BUILD_TIME=${CREW_MAX_BUILD_TIME}
fi
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
SESSION_TYPE=remote/ssh
elif pstree -p 2>/dev/null | egrep --quiet --extended-regexp ".*sshd.*\($$\)"; then
SESSION_TYPE=remote/ssh
else
case $(ps -o comm= -p $PPID) in
sshd|*/sshd) SESSION_TYPE=remote/ssh;;
esac
fi
if [ -z ${PAGER+x} ]; then
echo "PAGER is not set."
else
PAGER_PASSTHROUGH=-e
PAGER_PASSTHROUGH+=" "
PAGER_PASSTHROUGH+=CONTAINER_PAGER=${PAGER}
fi
if [ -z ${REPO+x} ] && [ -z ${BRANCH+x} ] && [ -z ${BRANCH+x} ]; then
echo "Alternate BRANCH/OWNER/REPO is not set."
else
: "${BRANCH:=master}"
: "${OWNER:=chromebrew}"
: "${REPO:=chromebrew}"
REPO_PASSTHROUGH=-e
REPO_PASSTHROUGH+=" "
REPO_PASSTHROUGH+=CREW_REPO=https://github.com/${OWNER}/${REPO}.git
REPO_PASSTHROUGH+=" -e "
REPO_PASSTHROUGH+=CREW_BRANCH=${BRANCH}
fi
if [ -z ${TZ+x} ]; then
echo "TZ is not set."
else
TZ_PASSTHROUGH=-e
TZ_PASSTHROUGH+=" "
TZ_PASSTHROUGH+=TZ=${TZ}
fi
X11=-e
X11+=" "
X11+=DISPLAY=${DISPLAY:-:0.0}
X11+=" "
if ! [[ $SESSION_TYPE == remote/ssh ]] && [ -d /tmp/.X11-unix ]; then
X11+=" -v /tmp/.X11-unix:/tmp/.X11-unix "
fi
if [ -f "$HOME"/.Xauthority ]; then
X11+=--volume=$HOME/.Xauthority:/home/chronos/user/.Xauthority:rw
X11+=" "
X11+=--volume=$HOME/.Xauthority:/home/chronos/.Xauthority:rw
fi
docker pull --platform linux/arm/v7 satmandu/crew-pre-glibc-standalone:fievel-armv7l.m91
docker pull tonistiigi/binfmt
docker run --privileged --rm tonistiigi/binfmt --install all
docker run --init --platform linux/arm/v7 --rm --net=host ${CI_PASSTHROUGH} ${CREW_MAX_BUILD_TIME_PASSTHROUGH} ${PAGER_PASSTHROUGH} ${REPO_PASSTHROUGH} ${TZ_PASSTHROUGH} ${X11} -e LOCALRC="${LOCALRC}" -v $(pwd)/pkg_cache:/usr/local/tmp/packages -v $(pwd):/output -h $(hostname)-armv7l --tmpfs /tmp --ulimit "nofile=$(ulimit -Sn):$(ulimit -Hn)" -it satmandu/crew-pre-glibc-standalone:fievel-armv7l.m91 $@
#!/bin/bash
# crew-pre-glibc-standalone-nocturne-x86_64.m90.sh
if [ -z ${CI+x} ]; then
echo "CI is not set."
else
CI_PASSTHROUGH=-e
CI_PASSTHROUGH+=" "
CI_PASSTHROUGH+=NESTED_CI=${CI}
fi
if [ -z ${CREW_MAX_BUILD_TIME+x} ]; then
echo "CREW_MAX_BUILD_TIME is not set."
else
CREW_MAX_BUILD_TIME_PASSTHROUGH=-e
CREW_MAX_BUILD_TIME_PASSTHROUGH+=" "
CREW_MAX_BUILD_TIME_PASSTHROUGH+=CREW_MAX_BUILD_TIME=${CREW_MAX_BUILD_TIME}
fi
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
SESSION_TYPE=remote/ssh
elif pstree -p 2>/dev/null | egrep --quiet --extended-regexp ".*sshd.*\($$\)"; then
SESSION_TYPE=remote/ssh
else
case $(ps -o comm= -p $PPID) in
sshd|*/sshd) SESSION_TYPE=remote/ssh;;
esac
fi
if [ -z ${PAGER+x} ]; then
echo "PAGER is not set."
else
PAGER_PASSTHROUGH=-e
PAGER_PASSTHROUGH+=" "
PAGER_PASSTHROUGH+=CONTAINER_PAGER=${PAGER}
fi
if [ -z ${REPO+x} ] && [ -z ${BRANCH+x} ] && [ -z ${BRANCH+x} ]; then
echo "Alternate BRANCH/OWNER/REPO is not set."
else
: "${BRANCH:=master}"
: "${OWNER:=chromebrew}"
: "${REPO:=chromebrew}"
REPO_PASSTHROUGH=-e
REPO_PASSTHROUGH+=" "
REPO_PASSTHROUGH+=CREW_REPO=https://github.com/${OWNER}/${REPO}.git
REPO_PASSTHROUGH+=" -e "
REPO_PASSTHROUGH+=CREW_BRANCH=${BRANCH}
fi
if [ -z ${TZ+x} ]; then
echo "TZ is not set."
else
TZ_PASSTHROUGH=-e
TZ_PASSTHROUGH+=" "
TZ_PASSTHROUGH+=TZ=${TZ}
fi
X11=-e
X11+=" "
X11+=DISPLAY=${DISPLAY:-:0.0}
X11+=" "
if ! [[ $SESSION_TYPE == remote/ssh ]] && [ -d /tmp/.X11-unix ]; then
X11+=" -v /tmp/.X11-unix:/tmp/.X11-unix "
fi
if [ -f "$HOME"/.Xauthority ]; then
X11+=--volume=$HOME/.Xauthority:/home/chronos/user/.Xauthority:rw
X11+=" "
X11+=--volume=$HOME/.Xauthority:/home/chronos/.Xauthority:rw
fi
docker pull --platform linux/amd64 satmandu/crew-pre-glibc-standalone:nocturne-x86_64.m90
docker pull tonistiigi/binfmt
docker run --privileged --rm tonistiigi/binfmt --install all
docker run --init --platform linux/amd64 --rm --net=host ${CI_PASSTHROUGH} ${CREW_MAX_BUILD_TIME_PASSTHROUGH} ${PAGER_PASSTHROUGH} ${REPO_PASSTHROUGH} ${TZ_PASSTHROUGH} ${X11} -e LOCALRC="${LOCALRC}" -v $(pwd)/pkg_cache:/usr/local/tmp/packages -v $(pwd):/output -h $(hostname)-x86_64 --tmpfs /tmp --ulimit "nofile=$(ulimit -Sn):$(ulimit -Hn)" -it satmandu/crew-pre-glibc-standalone:nocturne-x86_64.m90 $@
#!/bin/bash
# crewbuild-alex-i686.m58.sh
if [ -z ${CI+x} ]; then
echo "CI is not set."
else
CI_PASSTHROUGH=-e
CI_PASSTHROUGH+=" "
CI_PASSTHROUGH+=NESTED_CI=${CI}
fi
if [ -z ${CREW_MAX_BUILD_TIME+x} ]; then
echo "CREW_MAX_BUILD_TIME is not set."
else
CREW_MAX_BUILD_TIME_PASSTHROUGH=-e
CREW_MAX_BUILD_TIME_PASSTHROUGH+=" "
CREW_MAX_BUILD_TIME_PASSTHROUGH+=CREW_MAX_BUILD_TIME=${CREW_MAX_BUILD_TIME}
fi
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
SESSION_TYPE=remote/ssh
elif pstree -p 2>/dev/null | egrep --quiet --extended-regexp ".*sshd.*\($$\)"; then
SESSION_TYPE=remote/ssh
else
case $(ps -o comm= -p $PPID) in
sshd|*/sshd) SESSION_TYPE=remote/ssh;;
esac
fi
if [ -z ${PAGER+x} ]; then
echo "PAGER is not set."
else
PAGER_PASSTHROUGH=-e
PAGER_PASSTHROUGH+=" "
PAGER_PASSTHROUGH+=CONTAINER_PAGER=${PAGER}
fi
if [ -z ${REPO+x} ] && [ -z ${BRANCH+x} ] && [ -z ${BRANCH+x} ]; then
echo "Alternate BRANCH/OWNER/REPO is not set."
else
: "${BRANCH:=master}"
: "${OWNER:=chromebrew}"
: "${REPO:=chromebrew}"
REPO_PASSTHROUGH=-e
REPO_PASSTHROUGH+=" "
REPO_PASSTHROUGH+=CREW_REPO=https://github.com/${OWNER}/${REPO}.git
REPO_PASSTHROUGH+=" -e "
REPO_PASSTHROUGH+=CREW_BRANCH=${BRANCH}
fi
if [ -z ${TZ+x} ]; then
echo "TZ is not set."
else
TZ_PASSTHROUGH=-e
TZ_PASSTHROUGH+=" "
TZ_PASSTHROUGH+=TZ=${TZ}
fi
X11=-e
X11+=" "
X11+=DISPLAY=${DISPLAY:-:0.0}
X11+=" "
if ! [[ $SESSION_TYPE == remote/ssh ]] && [ -d /tmp/.X11-unix ]; then
X11+=" -v /tmp/.X11-unix:/tmp/.X11-unix "
fi
if [ -f "$HOME"/.Xauthority ]; then
X11+=--volume=$HOME/.Xauthority:/home/chronos/user/.Xauthority:rw
X11+=" "
X11+=--volume=$HOME/.Xauthority:/home/chronos/.Xauthority:rw
fi
docker pull --platform linux/386 satmandu/crewbuild:alex-i686.m58
docker pull tonistiigi/binfmt
docker run --privileged --rm tonistiigi/binfmt --install all
docker run --init --platform linux/386 --rm --net=host ${CI_PASSTHROUGH} ${CREW_MAX_BUILD_TIME_PASSTHROUGH} ${PAGER_PASSTHROUGH} ${REPO_PASSTHROUGH} ${TZ_PASSTHROUGH} ${X11} -e LOCALRC="${LOCALRC}" -v $(pwd)/pkg_cache:/usr/local/tmp/packages -v $(pwd):/output -h $(hostname)-i686 --tmpfs /tmp --ulimit "nofile=$(ulimit -Sn):$(ulimit -Hn)" -it satmandu/crewbuild:alex-i686.m58 $@
#!/bin/bash
# crewbuild-fievel-armv7l.m91.sh
if [ -z ${CI+x} ]; then
echo "CI is not set."
else
CI_PASSTHROUGH=-e
CI_PASSTHROUGH+=" "
CI_PASSTHROUGH+=NESTED_CI=${CI}
fi
if [ -z ${CREW_MAX_BUILD_TIME+x} ]; then
echo "CREW_MAX_BUILD_TIME is not set."
else
CREW_MAX_BUILD_TIME_PASSTHROUGH=-e
CREW_MAX_BUILD_TIME_PASSTHROUGH+=" "
CREW_MAX_BUILD_TIME_PASSTHROUGH+=CREW_MAX_BUILD_TIME=${CREW_MAX_BUILD_TIME}
fi
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
SESSION_TYPE=remote/ssh
elif pstree -p 2>/dev/null | egrep --quiet --extended-regexp ".*sshd.*\($$\)"; then
SESSION_TYPE=remote/ssh
else
case $(ps -o comm= -p $PPID) in
sshd|*/sshd) SESSION_TYPE=remote/ssh;;
esac
fi
if [ -z ${PAGER+x} ]; then
echo "PAGER is not set."
else
PAGER_PASSTHROUGH=-e
PAGER_PASSTHROUGH+=" "
PAGER_PASSTHROUGH+=CONTAINER_PAGER=${PAGER}
fi
if [ -z ${REPO+x} ] && [ -z ${BRANCH+x} ] && [ -z ${BRANCH+x} ]; then
echo "Alternate BRANCH/OWNER/REPO is not set."
else
: "${BRANCH:=master}"
: "${OWNER:=chromebrew}"
: "${REPO:=chromebrew}"
REPO_PASSTHROUGH=-e
REPO_PASSTHROUGH+=" "
REPO_PASSTHROUGH+=CREW_REPO=https://github.com/${OWNER}/${REPO}.git
REPO_PASSTHROUGH+=" -e "
REPO_PASSTHROUGH+=CREW_BRANCH=${BRANCH}
fi
if [ -z ${TZ+x} ]; then
echo "TZ is not set."
else
TZ_PASSTHROUGH=-e
TZ_PASSTHROUGH+=" "
TZ_PASSTHROUGH+=TZ=${TZ}
fi
X11=-e
X11+=" "
X11+=DISPLAY=${DISPLAY:-:0.0}
X11+=" "
if ! [[ $SESSION_TYPE == remote/ssh ]] && [ -d /tmp/.X11-unix ]; then
X11+=" -v /tmp/.X11-unix:/tmp/.X11-unix "
fi
if [ -f "$HOME"/.Xauthority ]; then
X11+=--volume=$HOME/.Xauthority:/home/chronos/user/.Xauthority:rw
X11+=" "
X11+=--volume=$HOME/.Xauthority:/home/chronos/.Xauthority:rw
fi
docker pull --platform linux/arm/v7 satmandu/crewbuild:fievel-armv7l.m91
docker pull tonistiigi/binfmt
docker run --privileged --rm tonistiigi/binfmt --install all
docker run --init --platform linux/arm/v7 --rm --net=host ${CI_PASSTHROUGH} ${CREW_MAX_BUILD_TIME_PASSTHROUGH} ${PAGER_PASSTHROUGH} ${REPO_PASSTHROUGH} ${TZ_PASSTHROUGH} ${X11} -e LOCALRC="${LOCALRC}" -v $(pwd)/pkg_cache:/usr/local/tmp/packages -v $(pwd):/output -h $(hostname)-armv7l --tmpfs /tmp --ulimit "nofile=$(ulimit -Sn):$(ulimit -Hn)" -it satmandu/crewbuild:fievel-armv7l.m91 $@
#!/bin/bash
# crewbuild-fievel-armv7l.m97.sh
if [ -z ${CI+x} ]; then
echo "CI is not set."
else
CI_PASSTHROUGH=-e
CI_PASSTHROUGH+=" "
CI_PASSTHROUGH+=NESTED_CI=${CI}
fi
if [ -z ${CREW_MAX_BUILD_TIME+x} ]; then
echo "CREW_MAX_BUILD_TIME is not set."
else
CREW_MAX_BUILD_TIME_PASSTHROUGH=-e
CREW_MAX_BUILD_TIME_PASSTHROUGH+=" "
CREW_MAX_BUILD_TIME_PASSTHROUGH+=CREW_MAX_BUILD_TIME=${CREW_MAX_BUILD_TIME}
fi
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
SESSION_TYPE=remote/ssh
elif pstree -p 2>/dev/null | egrep --quiet --extended-regexp ".*sshd.*\($$\)"; then
SESSION_TYPE=remote/ssh
else
case $(ps -o comm= -p $PPID) in
sshd|*/sshd) SESSION_TYPE=remote/ssh;;
esac
fi
if [ -z ${PAGER+x} ]; then
echo "PAGER is not set."
else
PAGER_PASSTHROUGH=-e
PAGER_PASSTHROUGH+=" "
PAGER_PASSTHROUGH+=CONTAINER_PAGER=${PAGER}
fi
if [ -z ${REPO+x} ] && [ -z ${BRANCH+x} ] && [ -z ${BRANCH+x} ]; then
echo "Alternate BRANCH/OWNER/REPO is not set."
else
: "${BRANCH:=master}"
: "${OWNER:=chromebrew}"
: "${REPO:=chromebrew}"
REPO_PASSTHROUGH=-e
REPO_PASSTHROUGH+=" "
REPO_PASSTHROUGH+=CREW_REPO=https://github.com/${OWNER}/${REPO}.git
REPO_PASSTHROUGH+=" -e "
REPO_PASSTHROUGH+=CREW_BRANCH=${BRANCH}
fi
if [ -z ${TZ+x} ]; then
echo "TZ is not set."
else
TZ_PASSTHROUGH=-e
TZ_PASSTHROUGH+=" "
TZ_PASSTHROUGH+=TZ=${TZ}
fi
X11=-e
X11+=" "
X11+=DISPLAY=${DISPLAY:-:0.0}
X11+=" "
if ! [[ $SESSION_TYPE == remote/ssh ]] && [ -d /tmp/.X11-unix ]; then
X11+=" -v /tmp/.X11-unix:/tmp/.X11-unix "
fi
if [ -f "$HOME"/.Xauthority ]; then
X11+=--volume=$HOME/.Xauthority:/home/chronos/user/.Xauthority:rw
X11+=" "
X11+=--volume=$HOME/.Xauthority:/home/chronos/.Xauthority:rw
fi
docker pull --platform linux/arm/v7 satmandu/crewbuild:fievel-armv7l.m97
docker pull tonistiigi/binfmt
docker run --privileged --rm tonistiigi/binfmt --install all
docker run --init --platform linux/arm/v7 --rm --net=host ${CI_PASSTHROUGH} ${CREW_MAX_BUILD_TIME_PASSTHROUGH} ${PAGER_PASSTHROUGH} ${REPO_PASSTHROUGH} ${TZ_PASSTHROUGH} ${X11} -e LOCALRC="${LOCALRC}" -v $(pwd)/pkg_cache:/usr/local/tmp/packages -v $(pwd):/output -h $(hostname)-armv7l --tmpfs /tmp --ulimit "nofile=$(ulimit -Sn):$(ulimit -Hn)" -it satmandu/crewbuild:fievel-armv7l.m97 $@
#!/bin/bash
# crewbuild-hatch-x86_64.m141.sh
if [ -z ${CI+x} ]; then
echo "CI is not set."
else
CI_PASSTHROUGH=-e
CI_PASSTHROUGH+=" "
CI_PASSTHROUGH+=NESTED_CI=${CI}
fi
if [ -z ${CREW_MAX_BUILD_TIME+x} ]; then
echo "CREW_MAX_BUILD_TIME is not set."
else
CREW_MAX_BUILD_TIME_PASSTHROUGH=-e
CREW_MAX_BUILD_TIME_PASSTHROUGH+=" "
CREW_MAX_BUILD_TIME_PASSTHROUGH+=CREW_MAX_BUILD_TIME=${CREW_MAX_BUILD_TIME}
fi
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
SESSION_TYPE=remote/ssh
elif pstree -p 2>/dev/null | egrep --quiet --extended-regexp ".*sshd.*\($$\)"; then
SESSION_TYPE=remote/ssh
else
case $(ps -o comm= -p $PPID) in
sshd|*/sshd) SESSION_TYPE=remote/ssh;;
esac
fi
if [ -z ${PAGER+x} ]; then
echo "PAGER is not set."
else
PAGER_PASSTHROUGH=-e
PAGER_PASSTHROUGH+=" "
PAGER_PASSTHROUGH+=CONTAINER_PAGER=${PAGER}
fi
if [ -z ${REPO+x} ] && [ -z ${BRANCH+x} ] && [ -z ${BRANCH+x} ]; then
echo "Alternate BRANCH/OWNER/REPO is not set."
else
: "${BRANCH:=master}"
: "${OWNER:=chromebrew}"
: "${REPO:=chromebrew}"
REPO_PASSTHROUGH=-e
REPO_PASSTHROUGH+=" "
REPO_PASSTHROUGH+=CREW_REPO=https://github.com/${OWNER}/${REPO}.git
REPO_PASSTHROUGH+=" -e "
REPO_PASSTHROUGH+=CREW_BRANCH=${BRANCH}
fi
if [ -z ${TZ+x} ]; then
echo "TZ is not set."
else
TZ_PASSTHROUGH=-e
TZ_PASSTHROUGH+=" "
TZ_PASSTHROUGH+=TZ=${TZ}
fi
X11=-e
X11+=" "
X11+=DISPLAY=${DISPLAY:-:0.0}
X11+=" "
if ! [[ $SESSION_TYPE == remote/ssh ]] && [ -d /tmp/.X11-unix ]; then
X11+=" -v /tmp/.X11-unix:/tmp/.X11-unix "
fi
if [ -f "$HOME"/.Xauthority ]; then
X11+=--volume=$HOME/.Xauthority:/home/chronos/user/.Xauthority:rw
X11+=" "
X11+=--volume=$HOME/.Xauthority:/home/chronos/.Xauthority:rw
fi
docker pull --platform linux/amd64 satmandu/crewbuild:hatch-x86_64.m141
docker pull tonistiigi/binfmt
docker run --privileged --rm tonistiigi/binfmt --install all
docker run --init --platform linux/amd64 --rm --net=host ${CI_PASSTHROUGH} ${CREW_MAX_BUILD_TIME_PASSTHROUGH} ${PAGER_PASSTHROUGH} ${REPO_PASSTHROUGH} ${TZ_PASSTHROUGH} ${X11} -e LOCALRC="${LOCALRC}" -v $(pwd)/pkg_cache:/usr/local/tmp/packages -v $(pwd):/output -h $(hostname)-x86_64 --tmpfs /tmp --ulimit "nofile=$(ulimit -Sn):$(ulimit -Hn)" -it satmandu/crewbuild:hatch-x86_64.m141 $@
#!/bin/bash
# crewbuild-nocturne-x86_64.m90.sh
if [ -z ${CI+x} ]; then
echo "CI is not set."
else
CI_PASSTHROUGH=-e
CI_PASSTHROUGH+=" "
CI_PASSTHROUGH+=NESTED_CI=${CI}
fi
if [ -z ${CREW_MAX_BUILD_TIME+x} ]; then
echo "CREW_MAX_BUILD_TIME is not set."
else
CREW_MAX_BUILD_TIME_PASSTHROUGH=-e
CREW_MAX_BUILD_TIME_PASSTHROUGH+=" "
CREW_MAX_BUILD_TIME_PASSTHROUGH+=CREW_MAX_BUILD_TIME=${CREW_MAX_BUILD_TIME}
fi
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
SESSION_TYPE=remote/ssh
elif pstree -p 2>/dev/null | egrep --quiet --extended-regexp ".*sshd.*\($$\)"; then
SESSION_TYPE=remote/ssh
else
case $(ps -o comm= -p $PPID) in
sshd|*/sshd) SESSION_TYPE=remote/ssh;;
esac
fi
if [ -z ${PAGER+x} ]; then
echo "PAGER is not set."
else
PAGER_PASSTHROUGH=-e
PAGER_PASSTHROUGH+=" "
PAGER_PASSTHROUGH+=CONTAINER_PAGER=${PAGER}
fi
if [ -z ${REPO+x} ] && [ -z ${BRANCH+x} ] && [ -z ${BRANCH+x} ]; then
echo "Alternate BRANCH/OWNER/REPO is not set."
else
: "${BRANCH:=master}"
: "${OWNER:=chromebrew}"
: "${REPO:=chromebrew}"
REPO_PASSTHROUGH=-e
REPO_PASSTHROUGH+=" "
REPO_PASSTHROUGH+=CREW_REPO=https://github.com/${OWNER}/${REPO}.git
REPO_PASSTHROUGH+=" -e "
REPO_PASSTHROUGH+=CREW_BRANCH=${BRANCH}
fi
if [ -z ${TZ+x} ]; then
echo "TZ is not set."
else
TZ_PASSTHROUGH=-e
TZ_PASSTHROUGH+=" "
TZ_PASSTHROUGH+=TZ=${TZ}
fi
X11=-e
X11+=" "
X11+=DISPLAY=${DISPLAY:-:0.0}
X11+=" "
if ! [[ $SESSION_TYPE == remote/ssh ]] && [ -d /tmp/.X11-unix ]; then
X11+=" -v /tmp/.X11-unix:/tmp/.X11-unix "
fi
if [ -f "$HOME"/.Xauthority ]; then
X11+=--volume=$HOME/.Xauthority:/home/chronos/user/.Xauthority:rw
X11+=" "
X11+=--volume=$HOME/.Xauthority:/home/chronos/.Xauthority:rw
fi
docker pull --platform linux/amd64 satmandu/crewbuild:nocturne-x86_64.m90
docker pull tonistiigi/binfmt
docker run --privileged --rm tonistiigi/binfmt --install all
docker run --init --platform linux/amd64 --rm --net=host ${CI_PASSTHROUGH} ${CREW_MAX_BUILD_TIME_PASSTHROUGH} ${PAGER_PASSTHROUGH} ${REPO_PASSTHROUGH} ${TZ_PASSTHROUGH} ${X11} -e LOCALRC="${LOCALRC}" -v $(pwd)/pkg_cache:/usr/local/tmp/packages -v $(pwd):/output -h $(hostname)-x86_64 --tmpfs /tmp --ulimit "nofile=$(ulimit -Sn):$(ulimit -Hn)" -it satmandu/crewbuild:nocturne-x86_64.m90 $@
#!/bin/bash
# crewbuild-nocturne-x86_64.m97.sh
if [ -z ${CI+x} ]; then
echo "CI is not set."
else
CI_PASSTHROUGH=-e
CI_PASSTHROUGH+=" "
CI_PASSTHROUGH+=NESTED_CI=${CI}
fi
if [ -z ${CREW_MAX_BUILD_TIME+x} ]; then
echo "CREW_MAX_BUILD_TIME is not set."
else
CREW_MAX_BUILD_TIME_PASSTHROUGH=-e
CREW_MAX_BUILD_TIME_PASSTHROUGH+=" "
CREW_MAX_BUILD_TIME_PASSTHROUGH+=CREW_MAX_BUILD_TIME=${CREW_MAX_BUILD_TIME}
fi
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
SESSION_TYPE=remote/ssh
elif pstree -p 2>/dev/null | egrep --quiet --extended-regexp ".*sshd.*\($$\)"; then
SESSION_TYPE=remote/ssh
else
case $(ps -o comm= -p $PPID) in
sshd|*/sshd) SESSION_TYPE=remote/ssh;;
esac
fi
if [ -z ${PAGER+x} ]; then
echo "PAGER is not set."
else
PAGER_PASSTHROUGH=-e
PAGER_PASSTHROUGH+=" "
PAGER_PASSTHROUGH+=CONTAINER_PAGER=${PAGER}
fi
if [ -z ${REPO+x} ] && [ -z ${BRANCH+x} ] && [ -z ${BRANCH+x} ]; then
echo "Alternate BRANCH/OWNER/REPO is not set."
else
: "${BRANCH:=master}"
: "${OWNER:=chromebrew}"
: "${REPO:=chromebrew}"
REPO_PASSTHROUGH=-e
REPO_PASSTHROUGH+=" "
REPO_PASSTHROUGH+=CREW_REPO=https://github.com/${OWNER}/${REPO}.git
REPO_PASSTHROUGH+=" -e "
REPO_PASSTHROUGH+=CREW_BRANCH=${BRANCH}
fi
if [ -z ${TZ+x} ]; then
echo "TZ is not set."
else
TZ_PASSTHROUGH=-e
TZ_PASSTHROUGH+=" "
TZ_PASSTHROUGH+=TZ=${TZ}
fi
X11=-e
X11+=" "
X11+=DISPLAY=${DISPLAY:-:0.0}
X11+=" "
if ! [[ $SESSION_TYPE == remote/ssh ]] && [ -d /tmp/.X11-unix ]; then
X11+=" -v /tmp/.X11-unix:/tmp/.X11-unix "
fi
if [ -f "$HOME"/.Xauthority ]; then
X11+=--volume=$HOME/.Xauthority:/home/chronos/user/.Xauthority:rw
X11+=" "
X11+=--volume=$HOME/.Xauthority:/home/chronos/.Xauthority:rw
fi
docker pull --platform linux/amd64 satmandu/crewbuild:nocturne-x86_64.m97
docker pull tonistiigi/binfmt
docker run --privileged --rm tonistiigi/binfmt --install all
docker run --init --platform linux/amd64 --rm --net=host ${CI_PASSTHROUGH} ${CREW_MAX_BUILD_TIME_PASSTHROUGH} ${PAGER_PASSTHROUGH} ${REPO_PASSTHROUGH} ${TZ_PASSTHROUGH} ${X11} -e LOCALRC="${LOCALRC}" -v $(pwd)/pkg_cache:/usr/local/tmp/packages -v $(pwd):/output -h $(hostname)-x86_64 --tmpfs /tmp --ulimit "nofile=$(ulimit -Sn):$(ulimit -Hn)" -it satmandu/crewbuild:nocturne-x86_64.m97 $@
#!/bin/bash
# crewbuild-reven-x86_64.m141.sh
if [ -z ${CI+x} ]; then
echo "CI is not set."
else
CI_PASSTHROUGH=-e
CI_PASSTHROUGH+=" "
CI_PASSTHROUGH+=NESTED_CI=${CI}
fi
if [ -z ${CREW_MAX_BUILD_TIME+x} ]; then
echo "CREW_MAX_BUILD_TIME is not set."
else
CREW_MAX_BUILD_TIME_PASSTHROUGH=-e
CREW_MAX_BUILD_TIME_PASSTHROUGH+=" "
CREW_MAX_BUILD_TIME_PASSTHROUGH+=CREW_MAX_BUILD_TIME=${CREW_MAX_BUILD_TIME}
fi
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
SESSION_TYPE=remote/ssh
elif pstree -p 2>/dev/null | egrep --quiet --extended-regexp ".*sshd.*\($$\)"; then
SESSION_TYPE=remote/ssh
else
case $(ps -o comm= -p $PPID) in
sshd|*/sshd) SESSION_TYPE=remote/ssh;;
esac
fi
if [ -z ${PAGER+x} ]; then
echo "PAGER is not set."
else
PAGER_PASSTHROUGH=-e
PAGER_PASSTHROUGH+=" "
PAGER_PASSTHROUGH+=CONTAINER_PAGER=${PAGER}
fi
if [ -z ${REPO+x} ] && [ -z ${BRANCH+x} ] && [ -z ${BRANCH+x} ]; then
echo "Alternate BRANCH/OWNER/REPO is not set."
else
: "${BRANCH:=master}"
: "${OWNER:=chromebrew}"
: "${REPO:=chromebrew}"
REPO_PASSTHROUGH=-e
REPO_PASSTHROUGH+=" "
REPO_PASSTHROUGH+=CREW_REPO=https://github.com/${OWNER}/${REPO}.git
REPO_PASSTHROUGH+=" -e "
REPO_PASSTHROUGH+=CREW_BRANCH=${BRANCH}
fi
if [ -z ${TZ+x} ]; then
echo "TZ is not set."
else
TZ_PASSTHROUGH=-e
TZ_PASSTHROUGH+=" "
TZ_PASSTHROUGH+=TZ=${TZ}
fi
X11=-e
X11+=" "
X11+=DISPLAY=${DISPLAY:-:0.0}
X11+=" "
if ! [[ $SESSION_TYPE == remote/ssh ]] && [ -d /tmp/.X11-unix ]; then
X11+=" -v /tmp/.X11-unix:/tmp/.X11-unix "
fi
if [ -f "$HOME"/.Xauthority ]; then
X11+=--volume=$HOME/.Xauthority:/home/chronos/user/.Xauthority:rw
X11+=" "
X11+=--volume=$HOME/.Xauthority:/home/chronos/.Xauthority:rw
fi
docker pull --platform linux/amd64 satmandu/crewbuild:reven-x86_64.m141
docker pull tonistiigi/binfmt
docker run --privileged --rm tonistiigi/binfmt --install all
docker run --init --platform linux/amd64 --rm --net=host ${CI_PASSTHROUGH} ${CREW_MAX_BUILD_TIME_PASSTHROUGH} ${PAGER_PASSTHROUGH} ${REPO_PASSTHROUGH} ${TZ_PASSTHROUGH} ${X11} -e LOCALRC="${LOCALRC}" -v $(pwd)/pkg_cache:/usr/local/tmp/packages -v $(pwd):/output -h $(hostname)-x86_64 --tmpfs /tmp --ulimit "nofile=$(ulimit -Sn):$(ulimit -Hn)" -it satmandu/crewbuild:reven-x86_64.m141 $@
#!/bin/bash
# crewbuild-strongbad-armv7l.m141.sh
if [ -z ${CI+x} ]; then
echo "CI is not set."
else
CI_PASSTHROUGH=-e
CI_PASSTHROUGH+=" "
CI_PASSTHROUGH+=NESTED_CI=${CI}
fi
if [ -z ${CREW_MAX_BUILD_TIME+x} ]; then
echo "CREW_MAX_BUILD_TIME is not set."
else
CREW_MAX_BUILD_TIME_PASSTHROUGH=-e
CREW_MAX_BUILD_TIME_PASSTHROUGH+=" "
CREW_MAX_BUILD_TIME_PASSTHROUGH+=CREW_MAX_BUILD_TIME=${CREW_MAX_BUILD_TIME}
fi
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
SESSION_TYPE=remote/ssh
elif pstree -p 2>/dev/null | egrep --quiet --extended-regexp ".*sshd.*\($$\)"; then
SESSION_TYPE=remote/ssh
else
case $(ps -o comm= -p $PPID) in
sshd|*/sshd) SESSION_TYPE=remote/ssh;;
esac
fi
if [ -z ${PAGER+x} ]; then
echo "PAGER is not set."
else
PAGER_PASSTHROUGH=-e
PAGER_PASSTHROUGH+=" "
PAGER_PASSTHROUGH+=CONTAINER_PAGER=${PAGER}
fi
if [ -z ${REPO+x} ] && [ -z ${BRANCH+x} ] && [ -z ${BRANCH+x} ]; then
echo "Alternate BRANCH/OWNER/REPO is not set."
else
: "${BRANCH:=master}"
: "${OWNER:=chromebrew}"
: "${REPO:=chromebrew}"
REPO_PASSTHROUGH=-e
REPO_PASSTHROUGH+=" "
REPO_PASSTHROUGH+=CREW_REPO=https://github.com/${OWNER}/${REPO}.git
REPO_PASSTHROUGH+=" -e "
REPO_PASSTHROUGH+=CREW_BRANCH=${BRANCH}
fi
if [ -z ${TZ+x} ]; then
echo "TZ is not set."
else
TZ_PASSTHROUGH=-e
TZ_PASSTHROUGH+=" "
TZ_PASSTHROUGH+=TZ=${TZ}
fi
X11=-e
X11+=" "
X11+=DISPLAY=${DISPLAY:-:0.0}
X11+=" "
if ! [[ $SESSION_TYPE == remote/ssh ]] && [ -d /tmp/.X11-unix ]; then
X11+=" -v /tmp/.X11-unix:/tmp/.X11-unix "
fi
if [ -f "$HOME"/.Xauthority ]; then
X11+=--volume=$HOME/.Xauthority:/home/chronos/user/.Xauthority:rw
X11+=" "
X11+=--volume=$HOME/.Xauthority:/home/chronos/.Xauthority:rw
fi
docker pull --platform linux/arm/v7 satmandu/crewbuild:strongbad-armv7l.m141
docker pull tonistiigi/binfmt
docker run --privileged --rm tonistiigi/binfmt --install all
docker run --init --platform linux/arm/v7 --rm --net=host ${CI_PASSTHROUGH} ${CREW_MAX_BUILD_TIME_PASSTHROUGH} ${PAGER_PASSTHROUGH} ${REPO_PASSTHROUGH} ${TZ_PASSTHROUGH} ${X11} -e LOCALRC="${LOCALRC}" -v $(pwd)/pkg_cache:/usr/local/tmp/packages -v $(pwd):/output -h $(hostname)-armv7l --tmpfs /tmp --ulimit "nofile=$(ulimit -Sn):$(ulimit -Hn)" -it satmandu/crewbuild:strongbad-armv7l.m141 $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment