diff --git a/docker/compose/docker-compose.yml b/docker/compose/docker-compose.yml index 0d111fef..6992b2fd 100644 --- a/docker/compose/docker-compose.yml +++ b/docker/compose/docker-compose.yml @@ -157,10 +157,10 @@ services: context: ../../ dockerfile: docker/compose/mozdef_meteor/Dockerfile restart: always - command: bash -c 'source /opt/mozdef/envs/python/bin/activate && node bundle/main.js' + command: bash -c 'node bundle/main.js' depends_on: - - base - - bootstrap + - mongodb + - rest networks: - default rest: diff --git a/docker/compose/mozdef_meteor/Dockerfile b/docker/compose/mozdef_meteor/Dockerfile index b0106034..128922a6 100644 --- a/docker/compose/mozdef_meteor/Dockerfile +++ b/docker/compose/mozdef_meteor/Dockerfile @@ -1,4 +1,4 @@ -FROM mozdef_base:latest +FROM centos:7 MAINTAINER mozdef@mozilla.com @@ -11,6 +11,8 @@ ENV ROOT_URL=http://localhost ENV PORT=3000 RUN \ + useradd -ms /bin/bash -d /opt/mozdef -m mozdef && \ + mkdir -p /opt/mozdef/envs/mozdef && \ cd /opt/mozdef && \ curl -sL -o /opt/mozdef/nodesource.rpm https://rpm.nodesource.com/pub_4.x/el/7/x86_64/nodesource-release-el7-1.noarch.rpm && \ rpm -i --nosignature --force /opt/mozdef/nodesource.rpm && \