Skip to content

Commit

Permalink
ci: run the docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanwalther committed Jun 22, 2017
1 parent cefb1b6 commit d914220
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM node:7.9.0

ARG PORT=9696

ENV PORT=$PORT
ENV HOME /home


RUN mkdir -p $HOME
WORKDIR $HOME

Expand Down
3 changes: 2 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ machine:
dependencies:
override:
- npm install
- docker build --rm=false -t ${DOCKER_IMAGE_NAME} .

test:
override:
- docker build --rm=false -t ${DOCKER_IMAGE_NAME} .
- docker run ${DOCKER_IMAGE_NAME}
- while ! curl --retry 10 --retry-delay 5 -v http://0.0.0.0:9696 >/dev/null; do sleep 1; done

deployment:
Expand Down

0 comments on commit d914220

Please sign in to comment.