TypeScript/tests/cases/docker
Wesley Wigham 76639f1585
Revamp dockerfile for office-ui-fabric to reduce noise (#40147)
* Revamp dockerfile for office-ui-fabric to reduce noise and better handle recent changes to project structure

* Revert baseline change so it can be in the normal update, use node 12 since its LTS
2020-08-20 12:01:26 -07:00
..
azure-sdk azure-sdk test: move typescript location (#36902) 2020-02-20 10:09:37 -08:00
office-ui-fabric Revamp dockerfile for office-ui-fabric to reduce noise (#40147) 2020-08-20 12:01:26 -07:00
rxjs Add rxjs to the docker suite (#33500) 2020-02-04 16:00:08 -08:00
vscode Add --force option to npm install commands in dockerfiles (#36431) 2020-01-24 15:29:27 -08:00
vue-next Add --force to vue-next dockerfile since latest image version errors without it 2020-02-24 17:38:16 -08:00
xterm.js
README.md

Integrations

This repository contains Dockerfiles that describe how to build open source projects (usually those with complex build tasks) with a specific version of typescript. These are used for extended validations of a given typescript build.

Contributing

To add a new test:

  • Create a new folder with the name of the project
  • Create a Dockerfile within that folder
  • The Dockerfile will be built with docker build . -t tstest/folder and then run with docker run tstest/folder
  • Write the dockerfile such that it can build the target project and injects the typescript package from the typescript/typescript image (which should have a tar file at /typescript/typescript-*.tgz)

Debugging

You can open a test's container with an interactive shell to debug with docker run -it --entrypoint "/bin/sh" tstest/folder. If you want to remote debug a typescript process within a container, you'll need to forward the port you instruct the compiler or language server to listen on by passing --expose PORT where PORT is the port number you'd like forwarded to the host.