Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #507 from mozilla/fix-dockerfile
Browse files Browse the repository at this point in the history
Fix dockerfile
  • Loading branch information
pwnbus authored Oct 17, 2017
2 parents bdae217 + c574c76 commit d88be9c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
9 changes: 5 additions & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ FROM centos:7
MAINTAINER [email protected]

ENV NODE_VERSION 4.7.0
ENV METEOR_VERSION 1.4.0.1
ENV METEOR_FILE_VERSION 1.4.0-1
ENV METEOR_VERSION 1.4.4.2
ENV PYTHON_VERSION 2.7.11
ENV KIBANA_VERSION 4.6.5
ENV ES_VERSION 2.4.6
Expand Down Expand Up @@ -53,7 +52,7 @@ RUN \
yum install -y nginx && \
mkdir /var/log/mozdef/ && \
curl -s -L https://download.elastic.co/kibana/kibana/kibana-$KIBANA_VERSION-linux-x86_64.tar.gz | tar -C /opt/mozdef/ -xz && \
mv /opt/mozdef/kibana-$KIBANA_VERSION-linux-x64 /opt/mozdef/envs/kibana && \
mv /opt/mozdef/kibana-$KIBANA_VERSION-linux-x86_64 /opt/mozdef/envs/kibana && \
yum install -y mongodb-org && \
curl -s -L https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tgz | tar -C /opt/mozdef/ -xz && \
cd /opt/mozdef/Python-$PYTHON_VERSION && \
Expand Down Expand Up @@ -82,9 +81,11 @@ RUN \
tar -xzf /opt/mozdef/meteor.tar.gz -C /opt/mozdef/meteor && \
mv /opt/mozdef/meteor/.meteor /opt/mozdef && \
rm -r /opt/mozdef/meteor && \
cp /opt/mozdef/.meteor/packages/meteor-tool/$METEOR_FILE_VERSION/mt-os.linux.x86_64/scripts/admin/launch-meteor /usr/bin/meteor
cp /opt/mozdef/.meteor/packages/meteor-tool/*/mt-os.linux.x86_64/scripts/admin/launch-meteor /usr/bin/meteor

USER mozdef
COPY meteor /opt/mozdef/envs/mozdef/meteor
USER root
RUN chown -R mozdef:mozdef /opt/mozdef/envs/mozdef/meteor
USER mozdef
RUN \
Expand Down
1 change: 0 additions & 1 deletion docker/compose/mozdef_meteor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ MAINTAINER [email protected]
#updated meteor version to avoid EXDEV: cross-device link not permitted errors
ENV NODE_VERSION 4.7.0
ENV METEOR_VERSION 1.4.4.2
ENV METEOR_FILE_VERSION 1.4.4-1

ENV MONGO_URL=mongodb://mongodb:3002/meteor
ENV ROOT_URL=http://localhost
Expand Down
4 changes: 4 additions & 0 deletions docker/conf/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
'unauth_ssh.AlertUnauthSSH': {'schedule': crontab(minute='*/1')},
}

ALERT_PLUGINS = [
# 'relative pythonfile name (exclude the .py) - EX: sso_dashboard',
]

RABBITMQ = {
'mqserver': 'localhost',
'mquser': 'guest',
Expand Down

0 comments on commit d88be9c

Please sign in to comment.