Skip to content

Commit

Permalink
Fixup meteor container to support dev meteor with live reload
Browse files Browse the repository at this point in the history
  • Loading branch information
pwnbus committed Jan 16, 2020
1 parent 7916566 commit f50d7d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions docker/compose/dev-meteor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ services:
args:
METEOR_BUILD: 'NO'
restart: always
command: bash -c 'node -i'
command: bash -c 'cd /opt/mozdef/envs/mozdef/meteor;meteor npm install --save @babel/runtime;meteor'
depends_on:
- mongodb
- rest
networks:
- default
volumes:
- ../../meteor:/opt/mozdef/envs/mozdef/meteor
stdin_open: true
tty: true
6 changes: 3 additions & 3 deletions docker/compose/mozdef_meteor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ USER mozdef

# build meteor runtime if asked, if set to NO, only create the dir created above to mount to do live development
RUN \
mkdir -p /opt/mozdef/envs/meteor/mozdef && \
cd /opt/mozdef/envs/mozdef/meteor && \
meteor npm install && \
if [ "${METEOR_BUILD}" = "YES" ]; then \
mkdir -p /opt/mozdef/envs/meteor/mozdef && \
cd /opt/mozdef/envs/mozdef/meteor && \
meteor npm install && \
echo "Starting meteor build" && \
time meteor build --server localhost:3002 --directory /opt/mozdef/envs/meteor/mozdef && \
ln --symbolic /opt/mozdef/envs/meteor/mozdef/node_modules /opt/mozdef/envs/mozdef/meteor/node_modules && \
Expand Down

0 comments on commit f50d7d9

Please sign in to comment.