add oci/iac-runner/pulumi-aws

This commit is contained in:
Haitao Pan 2023-02-21 10:41:44 +08:00
parent 3cc78ac2c3
commit 875fc40467
3 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,23 @@
FROM debian:11-slim AS builder
ARG PULUMI_VERSION
RUN apt-get update -y && \
apt-get upgrade -y && \
apt-get install -y \
curl \
build-essential \
git
# Install the Pulumi SDK, including the CLI and language runtimes.
RUN curl -fsSL https://get.pulumi.com/ | bash -s -- --version $PULUMI_VERSION
FROM artifact.onwalk.net/k8s/alpine-glibc:2.4.3 as prod
LABEL maintainer="Haitao Pan <xz@onwalk.net>"
ENV PATH "/pulumi/bin:${PATH}"
WORKDIR /pulumi
COPY --from=builder /root/.pulumi/bin bin
RUN apk add --update --no-cache ca-certificates openssh-client git bash wget make curl jq py3-pip unzip zip
CMD ["pulumi"]

View File

@ -0,0 +1,4 @@
Makefileall:
cp -av ~/.terraform.d/ .
sudo docker build --network host --no-cache -t artifact.onwalk.net/devops/iac-runner:latest .
sudo docker push artifact.onwalk.net/devops/iac-runner:latest

View File

@ -0,0 +1,2 @@
https://mirrors.ustc.edu.cn/alpine/v3.15/main
https://mirrors.ustc.edu.cn/alpine/v3.15/community