зеркало из https://github.com/mozilla/MozDef.git
add configlib2.0.0 to requirements.txt
This commit is contained in:
Родитель
a9098abee9
Коммит
4ed9ee146b
|
@ -39,8 +39,8 @@ USER mozdef
|
|||
RUN \
|
||||
virtualenv /opt/mozdef/envs/python && \
|
||||
source /opt/mozdef/envs/python/bin/activate && \
|
||||
pip install -r /opt/mozdef/envs/mozdef/requirements.txt && \
|
||||
pip install git+https://github.com/andrewkrug/configlib
|
||||
pip install -r /opt/mozdef/envs/mozdef/requirements.txt
|
||||
|
||||
# Local copy for dev
|
||||
COPY mozdef_util /opt/mozdef/envs/mozdef/mozdef_util
|
||||
USER root
|
||||
|
|
|
@ -29,23 +29,23 @@ RUN \
|
|||
RUN \
|
||||
curl -sL https://rpm.nodesource.com/setup_8.x | bash - && \
|
||||
yum -y install nodejs
|
||||
RUN \
|
||||
mkdir /opt/mozdef/meteor && \
|
||||
curl -sL -o /opt/mozdef/meteor.tar.gz https://static-meteor.netdna-ssl.com/packages-bootstrap/$METEOR_VERSION/meteor-bootstrap-os.linux.x86_64.tar.gz && \
|
||||
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/*/mt-os.linux.x86_64/scripts/admin/launch-meteor /usr/bin/meteor
|
||||
|
||||
RUN mkdir /opt/mozdef/meteor
|
||||
RUN curl -sL -o /opt/mozdef/meteor.tar.gz https://static-meteor.netdna-ssl.com/packages-bootstrap/$METEOR_VERSION/meteor-bootstrap-os.linux.x86_64.tar.gz
|
||||
RUN tar -xzf /opt/mozdef/meteor.tar.gz -C /opt/mozdef/meteor
|
||||
RUN mv /opt/mozdef/meteor/.meteor /opt/mozdef
|
||||
RUN rm -r /opt/mozdef/meteor
|
||||
RUN cp /opt/mozdef/.meteor/packages/meteor-tool/*/mt-os.linux.x86_64/scripts/admin/launch-meteor /usr/bin/meteor
|
||||
|
||||
COPY meteor /opt/mozdef/envs/mozdef/meteor
|
||||
COPY docker/compose/mozdef_meteor/files/settings.js /opt/mozdef/envs/mozdef/meteor/app/lib/settings.js
|
||||
RUN chown -R mozdef:mozdef /opt/mozdef/envs/mozdef/meteor
|
||||
|
||||
USER mozdef
|
||||
RUN \
|
||||
mkdir -p /opt/mozdef/envs/meteor/mozdef
|
||||
RUN mkdir -p /opt/mozdef/envs/meteor/mozdef
|
||||
|
||||
# build meteor runtime if asked, if set to NO, only create the dir created above to mount to do live development
|
||||
RUN if [ "${METEOR_BUILD}" = "YES" ]; then \
|
||||
RUN if [ "${METEOR_BUILD}" = "YES" ]; then \
|
||||
cd /opt/mozdef/envs/mozdef/meteor && \
|
||||
meteor npm install && \
|
||||
meteor build --server localhost:3002 --directory /opt/mozdef/envs/meteor/mozdef && \
|
||||
|
@ -56,4 +56,4 @@ RUN if [ "${METEOR_BUILD}" = "YES" ]; then \
|
|||
|
||||
WORKDIR /opt/mozdef/envs/meteor/mozdef
|
||||
|
||||
EXPOSE 3000
|
||||
EXPOSE 3000
|
||||
|
|
|
@ -58,3 +58,4 @@ uritemplate==0.6
|
|||
urllib3==1.22
|
||||
uwsgi==2.0.17.1
|
||||
virtualenv==1.11.4
|
||||
configlib==2.0.0
|
||||
|
|
Загрузка…
Ссылка в новой задаче