sparse-easter-31125
02/14/2024, 6:03 AMswift-garage-61180
02/15/2024, 12:57 PMsparse-easter-31125
02/16/2024, 12:39 AMmammoth-flag-56137
02/16/2024, 5:52 AMmammoth-flag-56137
02/16/2024, 5:53 AMmammoth-flag-56137
02/16/2024, 5:54 AMbright-policeman-43626
02/16/2024, 6:19 AMkind
and garden
so in CI I can create the kind cluster on the flight and deploy with garden
did you got this error at any point of your journey here?
Could not find rsync binary. Please make sure rsync (version 3.1.0 or later) is installed and on your PATH. More about garden installation and requirements can be found in our documentation at https://docs.garden.io/v/acorn-0.12/guides/installation
`
when doing the deployment?bright-policeman-43626
02/16/2024, 6:20 AMmammoth-flag-56137
02/16/2024, 6:22 AMFROM alpine:3.18 as terraform
ARG TARGETARCH=amd64
ARG TERRAFORM_VER=""
RUN apk add --no-cache bash jq curl git openssh gcompat
WORKDIR /tmp
RUN curl -sLo terraform.zip "https://releases.hashicorp.com/terraform/${TERRAFORM_VER}/terraform_${TERRAFORM_VER}_linux_${TARGETARCH}.zip" && unzip terraform.zip && rm terraform.zip && mv ./terraform /usr/local/bin/terraform && terraform --version
WORKDIR /
RUN curl -o /usr/bin/gitlab-terraform https://gitlab.com/gitlab-org/terraform-images/-/blob/master/src/bin/gitlab-terraform.sh
RUN chmod +x /usr/bin/gitlab-terraform
ENTRYPOINT []
FROM terraform as aws-cli-v2
ARG AWSCLI_VER=""
RUN apk add --no-cache aws-cli=$AWSCLI_VER
RUN apk add --no-cache curl docker-cli git openssl rsync ca-certificates tar gzip openssh-client libstdc++ python3 py3-pip libc6-compat py3-openssl libffi gnupg groff py3-crcmod
RUN apk add --no-cache --virtual .pipeline-deps readline linux-pam && apk add bash sudo shadow && apk del .pipeline-deps
ENTRYPOINT []
WORKDIR /
FROM aws-cli-v2 as garden-fetch-tools
ENV USER=root
ENV HOME=/root
ENTRYPOINT []
RUN curl -sL https://get.garden.io/install.sh | bash
ENV PATH=$PATH:$HOME/.garden/bin
RUN garden util fetch-tools --all
RUN rm -rf /root/.garden/tools/openjdk*
RUN rm -rf /root/.garden/tools/pulumi*
RUN rm -rf /root/.garden/tools/otel-collector*
RUN rm -rf /root/.garden/tools/octant*
RUN rm -rf /root/.garden/tools/gradle*
RUN rm -rf /root/.garden/tools/conftest*
RUN rm -rf /root/.garden/tools/maven*
RUN rm -rf /root/.garden/tools/mavend*
RUN rm -rf /root/.garden/tools/hadolint*
FROM aws-cli-v2 as garden
ARG GARDEN_VER=""
ENV USER=root
ENV HOME=/root
ENTRYPOINT []
RUN curl -sL https://get.garden.io/install.sh | bash
ENV PATH=$PATH:$HOME/.garden/bin
RUN garden self-update "$GARDEN_VER"
COPY --from=garden-fetch-tools /root/.garden/tools/ /root/.garden/tools/
WORKDIR /
bright-policeman-43626
02/16/2024, 6:22 AMmammoth-flag-56137
02/16/2024, 6:23 AMbright-policeman-43626
02/16/2024, 6:23 AMFROM gcr.io/cloud-builders/docker
RUN add-apt-repository ppa:longsleep/golang-backports && \
apt-get update && \
apt-get install -y golang-go && \
apt-get install -y rsync && \
apt-get install -y gcc
RUN GO111MODULE="on" go install sigs.k8s.io/kind@v0.22.0
RUN curl -Lo /usr/local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && \
chmod +x /usr/local/bin/kubectl
RUN curl -sL https://get.garden.io/install.sh | bash
ENV PATH="/root/.garden/bin:${PATH}"
RUN garden self-update 0.12.61
ENV PATH /root/go/bin:$PATH
ENTRYPOINT ["/bin/bash"]
I just want that the container gets ready so when I run cloudbuild CI I can just create the kind cluster and deploy with Garden.
Already got the kind cluster working, fully ephemeralmammoth-flag-56137
02/16/2024, 6:24 AMbright-policeman-43626
02/16/2024, 6:25 AMmammoth-flag-56137
02/16/2024, 6:25 AMbright-policeman-43626
02/16/2024, 6:27 AMbright-policeman-43626
02/16/2024, 6:28 AMmammoth-flag-56137
02/16/2024, 6:30 AMmammoth-flag-56137
02/16/2024, 6:30 AMbright-policeman-43626
02/16/2024, 6:31 AMmammoth-flag-56137
02/16/2024, 6:31 AMmammoth-flag-56137
02/16/2024, 6:31 AMbright-policeman-43626
02/16/2024, 6:32 AMmammoth-flag-56137
02/16/2024, 6:32 AMbright-policeman-43626
02/16/2024, 6:33 AMmammoth-flag-56137
02/16/2024, 6:33 AMmammoth-flag-56137
02/16/2024, 6:33 AMbright-policeman-43626
02/16/2024, 6:36 AMmammoth-flag-56137
02/16/2024, 6:39 AMmammoth-flag-56137
02/16/2024, 6:39 AM