forked from StamusNetworks/SELKS
-
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.
Merge branch 'StamusNetworks:master' into master
- Loading branch information
Showing
9 changed files
with
345 additions
and
267 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,46 +1,56 @@ | ||
FROM debian:bullseye | ||
|
||
|
||
FROM debian:bullseye as installer | ||
|
||
# Declare args | ||
ARG ARKIME_VERSION=3.2.1 | ||
ARG ARKIME_VERSION=5.0.0 | ||
ARG UBUNTU_VERSION=20.04 | ||
ARG ARKIME_DEB_PACKAGE="arkime_"$ARKIME_VERSION"-1_amd64.deb" | ||
ARG ARKIMEDIR "/opt/arkime" | ||
|
||
# Declare envs vars for each arg | ||
ENV ARKIME_VERSION $ARKIME_VERSION | ||
ENV UBUNTU_VERSION $UBUNTU_VERSION | ||
ENV ARKIME_DEB_PACKAGE $ARKIME_DEB_PACKAGE | ||
ENV ARKIMEDIR "/opt/arkime" | ||
|
||
|
||
# Install Arkime | ||
RUN apt-get update && apt-get install -y curl wget logrotate | ||
RUN mkdir -p /tmp /suricata-logs | ||
|
||
WORKDIR /tmp | ||
RUN wget -q "https://s3.amazonaws.com/files.molo.ch/builds/ubuntu-"$UBUNTU_VERSION"/"$ARKIME_DEB_PACKAGE | ||
RUN apt-get install -y ./$ARKIME_DEB_PACKAGE | ||
|
||
RUN wget -q -O /opt/arkime/etc/oui.txt "https://www.wireshark.org/download/automated/data/manuf" | ||
RUN $ARKIMEDIR/bin/arkime_update_geo.sh | ||
|
||
|
||
# add config | ||
|
||
FROM debian:bullseye as runner | ||
|
||
# Declare args | ||
|
||
ENV ES_HOST "elasticsearch" | ||
ENV ES_PORT 9200 | ||
ENV ARKIME_ADMIN_USERNAME "selks-user" | ||
ENV ARKIME_ADMIN_PASSWORD "selks-user" | ||
ENV ARKIME_HOSTNAME "arkime" | ||
ENV ARKIMEDIR "/opt/arkime" | ||
|
||
# Add entrypoint | ||
RUN apt-get update && apt-get install -y libpcre3 libyaml-0-2 libssl1.1 libmagic1 curl libwww-perl libjson-perl | ||
|
||
COPY --from=installer $ARKIMEDIR $ARKIMEDIR | ||
|
||
COPY start-arkimeviewer.sh /start-arkimeviewer.sh | ||
COPY arkimepcapread-selks-config.ini /opt/arkime/etc/config.ini | ||
|
||
# Install Arkime | ||
RUN apt-get update && \ | ||
apt-get install -y curl libmagic-dev wget logrotate && \ | ||
mkdir -p /data && \ | ||
mkdir -p /suricata-logs && \ | ||
cd /data && \ | ||
wget -q "https://s3.amazonaws.com/files.molo.ch/builds/ubuntu-"$UBUNTU_VERSION"/"$ARKIME_DEB_PACKAGE && \ | ||
apt-get install -y ./$ARKIME_DEB_PACKAGE && \ | ||
mv $ARKIMEDIR/etc /data/config && \ | ||
ln -s /data/config $ARKIMEDIR/etc && \ | ||
ln -s /data/logs $ARKIMEDIR/logs && \ | ||
ln -s /data/pcap $ARKIMEDIR/raw && \ | ||
wget -q -O /data/config/oui.txt "https://www.wireshark.org/download/automated/data/manuf" && \ | ||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /var/cache/* && \ | ||
rm /data/$ARKIME_DEB_PACKAGE && \ | ||
$ARKIMEDIR/bin/arkime_update_geo.sh && \ | ||
chmod 755 /start-arkimeviewer.sh && \ | ||
RUN chmod 755 /start-arkimeviewer.sh && \ | ||
mkdir -p /readpcap | ||
|
||
# add config | ||
COPY arkimepcapread-selks-config.ini /data/config/config.ini | ||
|
||
VOLUME ["/data/pcap", "/data/config", "/data/logs"] | ||
EXPOSE 8005 | ||
WORKDIR $ARKIMEDIR | ||
|
||
ENTRYPOINT ["/start-arkimeviewer.sh"] | ||
ENTRYPOINT [ "bash", "-c" ] | ||
CMD ["/start-arkimeviewer.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
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
Oops, something went wrong.