Skip to content

Commit

Permalink
Added some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Eyre committed Dec 30, 2019
1 parent 0d58217 commit df78162
Show file tree
Hide file tree
Showing 5 changed files with 1,269 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ FROM node:12.12.0-alpine

WORKDIR /usr/app

ENV WAITFORIT_VERSION="v2.4.1"
RUN wget -q -O /usr/local/bin/waitforit https://github.com/maxcnunes/waitforit/releases/download/$WAITFORIT_VERSION/waitforit-linux_amd64 \
&& chmod +x /usr/local/bin/waitforit

COPY package.json .
RUN npm install --quiet

Expand Down
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,10 @@ services:
- /usr/app/node_modules
ports:
- "3000:3000"
test:
build: .
command: "waitforit -address=http://varnish:6081 -timeout=60 -proto=http -- npm test"
depends_on:
- web
- varnish

Loading

0 comments on commit df78162

Please sign in to comment.