Skip to content

Commit

Permalink
chore: add docker compose to test issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Romakita committed Jul 25, 2022
1 parent 9b019f3 commit abb8e84
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 2 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
ARG NODE_VERSION=14.20.0
ARG YARN_VERSION=1.22.15

FROM node:${NODE_VERSION}-alpine as builder
WORKDIR /src

RUN npm config set unsafe-perm true
RUN apk update && apk add bash curl git

RUN npm install -g --force yarn@${YARN_VERSION}

COPY .git ./.git/
COPY scripts ./scripts/
COPY test ./test/
COPY packages ./packages/
COPY tools ./tools/
COPY package.json lerna.json yarn.lock tsconfig.base.json tsconfig.compile.json tsconfig.json ./

RUN yarn install --frozen-lockfile --ignore-scripts

CMD yarn lerna run start:express --scope @tsed/platform-express --stream
14 changes: 14 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: "3.3"
services:
test:
image: tsed/root
build:
context: .
args:
- http_proxy
- https_proxy
- no_proxy
volumes:
- ./packages:/src/packages
ports:
- "8081:8081"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"postinstall": "node tools/yarn/postinstall.js && cd docs && yarn install && cd .. && node ./tools/github-sponsors/bin/github-sponsors.js",
"configure": "monorepo ci configure",
"clean": "monorepo clean workspace",
"test": "yarn clean && yarn test:lint && yarn test:core && yarn test:specs && yarn test:platform && test:integration && yarn test:graphql && yarn test:orm && yarn test:security && yarn test:formio && yarn test:third-parties",
"test": "yarn clean && yarn test:lint && yarn test:core && yarn test:specs && yarn test:platform && yarn test:integration && yarn test:graphql && yarn test:orm && yarn test:security && yarn test:formio && yarn test:third-parties",
"test:lint": "eslint '**/*.{ts,js}'",
"test:lint:fix": "yarn test:lint --fix",
"test:core": "lerna run test --scope \"@tsed/{core,di,common,engines}\" --stream --concurrency 2",
Expand Down
1 change: 0 additions & 1 deletion packages/platform/platform-express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,3 @@
}
}
}

0 comments on commit abb8e84

Please sign in to comment.