forked from localstack/localstack-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.github
More file actions
30 lines (24 loc) · 1.14 KB
/
Copy pathDockerfile.github
File metadata and controls
30 lines (24 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM mcr.microsoft.com/devcontainers/universal
RUN sudo apt update
# install LocalStack CLI, awslocal, samlocal, tflocal
# FIXME remove once https://github.com/yaml/pyyaml/issues/601 is fixed
RUN pip install "setuptools" "wheel"
RUN pip install --no-build-isolation "Cython<3.0" "pyyaml<5.5"
RUN pip install localstack awscli-local[ver1] aws-sam-cli-local terraform-local
RUN pip install --pre --upgrade localstack localstack-ext
# install CDK utils
RUN npm install -g aws-cdk-local aws-cdk
# default environment variables
ENV DEBUG=1
ENV OVERRIDE_IN_DOCKER=0
ENV EXTRA_CORS_ALLOWED_ORIGINS='*'
ENV DISABLE_CUSTOM_CORS_APIGATEWAY=1
ENV PORTS_CHECK_DOCKER_IMAGE=localstack/localstack-pro
# set test environment variables
ENV AWS_ACCESS_KEY_ID=test
ENV AWS_SECRET_ACCESS_KEY=test
# Install official Terraform CLI
RUN wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor > /usr/share/keyrings/hashicorp-archive-keyring.gpg \
&& echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" > /etc/apt/sources.list.d/hashicorp.list \
&& apt-get update \
&& apt-get install -y terraform