-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Repo cloned at docker runtime to prevent leaking private wazuh rules …
…and decoders
- Loading branch information
1 parent
2864532
commit dbb9ea2
Showing
5 changed files
with
41 additions
and
36 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
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,28 +1,19 @@ | ||
FROM wazuh/wazuh-manager:4.8.0 | ||
|
||
#=========================================# | ||
#=== CHANGE THIS TO YOUR PIPELINE REPO ===# | ||
#=========================================# | ||
ENV PIPELINE_REPO=https://github.com/alexchristy/wazuh-pipeline.git | ||
#=========================================# | ||
|
||
ENV WAZUH_TEST_REPO=https://github.com/alexchristy/WazuhTest.git | ||
|
||
WORKDIR /root | ||
|
||
# Clone repos | ||
COPY init.sh /root/init.sh | ||
|
||
# Install dependencies | ||
RUN yum install git iproute golang -y | ||
RUN git clone $PIPELINE_REPO wazuh_pipeline | ||
RUN git clone $WAZUH_TEST_REPO wazuh_test | ||
|
||
# Install WazuhTest tool | ||
# Install WazuhTest tool | ||
RUN git clone $WAZUH_TEST_REPO wazuh_test | ||
WORKDIR /root/wazuh_test | ||
RUN go build . | ||
RUN chmod 751 WazuhTest | ||
RUN cp ./WazuhTest /usr/bin | ||
|
||
WORKDIR /root/wazuh_pipeline | ||
|
||
RUN chmod +x ./*.sh | ||
|
||
ENTRYPOINT ["/bin/sh", "/root/wazuh_pipeline/main.sh"] | ||
ENTRYPOINT ["/bin/sh", "/root/init.sh"] |
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,30 +1,20 @@ | ||
FROM wazuh/wazuh-manager:4.8.0 | ||
|
||
#=========================================# | ||
#=== CHANGE THIS TO YOUR PIPELINE REPO ===# | ||
#=========================================# | ||
ENV PIPELINE_REPO=https://github.com/alexchristy/wazuh-pipeline.git | ||
#=========================================# | ||
EXPOSE 1514/tcp 1515/tcp 1516/tcp 514/udp 55000/tcp | ||
|
||
ENV WAZUH_TEST_REPO=https://github.com/alexchristy/WazuhTest.git | ||
|
||
WORKDIR /root | ||
|
||
# Clone repos | ||
RUN yum install git iproute golang -y | ||
RUN git clone $PIPELINE_REPO wazuh_pipeline | ||
RUN git clone $WAZUH_TEST_REPO wazuh_test | ||
COPY init.sh /root/init.sh | ||
|
||
# Install WazuhTest tool | ||
# Install dependencies | ||
RUN yum install git iproute golang -y | ||
|
||
# Install WazuhTest tool | ||
RUN git clone $WAZUH_TEST_REPO wazuh_test | ||
WORKDIR /root/wazuh_test | ||
RUN go build . | ||
RUN chmod 751 WazuhTest | ||
RUN cp ./WazuhTest /usr/bin | ||
|
||
WORKDIR /root/wazuh_pipeline | ||
|
||
RUN chmod +x ./*.sh | ||
|
||
EXPOSE 1514/tcp 1515/tcp 1516/tcp 514/udp 55000/tcp | ||
|
||
ENTRYPOINT ["/bin/sh", "/root/wazuh_pipeline/main.sh", "-i"] | ||
ENTRYPOINT ["/bin/sh", "/root/init.sh", "-i"] |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
PIPELINE_REPO_PATH="/root/wazuh_pipeline" | ||
|
||
# Setup pipeline repo | ||
git clone "$REPO_URL" "$PIPELINE_REPO_PATH" | ||
cd "$PIPELINE_REPO_PATH" || 1 | ||
chmod +x ./*.sh | ||
|
||
# Check for the -i flag | ||
if [ "$1" = "-i" ]; then | ||
./main.sh -i | ||
else | ||
./main.sh | ||
fi |
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