Last active
June 10, 2024 12:59
-
-
Save satmandu/d8365cb70b899901a05290d31c04909a to your computer and use it in GitHub Desktop.
docker images for ChromeOS made with https://gist.github.com/satmandu/efb3ef644fa7f524041f189106a144da
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then | |
SESSION_TYPE=remote/ssh | |
elif pstree -p | 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 ${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 ${PAGER_PASSTHROUGH} ${TZ_PASSTHROUGH} ${X11} -e LOCALRC="${LOCALRC}" -v $(pwd)/pkg_cache:/usr/local/tmp/packages -v $(pwd):/output -h $(hostname)-i686 -it satmandu/crewbuild:alex-i686.m58 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then | |
SESSION_TYPE=remote/ssh | |
elif pstree -p | 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 ${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 ${PAGER_PASSTHROUGH} ${TZ_PASSTHROUGH} ${X11} -e LOCALRC="${LOCALRC}" -v $(pwd)/pkg_cache:/usr/local/tmp/packages -v $(pwd):/output -h $(hostname)-armv7l -it satmandu/crewbuild:fievel-armv7l.m91 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then | |
SESSION_TYPE=remote/ssh | |
elif pstree -p | 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 ${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.m121 | |
docker pull tonistiigi/binfmt | |
docker run --privileged --rm tonistiigi/binfmt --install all | |
docker run --init --platform linux/arm/v7 --rm --net=host ${PAGER_PASSTHROUGH} ${TZ_PASSTHROUGH} ${X11} -e LOCALRC="${LOCALRC}" -v $(pwd)/pkg_cache:/usr/local/tmp/packages -v $(pwd):/output -h $(hostname)-armv7l -it satmandu/crewbuild:strongbad-armv7l.m121 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then | |
SESSION_TYPE=remote/ssh | |
elif pstree -p | 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 ${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.m123 | |
docker pull tonistiigi/binfmt | |
docker run --privileged --rm tonistiigi/binfmt --install all | |
docker run --init --platform linux/amd64 --rm --net=host ${PAGER_PASSTHROUGH} ${TZ_PASSTHROUGH} ${X11} -e LOCALRC="${LOCALRC}" -v $(pwd)/pkg_cache:/usr/local/tmp/packages -v $(pwd):/output -h $(hostname)-x86_64 -it satmandu/crewbuild:nocturne-x86_64.m123 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then | |
SESSION_TYPE=remote/ssh | |
elif pstree -p | 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 ${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.m124 | |
docker pull tonistiigi/binfmt | |
docker run --privileged --rm tonistiigi/binfmt --install all | |
docker run --init --platform linux/amd64 --rm --net=host ${PAGER_PASSTHROUGH} ${TZ_PASSTHROUGH} ${X11} -e LOCALRC="${LOCALRC}" -v $(pwd)/pkg_cache:/usr/local/tmp/packages -v $(pwd):/output -h $(hostname)-x86_64 -it satmandu/crewbuild:nocturne-x86_64.m124 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then | |
SESSION_TYPE=remote/ssh | |
elif pstree -p | 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 ${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 ${PAGER_PASSTHROUGH} ${TZ_PASSTHROUGH} ${X11} -e LOCALRC="${LOCALRC}" -v $(pwd)/pkg_cache:/usr/local/tmp/packages -v $(pwd):/output -h $(hostname)-x86_64 -it satmandu/crewbuild:nocturne-x86_64.m90 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then | |
SESSION_TYPE=remote/ssh | |
elif pstree -p | 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 ${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.m121 | |
docker pull tonistiigi/binfmt | |
docker run --privileged --rm tonistiigi/binfmt --install all | |
docker run --init --platform linux/arm/v7 --rm --net=host ${PAGER_PASSTHROUGH} ${TZ_PASSTHROUGH} ${X11} -e LOCALRC="${LOCALRC}" -v $(pwd)/pkg_cache:/usr/local/tmp/packages -v $(pwd):/output -h $(hostname)-armv7l -it satmandu/crewbuild:strongbad-armv7l.m121 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then | |
SESSION_TYPE=remote/ssh | |
elif pstree -p | 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 ${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.m123 | |
docker pull tonistiigi/binfmt | |
docker run --privileged --rm tonistiigi/binfmt --install all | |
docker run --init --platform linux/arm/v7 --rm --net=host ${PAGER_PASSTHROUGH} ${TZ_PASSTHROUGH} ${X11} -e LOCALRC="${LOCALRC}" -v $(pwd)/pkg_cache:/usr/local/tmp/packages -v $(pwd):/output -h $(hostname)-armv7l -it satmandu/crewbuild:strongbad-armv7l.m123 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then | |
SESSION_TYPE=remote/ssh | |
elif pstree -p | 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 ${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.m124 | |
docker pull tonistiigi/binfmt | |
docker run --privileged --rm tonistiigi/binfmt --install all | |
docker run --init --platform linux/arm/v7 --rm --net=host ${PAGER_PASSTHROUGH} ${TZ_PASSTHROUGH} ${X11} -e LOCALRC="${LOCALRC}" -v $(pwd)/pkg_cache:/usr/local/tmp/packages -v $(pwd):/output -h $(hostname)-armv7l -it satmandu/crewbuild:strongbad-armv7l.m124 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then | |
SESSION_TYPE=remote/ssh | |
elif pstree -p | 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 ${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.m125 | |
docker pull tonistiigi/binfmt | |
docker run --privileged --rm tonistiigi/binfmt --install all | |
docker run --init --platform linux/arm/v7 --rm --net=host ${PAGER_PASSTHROUGH} ${TZ_PASSTHROUGH} ${X11} -e LOCALRC="${LOCALRC}" -v $(pwd)/pkg_cache:/usr/local/tmp/packages -v $(pwd):/output -h $(hostname)-armv7l -it satmandu/crewbuild:strongbad-armv7l.m125 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment