-
Notifications
You must be signed in to change notification settings - Fork 861
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #560 from ndmalc/master
Add setup & docker support for Cent0S 7 and Rocky Linux 8
- Loading branch information
Showing
4 changed files
with
181 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
FROM centos:centos7 | ||
LABEL maintainer ??? | ||
|
||
ARG USER=eyewitness | ||
ARG UID=1000 | ||
ARG GID=1000 | ||
|
||
ENV LC_ALL=en_US.UTF-8 \ | ||
LANG=en_US.UTF-8 \ | ||
PYTHONUNBUFFERED=1 \ | ||
PYTHONIOENCODING=UTF-8 \ | ||
PIP_NO_CACHE_DIR=off | ||
|
||
RUN groupadd -g $GID -r $USER && \ | ||
useradd $USER -u $UID -g $USER -m | ||
|
||
COPY setup.sh /tmp/setup.sh | ||
|
||
RUN yum install -y git && \ | ||
git clone --depth 1 https://github.com/FortyNorthSecurity/EyeWitness.git /home/$USER/EyeWitness && \ | ||
cp /tmp/setup.sh /home/$USER/EyeWitness/Python/setup/setup.sh && \ | ||
yum remove -y git | ||
|
||
WORKDIR /home/$USER/EyeWitness | ||
|
||
RUN cd Python/setup && \ | ||
./setup.sh && \ | ||
cd .. && \ | ||
chown -R $USER:$USER /home/$USER/EyeWitness && \ | ||
mkdir -p /tmp/EyeWitness && \ | ||
chown $USER:$USER /tmp/EyeWitness | ||
|
||
USER $USER | ||
|
||
ENTRYPOINT ["python3", "Python/EyeWitness.py", "-d", "/tmp/EyeWitness/results", "--no-prompt"] |
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,35 @@ | ||
FROM rockylinux:8 | ||
LABEL maintainer ??? | ||
|
||
ARG USER=eyewitness | ||
ARG UID=1000 | ||
ARG GID=1000 | ||
|
||
ENV LC_ALL=C.UTF-8 \ | ||
LANG=C.UTF-8 \ | ||
PYTHONUNBUFFERED=1 \ | ||
PYTHONIOENCODING=UTF-8 \ | ||
PIP_NO_CACHE_DIR=off | ||
|
||
RUN groupadd -g $GID -r $USER && \ | ||
useradd $USER -u $UID -g $USER -m | ||
|
||
COPY setup.sh /tmp/setup.sh | ||
|
||
RUN dnf install -y git && \ | ||
git clone --depth 1 https://github.com/FortyNorthSecurity/EyeWitness.git /home/$USER/EyeWitness && \ | ||
cp /tmp/setup.sh /home/$USER/EyeWitness/Python/setup/setup.sh && \ | ||
dnf remove -y git | ||
|
||
WORKDIR /home/$USER/EyeWitness | ||
|
||
RUN cd Python/setup && \ | ||
./setup.sh && \ | ||
cd .. && \ | ||
chown -R $USER:$USER /home/$USER/EyeWitness && \ | ||
mkdir -p /tmp/EyeWitness && \ | ||
chown $USER:$USER /tmp/EyeWitness | ||
|
||
USER $USER | ||
|
||
ENTRYPOINT ["python3", "Python/EyeWitness.py", "-d", "/tmp/EyeWitness/results", "--no-prompt"] |
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