Skip to content

Add rxjs to the docker suite #33500

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions tests/baselines/reference/docker/rxjs.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
Exit Code: 1
Standard output:

> @reactivex/rxjs@X.X.X-alpha.0 build_all /rxjs
> npm-run-all clean_dist copy_sources build_cjs build_esm5 build_esm2015 build_esm5_for_rollup build_umd build_types generate_packages
> @reactivex/rxjs@X.X.X-alpha.0 clean_dist /rxjs
> shx rm -rf ./dist
> @reactivex/rxjs@X.X.X-alpha.0 copy_sources /rxjs
> mkdirp dist && shx cp -r ./src/ ./dist/src
> @reactivex/rxjs@X.X.X-alpha.0 build_cjs /rxjs
> npm-run-all clean_dist_cjs compile_dist_cjs
> @reactivex/rxjs@X.X.X-alpha.0 clean_dist_cjs /rxjs
> shx rm -rf ./dist/cjs
> @reactivex/rxjs@X.X.X-alpha.0 compile_dist_cjs /rxjs
> tsc -p ./tsconfig/tsconfig.cjs.json
node_modules/@types/node/index.d.ts(74,11): error TS2300: Duplicate identifier 'IteratorResult'.
src/internal/operators/windowTime.ts(115,5): error TS2322: Type 'string | number' is not assignable to type 'number'.
Type 'string' is not assignable to type 'number'.
src/internal/operators/windowTime.ts(121,5): error TS2322: Type 'string | number' is not assignable to type 'number'.
Type 'string' is not assignable to type 'number'.
../typescript/package/lib/lib.es2015.iterable.d.ts(41,6): error TS2300: Duplicate identifier 'IteratorResult'.



Standard error:
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @reactivex/rxjs@X.X.X-alpha.0 compile_dist_cjs: `tsc -p ./tsconfig/tsconfig.cjs.json`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @reactivex/rxjs@X.X.X-alpha.0 compile_dist_cjs script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/XXXX-XX-XXXXXXXXX-debug.log
ERROR: "compile_dist_cjs" exited with 2.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @reactivex/rxjs@X.X.X-alpha.0 build_cjs: `npm-run-all clean_dist_cjs compile_dist_cjs`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @reactivex/rxjs@X.X.X-alpha.0 build_cjs script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/XXXX-XX-XXXXXXXXX-debug.log
ERROR: "build_cjs" exited with 1.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @reactivex/rxjs@X.X.X-alpha.0 build_all: `npm-run-all clean_dist copy_sources build_cjs build_esm5 build_esm2015 build_esm5_for_rollup build_umd build_types generate_packages`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @reactivex/rxjs@X.X.X-alpha.0 build_all script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/XXXX-XX-XXXXXXXXX-debug.log
14 changes: 14 additions & 0 deletions tests/cases/docker/rxjs/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM node:10
RUN git clone https://github.com/ReactiveX/rxjs /rxjs
WORKDIR /rxjs
RUN git pull
COPY --from=typescript/typescript /typescript/typescript-*.tgz /typescript.tgz
RUN mkdir /typescript
RUN tar -xzvf /typescript.tgz -C /typescript
RUN rm ./package-lock.json
RUN npm i -D typescript@/typescript/package
RUN npm install
# Set entrypoint back to bash (`node` base image made it `node`)
ENTRYPOINT [ "/bin/bash", "-c" , "exec \"${@:0}\";"]
# Build
CMD npm run build_all