Skip to content

Commit

Permalink
create local.yml file manually and check that for enabled plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
bleepbop committed Jul 7, 2023
1 parent 874912c commit 96e7d35
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ RUN pip3 install --no-cache-dir -r requirements.txt

# Set up config file and disable atomic by default
RUN sed -i '/\- atomic/d' conf/default.yml
RUN if [ -f "conf/local.yml" ]; then sed -i '/\- atomic/d' conf/local.yml; fi
RUN if [! -f "conf/local.yml" ]; then sed -i '/\- atomic/d' conf/local.yml; \
else grep -v "\- atomic" conf/default.yml > conf/local.yml; \
fi

# 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 @@ -64,10 +66,10 @@ fi
WORKDIR /usr/src/app

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

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

0 comments on commit 96e7d35

Please sign in to comment.