-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathDockerfile
More file actions
59 lines (49 loc) · 1.5 KB
/
Copy pathDockerfile
File metadata and controls
59 lines (49 loc) · 1.5 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
FROM debian:bookworm-slim
# Prepare system.
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
python3 \
python3-pip \
python3-setuptools \
python3-wheel \
curl \
ca-certificates \
unzip \
ssh \
ruby \
&& rm -rf /var/lib/apt/lists/*
# Install Ansible, AWS CLI and boto3.
RUN python3 -m pip install --no-cache-dir --break-system-packages \
ansible \
boto3 \
botocore \
awscli \
&& ansible --version \
&& aws --version
# Install Terraform.
ARG TERRAFORM_VERSION=1.9.8
RUN curl -fsSL "https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip" -o terraform.zip \
&& unzip -o terraform.zip -d /usr/local/bin/ \
&& rm -rf terraform.zip \
&& terraform version
# Install jq.
ARG JQ_VERSION=1.7.1
RUN curl -fsSL "https://github.com/jqlang/jq/releases/download/jq-${JQ_VERSION}/jq-linux-amd64" -o /usr/local/bin/jq \
&& chmod +x /usr/local/bin/jq \
&& jq --version
# Install ruby gems.
RUN gem install --no-document \
table_print
# Expose Python 3 as `python`.
RUN ln -sT /usr/bin/python3 /usr/local/bin/python
# Print the state after the installation to simplify troubleshooting.
RUN set -x \
&& ls -la / \
&& ls -la /usr/local/bin
# Setup the workspace.
WORKDIR /vector-test-harness
COPY . .
# Set the entrypoint.
ENTRYPOINT [ "/vector-test-harness/docker/entrypoint" ]
# By default, print usage hint, and force users to specify command manually.
CMD [ "echo", "Usage: bin/test ..." ]