Skip to content

Commit 172608e

Browse files
committed
- updating to use the vault container as the base
1 parent a1c1d65 commit 172608e

File tree

5 files changed

+81
-3
lines changed

5 files changed

+81
-3
lines changed

.idea/docker-terraform-serverless.iml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

Lines changed: 48 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dockerfile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
FROM hashicorp/terraform:0.12.29
1+
FROM vault:1.5.3
22
LABEL maintainer="Corelight AWS Team <aws@corelight.com>"
3-
LABEL description="Serverless with Terraform for CI/CD"
3+
LABEL description="Serverless and Vault with Terraform for CI/CD"
4+
5+
6+
RUN wget --quiet https://releases.hashicorp.com/terraform/0.12.29/terraform_0.12.29_linux_amd64.zip \
7+
&& unzip terraform_0.12.29_linux_amd64.zip \
8+
&& mv terraform /usr/bin \
9+
&& rm terraform_0.12.29_linux_amd64.zip
410

511
RUN apk add --no-cache --update git bash openssh make nodejs nodejs-npm
612
RUN npm install -g serverless \
@@ -14,6 +20,7 @@ RUN npm install -g serverless \
1420
RUN apk add --no-cache --update python3 py-pip groff && \
1521
pip install --upgrade awscli python-gitlab
1622

17-
RUN ln -s /usr/bin/python3 /usr/bin/python
23+
RUN alias python='/usr/bin/python3'
24+
1825

1926
ENTRYPOINT ["/bin/bash", "-l", "-c"]

0 commit comments

Comments
 (0)