Skip to content

Commit

Permalink
updated Arkime to version 5.2.0
Browse files Browse the repository at this point in the history
-> OS user and password are now required for the Configure script
  • Loading branch information
mammo0 committed May 28, 2024
1 parent 0e867e7 commit 21a9831
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ RUN apt-get -qq update && \
apt-get install -yq curl libmagic-dev wget logrotate

# Set arguments
ARG ARKIME_VERSION=5.1.2
ARG ARKIME_VERSION=5.2.0
ARG ARKIME_DEB_PACKAGE="arkime_${ARKIME_VERSION}-1.ubuntu2204_amd64.deb"

# Set environment variables
ENV ARKIME_VERSION $ARKIME_VERSION
ENV OS_HOST "opensearch"
ENV OS_PORT "9200"
ENV OS_USER ""
ENV OS_PASSWORD ""
ENV ARKIME_INTERFACE "eth0"
ENV ARKIME_ADMIN_PASSWORD "admin"
ENV ARKIME_HOSTNAME "localhost"
Expand Down
8 changes: 7 additions & 1 deletion scripts/startarkime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ export ARKIME_ELASTICSEARCH="http://"$OS_HOST":"$OS_PORT
export ARKIME_INET=no

if [ ! -f $ARKIMEDIR/etc/.initialized ]; then
echo -e "$ARKIME_LOCALELASTICSEARCH\n$ARKIME_INET" | $ARKIMEDIR/bin/Configure
if [ -z $OS_USER ]; then
# pass empty OS user to Configure script
echo -e "$ARKIME_LOCALELASTICSEARCH\n\n$ARKIME_INET" | $ARKIMEDIR/bin/Configure
else
# pass OS user and password to Configure
echo -e "$ARKIME_LOCALELASTICSEARCH\n$OS_USER\n$OS_PASSWORD\n$ARKIME_INET" | $ARKIMEDIR/bin/Configure
fi
echo INIT | $ARKIMEDIR/db/db.pl http://$OS_HOST:$OS_PORT init
$ARKIMEDIR/bin/arkime_add_user.sh admin "Admin User" $ARKIME_ADMIN_PASSWORD --admin
echo $ARKIME_VERSION > $ARKIMEDIR/etc/.initialized
Expand Down

0 comments on commit 21a9831

Please sign in to comment.