Skip to content

Commit

Permalink
Merge pull request #2780 from mitre/bleepbop/VIRTS-4594/emu-docker-up…
Browse files Browse the repository at this point in the history
…dates

Dockerfile Updates for Emu
  • Loading branch information
elegantmoose authored Jul 27, 2023
2 parents 6507725 + 47f69ee commit a453ebb
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ RUN if [ "$WIN_BUILD" = "true" ] ; then apt-get -y install mingw-w64; fi
RUN pip3 install --no-cache-dir -r requirements.txt

# Set up config file and disable atomic by default
RUN grep -v "\- atomic" conf/default.yml > conf/local.yml
RUN python3 -c "import app; import app.utility.config_generator; app.utility.config_generator.ensure_local_config();"; \
sed -i '/\- atomic/d' conf/local.yml;

# Install golang
RUN curl -L https://go.dev/dl/go1.17.6.linux-amd64.tar.gz -o go1.17.6.linux-amd64.tar.gz
Expand Down Expand Up @@ -60,6 +61,15 @@ RUN if [ ! -d "/usr/src/app/plugins/atomic/data/atomic-red-team" ]; then \
/usr/src/app/plugins/atomic/data/atomic-red-team; \
fi

WORKDIR /usr/src/app/plugins/emu

# If emu is enabled, complete necessary installation steps
RUN if [ $(grep -c "\- emu" ../../conf/local.yml) ]; then \
apt-get -y install zlib1g unzip; \
pip3 install -r requirements.txt; \
./download_payloads.sh; \
fi

WORKDIR /usr/src/app

# Default HTTP port for web interface and agent beacons over HTTP
Expand Down

0 comments on commit a453ebb

Please sign in to comment.