Skip to content

Commit 5a79726

Browse files
tim-evansdblandin
authored andcommitted
update configuration to get ember-watson engine working with CC
1 parent f24a87e commit 5a79726

File tree

6 files changed

+826
-27
lines changed

6 files changed

+826
-27
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/node_modules

Dockerfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
FROM alpine:edge
1+
FROM mhart/alpine-node:5.4
22

33
WORKDIR /usr/src/app
4+
COPY npm-shrinkwrap.json /usr/src/app/
5+
COPY package.json /usr/src/app/
46

5-
RUN apk --update add nodejs git ruby ruby-dev ruby-json build-base && \
6-
apk del build-base && rm -fr /usr/share/ri
7-
8-
RUN npm install -g abuiles/ember-watson.git#48e453c
7+
RUN apk --update add git && \
8+
npm install && \
9+
apk del --purge git
910

1011
COPY . /usr/src/app
1112

1213
RUN adduser -u 9000 -D app
14+
1315
USER app
1416

15-
CMD ["/usr/src/app/bin/codeclimate-watson"]
17+
CMD ["/usr/src/app/bin/ember-watson.js"]

bin/codeclimate-watson

Lines changed: 0 additions & 21 deletions
This file was deleted.

bin/ember-watson.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env node
2+
3+
process.chdir('/code');
4+
5+
var exec = require('child_process').execSync;
6+
7+
console.log(exec("/usr/src/app/node_modules/ember-watson/bin/ember-watson all --dry-run").toString());

0 commit comments

Comments
 (0)