golang-cdk8s (build-3)
Published 2023-09-03 14:13:35 +02:00 by mycroft
Installation
docker pull git.mkz.me/mycroft/golang-cdk8s:build-3
sha256:951a44506aa227ca36328a16ba9c167753f3e03429fd15aefe564f9829f55eb6
Image Layers
ADD file:3a6d159d80cb8abfacda5873c243a6ae635ff603708febc4df51f8eec26d3de7 in / |
CMD ["bash"] |
/bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates curl gnupg netbase sq wget ; rm -rf /var/lib/apt/lists/* |
/bin/sh -c apt-get update && apt-get install -y --no-install-recommends git mercurial openssh-client subversion procps && rm -rf /var/lib/apt/lists/* |
/bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends g++ gcc libc6-dev make pkg-config ; rm -rf /var/lib/apt/lists/* |
ENV PATH=/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
ENV GOLANG_VERSION=1.21.0 |
/bin/sh -c set -eux; arch="$(dpkg --print-architecture)"; arch="${arch##*-}"; url=; case "$arch" in 'amd64') url='https://dl.google.com/go/go1.21.0.linux-amd64.tar.gz'; sha256='d0398903a16ba2232b389fb31032ddf57cac34efda306a0eebac34f0965a0742'; ;; 'armel') export GOARCH='arm' GOARM='5' GOOS='linux'; ;; 'armhf') url='https://dl.google.com/go/go1.21.0.linux-armv6l.tar.gz'; sha256='e377a0004957c8c560a3ff99601bce612330a3d95ba3b0a2ae144165fc87deb1'; ;; 'arm64') url='https://dl.google.com/go/go1.21.0.linux-arm64.tar.gz'; sha256='f3d4548edf9b22f26bbd49720350bbfe59d75b7090a1a2bff1afad8214febaf3'; ;; 'i386') url='https://dl.google.com/go/go1.21.0.linux-386.tar.gz'; sha256='0e6f378d9b072fab0a3d9ff4d5e990d98487d47252dba8160015a61e6bd0bcba'; ;; 'mips64el') url='https://dl.google.com/go/go1.21.0.linux-mips64le.tar.gz'; sha256='92f7933d997c589b4f506c6b3cc5b27ff43b294c3a2d40bf4d7eeaf375f92afb'; ;; 'ppc64el') url='https://dl.google.com/go/go1.21.0.linux-ppc64le.tar.gz'; sha256='e938ffc81d8ebe5efc179240960ba22da6a841ff05d5cab7ce2547112b14a47f'; ;; 'riscv64') url='https://dl.google.com/go/go1.21.0.linux-riscv64.tar.gz'; sha256='87b21c06573617842ca9e00b954bc9f534066736a0778eae594ac54b45a9e8b7'; ;; 's390x') url='https://dl.google.com/go/go1.21.0.linux-s390x.tar.gz'; sha256='be7338df8e5d5472dfa307b0df2b446d85d001b0a2a3cdb1a14048d751b70481'; ;; *) echo >&2 "error: unsupported architecture '$arch' (likely packaging update needed)"; exit 1 ;; esac; build=; if [ -z "$url" ]; then build=1; url='https://dl.google.com/go/go1.21.0.src.tar.gz'; sha256='818d46ede85682dd551ad378ef37a4d247006f12ec59b5b755601d2ce114369a'; echo >&2; echo >&2 "warning: current architecture ($arch) does not have a compatible Go binary release; will be building from source"; echo >&2; fi; wget -O go.tgz.asc "$url.asc"; wget -O go.tgz "$url" --progress=dot:giga; echo "$sha256 *go.tgz" | sha256sum -c -; GNUPGHOME="$(mktemp -d)"; export GNUPGHOME; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 'EB4C 1BFD 4F04 2F6D DDCC EC91 7721 F63B D38B 4796'; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys '2F52 8D36 D67B 69ED F998 D857 78BD 6547 3CB3 BD13'; gpg --batch --verify go.tgz.asc go.tgz; gpgconf --kill all; rm -rf "$GNUPGHOME" go.tgz.asc; tar -C /usr/local -xzf go.tgz; rm go.tgz; if [ -n "$build" ]; then savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends golang-go; export GOCACHE='/tmp/gocache'; ( cd /usr/local/go/src; export GOROOT_BOOTSTRAP="$(go env GOROOT)" GOHOSTOS="$GOOS" GOHOSTARCH="$GOARCH"; ./make.bash; ); apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*; rm -rf /usr/local/go/pkg/*/cmd /usr/local/go/pkg/bootstrap /usr/local/go/pkg/obj /usr/local/go/pkg/tool/*/api /usr/local/go/pkg/tool/*/go_bootstrap /usr/local/go/src/cmd/dist/dist "$GOCACHE" ; fi; go version |
ENV GOPATH=/go |
ENV PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
/bin/sh -c mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 1777 "$GOPATH" |
WORKDIR /go |
/bin/sh -c apt-get update && apt-get install -y ca-certificates curl gnupg && mkdir -p /etc/apt/keyrings && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor --no-tty --yes -o /etc/apt/keyrings/nodesource.gpg && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && apt-get install -y nodejs npm && apt-get clean |
/bin/sh -c npm install -g cdk8s-cli |
LABEL org.opencontainers.image.created=2023-09-03T12:08:42Z |
LABEL org.opencontainers.image.revision=5c59b170f1c452afdd6a0cab2503fd6038db16d3 |
LABEL org.opencontainers.image.source=https://git.mkz.me/mycroft/image-cdk8s.git |
LABEL org.opencontainers.image.url=https://git.mkz.me/mycroft/image-cdk8s |
Labels
Key | Value |
---|---|
org.opencontainers.image.created | 2023-09-03T12:08:42Z |
org.opencontainers.image.revision | 5c59b170f1c452afdd6a0cab2503fd6038db16d3 |
org.opencontainers.image.source | https://git.mkz.me/mycroft/image-cdk8s.git |
org.opencontainers.image.url | https://git.mkz.me/mycroft/image-cdk8s |
Details
2023-09-03 14:13:35 +02:00
Versions (3)
View all
Container
1
OCI / Docker
linux/amd64
498 MiB