-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Patrick Bareiss
committed
Sep 30, 2024
1 parent
fe7b7c6
commit 618a905
Showing
1 changed file
with
19 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,33 @@ | ||
FROM ubuntu:22.04 | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update && apt-get upgrade -y | ||
RUN apt-get install -y python3.10 git unzip python3-pip curl vim lsb-release software-properties-common | ||
RUN apt update && apt upgrade -y | ||
RUN apt-get install -y software-properties-common | ||
RUN apt update | ||
RUN add-apt-repository ppa:deadsnakes/ppa | ||
RUN apt update | ||
RUN apt install -y python3.12 | ||
|
||
RUN apt-get install -y git unzip python3-pip curl vim | ||
|
||
RUN curl -s https://releases.hashicorp.com/terraform/1.9.6/terraform_1.9.6_linux_amd64.zip -o terraform.zip && \ | ||
unzip terraform.zip && \ | ||
mv terraform /usr/local/bin/ | ||
|
||
RUN echo 'alias python=python3' >> ~/.bashrc | ||
RUN echo 'alias python=python3.12' >> ~/.bashrc | ||
|
||
RUN pip3 install poetry | ||
RUN pip3 install --upgrade awscli requests | ||
RUN pip3 install azure-cli | ||
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \ | ||
python3.12 get-pip.py && \ | ||
rm get-pip.py | ||
RUN python3.12 -m pip install --upgrade setuptools wheel | ||
|
||
RUN git clone https://github.com/splunk/attack_range.git | ||
COPY requirements.txt /attack_range/requirements.txt | ||
RUN python3.12 -m pip install --upgrade pip | ||
|
||
RUN python3.12 -m pip install --upgrade awscli azure-cli | ||
|
||
RUN git clone https://github.com/splunk/attack_range.git | ||
|
||
WORKDIR /attack_range | ||
|
||
RUN pip3 install -r requirements.txt | ||
RUN python3.12 -m pip install -r requirements.txt | ||
|