Skip to content

Commit

Permalink
Update Dockerfile and add requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Bareiss committed Sep 30, 2024
1 parent c5c3480 commit fe7b7c6
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 11 deletions.
19 changes: 8 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,22 @@ 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 awscli curl vim lsb-release software-properties-common
RUN apt-get install -y python3.10 git unzip python3-pip curl vim lsb-release software-properties-common

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 git clone https://github.com/splunk/attack_range.git

WORKDIR /attack_range

RUN cd terraform/aws && terraform init
RUN cd terraform/azure && terraform init
RUN pip3 install poetry
RUN poetry install
RUN pip3 install --upgrade awscli requests
RUN pip3 install azure-cli

COPY docker-entrypoint.sh ./
RUN chmod +x ./docker-entrypoint.sh
CMD ["./docker-entrypoint.sh"]
RUN git clone https://github.com/splunk/attack_range.git
COPY requirements.txt /attack_range/requirements.txt


WORKDIR /attack_range

RUN pip3 install -r requirements.txt
57 changes: 57 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
ansible==10.4.0
ansible-core==2.17.4
ansible-runner==2.4.0
azure-common==1.1.28
azure-core==1.31.0
azure-identity==1.18.0
azure-mgmt-compute==33.0.0
azure-mgmt-core==1.4.0
azure-mgmt-network==27.0.0
azure-mgmt-resource==23.1.1
boto3==1.35.28
botocore==1.35.28
certifi==2024.8.30
cffi==1.17.1
charset-normalizer==3.3.2
colorama==0.4.6
cryptography==43.0.1
deprecation==2.1.0
docutils==0.21.2
gitdb==4.0.11
GitPython==3.1.43
idna==3.10
isodate==0.6.1
Jinja2==3.1.4
jmespath==1.0.1
lockfile==0.12.2
MarkupSafe==2.1.5
msal==1.31.0
msal-extensions==1.2.0
packaging==24.1
pexpect==4.9.0
portalocker==2.10.1
prompt-toolkit==3.0.36
ptyprocess==0.7.0
pycparser==2.22
pycryptodome==3.20.0
PyJWT==2.9.0
pyspnego==0.11.1
python-daemon==3.0.1
python-dateutil==2.9.0.post0
python-terraform==0.10.1
python-vagrant==1.0.0
pywinrm==0.5.0
PyYAML==6.0.2
questionary==2.0.1
requests==2.32.3
requests_ntlm==1.3.0
resolvelib==1.0.1
s3transfer==0.10.2
six==1.16.0
smmap==5.0.1
splunk-sdk==2.0.2
tabulate==0.9.0
typing_extensions==4.12.2
urllib3==2.2.3
wcwidth==0.2.13
xmltodict==0.13.0

0 comments on commit fe7b7c6

Please sign in to comment.