This repository has been archived by the owner on Jul 8, 2024. It is now read-only.
forked from CrowdStrike/cloud-tools-image
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
50 lines (39 loc) · 2.16 KB
/
Dockerfile
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
FROM quay.io/centos/centos:stream8 as builder
RUN dnf install -y unzip golang-bin git
# eksctl cli
RUN curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_Linux_amd64.tar.gz" | tar xz -C /tmp
# helm
RUN curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
# https://github.com/awslabs/amazon-ecr-credential-helper
RUN go install github.com/awslabs/amazon-ecr-credential-helper/ecr-login/cli/docker-credential-ecr-login@latest
# k9s tool - https://github.com/derailed/k9s
RUN curl -sS https://webinstall.dev/k9s | bash
RUN curl -sSfL https://raw.githubusercontent.com/crowdstrike/gofalcon/main/examples/install | sh -s
FROM quay.io/centos/centos:stream8
COPY --from=builder /tmp/eksctl /usr/local/bin/helm /bin/
COPY --from=builder /root/go/bin/docker-credential-ecr-login /usr/bin/falcon_sensor_download /usr/bin/falcon_registry_token /usr/bin/falcon_get_cid /bin/
COPY --from=builder /root/.local/bin/k9s /bin/
COPY .docker /root/.docker
COPY demo-yamls /root/demo-yamls
COPY kubernetes.repo google-cloud-sdk.repo azure-cli.repo /etc/yum.repos.d/
COPY falcon-node-sensor-build falcon-node-sensor-push falcon-container-sensor-push falcon-image-pull-token /bin/
RUN : \
&& dnf update -y \
&& dnf install -y kubectl groff-base bash-completion google-cloud-sdk tmux git \
&& curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \
&& dnf install -y zip \
&& unzip awscliv2.zip \
&& dnf history undo last -y \
&& ./aws/install \
&& curl https://download.docker.com/linux/centos/docker-ce.repo > /etc/yum.repos.d/docker-ce.repo \
&& rpm --import https://packages.microsoft.com/keys/microsoft.asc \
&& dnf install -y docker-ce docker-ce-cli containerd.io azure-cli \
&& dnf install -y skopeo --nobest --allowerasing jq \
&& dnf clean all \
&& rm -rf ./aws awscliv2.zip /var/cache/dnf
RUN echo $'\n\
complete -C '/usr/local/bin/aws_completer' aws \n\
' >> /etc/bashrc \
&& kubectl completion bash >/etc/bash_completion.d/kubectl \
&& eksctl completion bash >/etc/bash_completion.d/eksctl \
&& helm completion bash >/etc/bash_completion.d/helm