Skip to content

Instantly share code, notes, and snippets.

@aledbf
Last active June 26, 2019 13:27
Show Gist options
  • Save aledbf/e897c01f9fa285fccac04f8fd0e1047a to your computer and use it in GitHub Desktop.
Save aledbf/e897c01f9fa285fccac04f8fd0e1047a to your computer and use it in GitHub Desktop.
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
export DEBIAN_FRONTEND=noninteractive
export AR_FLAGS=cr
locale-gen es_CL.UTF-8
apt update
apt install \
apt-transport-https \
ca-certificates \
curl \
make \
htop \
parallel \
software-properties-common --yes
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable" --yes
apt update
apt install docker-ce --yes
curl -sL -o /usr/local/bin/gimme https://raw.githubusercontent.com/travis-ci/gimme/master/gimme
chmod +x /usr/local/bin/gimme
eval "$(gimme 1.12.6)"
gimme 1.12.6
git clone https://github.com/kubernetes/ingress-nginx
cd ingress-nginx/images/nginx
make register-qemu
sem --no-notice -j 10 ' make sub-container-amd64'; echo "amd64 done"
sem --no-notice -j 10 ' make sub-container-arm'; echo "arm done"
sem --no-notice -j 10 ' make sub-container-arm64'; echo "arm64 done"
#sem --no-notice -j 5 ' make sub-container-ppc64le'; echo "ppc64le done"
#sem --no-notice -j 5 ' make sub-container-s390x'; echo "s390x done"
sem --wait --no-notice; echo sem --no-notice --wait done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment