diff --git a/oci/iac-runner/pulumi-aws/Dockerfile b/oci/iac-runner/pulumi-aws/Dockerfile new file mode 100644 index 0000000..b40e140 --- /dev/null +++ b/oci/iac-runner/pulumi-aws/Dockerfile @@ -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 " + +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"] diff --git a/oci/iac-runner/pulumi-aws/Makefile b/oci/iac-runner/pulumi-aws/Makefile new file mode 100755 index 0000000..f63b667 --- /dev/null +++ b/oci/iac-runner/pulumi-aws/Makefile @@ -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 diff --git a/oci/iac-runner/pulumi-aws/repositories b/oci/iac-runner/pulumi-aws/repositories new file mode 100755 index 0000000..281b398 --- /dev/null +++ b/oci/iac-runner/pulumi-aws/repositories @@ -0,0 +1,2 @@ +https://mirrors.ustc.edu.cn/alpine/v3.15/main +https://mirrors.ustc.edu.cn/alpine/v3.15/community