add npmdocker
This commit is contained in:
parent
be659a2dbd
commit
37028a9b1f
@ -1,4 +1,4 @@
|
||||
image: hosttoday/ht-docker-dbase
|
||||
image: hosttoday/ht-docker-dbase:npmts
|
||||
services:
|
||||
- docker:dind
|
||||
|
||||
|
@ -1,6 +0,0 @@
|
||||
FROM hosttoday/ht-docker-node:npmts
|
||||
RUN mkdir app-node
|
||||
COPY ./ /app-node/
|
||||
WORKDIR /app-node
|
||||
ENV CI true
|
||||
CMD ["npmts"]
|
@ -2,5 +2,10 @@
|
||||
"npmts":{
|
||||
"mode":"default",
|
||||
"coverageTreshold":10
|
||||
},
|
||||
"npmdocker":{
|
||||
"baseImage":"hosttoday/ht-docker-node:npmts",
|
||||
"command":"npmts",
|
||||
"dockerSock":"true"
|
||||
}
|
||||
}
|
@ -5,10 +5,7 @@
|
||||
"main": "dist/index.js",
|
||||
"typings": "dist/index.d.ts",
|
||||
"scripts": {
|
||||
"test": "npmts --notest && npm run build && npm run startdocker && npm run cleanup",
|
||||
"build": "docker build -t npmts-test-image .",
|
||||
"startdocker": "docker run -v /var/run/docker.sock:/var/run/docker.sock --name npmts-test-container npmts-test-image",
|
||||
"cleanup": "docker rm npmts-test-container && docker rmi npmts-test-image"
|
||||
"test": "npmdocker"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
Loading…
Reference in New Issue
Block a user