Skip to content

Instantly share code, notes, and snippets.

@peteryhwong
Created October 2, 2022 14:17
Show Gist options
  • Save peteryhwong/7bbbe461b028f5040c81cdcea2f256af to your computer and use it in GitHub Desktop.
Save peteryhwong/7bbbe461b028f5040c81cdcea2f256af to your computer and use it in GitHub Desktop.
Custom CodeBuild image
ARG REGISTRY
FROM ${REGISTRY}docker:20.10.17-dind-alpine3.16
RUN docker -v
RUN docker-compose version
RUN apk add --no-cache \
curl \
bc \
postgresql-client \
git \
aws-cli \
wget \
bash
# as we still have some packages running node 14...
RUN apk add --no-cache --repository https://dl-cdn.alpinelinux.org/alpine/v3.13/main \
nodejs=14.20.0-r0 \
npm=14.20.0-r0
RUN node --version
RUN npm --version
# jq
RUN curl -sLO https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 && \
chmod +x jq-linux64 && \
mv jq-linux64 /usr/local/bin/jq
RUN jq --version
# kubectl
RUN curl -sLO https://storage.googleapis.com/kubernetes-release/release/v1.20.0/bin/linux/amd64/kubectl && \
chmod +x ./kubectl && \
mv ./kubectl /usr/local/bin/kubectl
RUN kubectl version --client=true
# yq
RUN curl -sLO https://github.com/mikefarah/yq/releases/download/v4.25.2/yq_linux_amd64 && \
chmod +x ./yq_linux_amd64 && \
mv ./yq_linux_amd64 /usr/local/bin/yq
RUN yq --version
# terraform
RUN curl -sLO https://releases.hashicorp.com/terraform/0.14.11/terraform_0.14.11_linux_amd64.zip && \
unzip terraform_0.14.11_linux_amd64.zip && \
mv terraform /usr/local/bin/terraform
RUN terraform --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment