Skip to content

Instantly share code, notes, and snippets.

@jDmacD
Last active March 3, 2016 14:29
Show Gist options
  • Save jDmacD/e382ab866e5f5d788189 to your computer and use it in GitHub Desktop.
Save jDmacD/e382ab866e5f5d788189 to your computer and use it in GitHub Desktop.
grunt-docker

##Build

docker build -t ito-image .

##Run Interactive (development)

docker run -ti --rm --name ito-container \
  -v host/dir/your/code.js:/absolute/dir/in/container/code.js \
  ito-image \
  /bin/bash 
  

##Run Daemon (production)

docker run -d --name ito-container \
  ito-image
FROM lightsofapollo/ubuntu-node
RUN apt-get update
RUN apt-get install -y curl nano zip git
RUN npm install -g mocha grunt-cli
COPY config /suite/config/
COPY log /suite/log/
COPY reporters /suite/reporters/
COPY test /suite/test/
COPY token /suite/token/
COPY Gruntfile.js /suite/Gruntfile.js
COPY package.json /suite/package.json
WORKDIR /suite
RUN npm install
RUN echo "Europe/Dublin" | sudo tee /etc/timezone;sudo dpkg-reconfigure --frontend noninteractive tzdata
CMD grunt production-remote-cron --force --verbose --stack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment