2023-07-27 15:04:46 +02:00
|
|
|
FROM rustlang/rust:nightly as base
|
2022-08-14 21:06:07 +02:00
|
|
|
|
|
|
|
RUN rustup target add x86_64-unknown-linux-musl
|
|
|
|
|
|
|
|
RUN apt-get update -qq && \
|
|
|
|
apt-get install -y \
|
|
|
|
musl-tools \
|
|
|
|
musl-dev
|
|
|
|
|
|
|
|
RUN update-ca-certificates
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get upgrade -y
|
|
|
|
RUN apt-get install -y -q build-essential curl git
|
|
|
|
|
|
|
|
WORKDIR /app/cuddle/
|
|
|
|
|
2022-08-14 21:08:18 +02:00
|
|
|
COPY . .
|
|
|
|
|
2023-08-12 21:42:13 +02:00
|
|
|
RUN cargo install --target x86_64-unknown-linux-musl --path cuddle
|
2022-08-14 21:06:07 +02:00
|
|
|
|
2022-08-21 16:59:40 +02:00
|
|
|
FROM docker:dind
|
2022-08-14 21:06:07 +02:00
|
|
|
|
2024-01-28 16:41:50 +01:00
|
|
|
RUN apk add bash git kubectl
|
|
|
|
|
|
|
|
ENV SLICE_VERSION=v1.2.7
|
|
|
|
RUN wget -O kubectl-slice_linux_x86_64.tar.gz \
|
|
|
|
"https://github.com/patrickdappollonio/kubectl-slice/releases/download/$SLICE_VERSION/kubectl-slice_linux_x86_64.tar.gz" && \
|
|
|
|
tar -xf kubectl-slice_linux_x86_64.tar.gz && \
|
|
|
|
chmod +x ./kubectl-slice && \
|
|
|
|
mv ./kubectl-slice /usr/local/bin/kubectl-slice && \
|
|
|
|
rm kubectl-slice_linux_x86_64.tar.gz
|
|
|
|
|
2023-07-27 15:24:04 +02:00
|
|
|
RUN eval `ssh-agent`
|
2023-07-27 15:04:46 +02:00
|
|
|
|
|
|
|
COPY --from=1password/op:2 /usr/local/bin/op /usr/local/bin/op
|
|
|
|
|
2022-08-14 21:06:07 +02:00
|
|
|
COPY --from=base /usr/local/cargo/bin/ /usr/local/cargo/bin/
|
|
|
|
ENV PATH="${PATH}:/usr/local/cargo/bin"
|