#!/bin/bash set -ve echo "Installing go $goversion" curl -sL https://storage.googleapis.com/golang/go${goversion}.linux-${ARCH}.tar.gz | tar -xzf - -C /usr/local # --- cat </etc/profile.d/build.sh export SELINUX=true # export DQLITE=true # export STATIC_BUILD=true EOF . /etc/profile.d/build.sh # --- sed -E 's|apk( -U)?( --no-cache)?( --repository [^ ]*)? add|yum install -y|g' -i /tmp/docker-run sed -E 's/-dev/-devel/g' -i /tmp/docker-run . /tmp/docker-run # --- go get -u github.com/go-delve/delve/cmd/dlv # --- # docker install instructions slightly changed from https://kubernetes.io/docs/setup/production-environment/container-runtimes/ # default "exec-opts": ["native.cgroupdriver=cgroupfs"], and set "selinux-enabled": true yum remove -y docker docker-common yum install -y yum-utils device-mapper-persistent-data lvm2 yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo yum update -y && yum install -y containerd.io-1.2.10 docker-ce-19.03.4 docker-ce-cli-19.03.4 mkdir -p /etc/docker cat > /etc/docker/daemon.json <