瀏覽代碼

first commit

Ben 3 月之前
當前提交
92787dd69d
共有 3 個文件被更改,包括 36 次插入0 次删除
  1. 15 0
      Dockerfile
  2. 11 0
      Dockerfile.cdk
  3. 10 0
      Dockerfile.cfn-guard

+ 15 - 0
Dockerfile

@@ -0,0 +1,15 @@
+FROM ubuntu:latest
+
+RUN apt update && \
+    apt install -y curl wget git yq jq unzip nodejs npm && \
+    rm -rf /var/lib/apt/lists/*
+
+RUN curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/aws-cloudformation/cloudformation-guard/main/install-guard.sh | sh && \
+    mv /root/.guard/bin/cfn-guard /usr/local/bin/cfn-guard
+
+RUN npm i -g aws-cdk
+
+RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
+    unzip awscliv2.zip && \
+    ./aws/install && \
+    rm -rf ./aws awscliv2.zip

+ 11 - 0
Dockerfile.cdk

@@ -0,0 +1,11 @@
+FROM python:latest
+
+RUN pip install aws-cdk-lib
+
+RUN apt update && \
+    apt install -y curl wget git yq jq unzip nodejs npm && \
+    rm -rf /var/lib/apt/lists/*
+
+RUN npm i -g aws-cdk
+
+ENTRYPOINT [ "/bin/bash" ]

+ 10 - 0
Dockerfile.cfn-guard

@@ -0,0 +1,10 @@
+FROM ubuntu:latest
+
+RUN apt update && \
+    apt install -y curl yq jq unzip && \
+    rm -rf /var/lib/apt/lists/*
+
+RUN curl --proto '=https' --tlsv1.2 -sSf \
+    https://raw.githubusercontent.com/aws-cloudformation/cloudformation-guard/main/install-guard.sh | \
+    sh && \
+    mv /root/.guard/bin/cfn-guard /usr/local/bin/cfn-guard