TypeScript/tests/cases/docker
Wesley Wigham 40fd4efdf6
Strip more kinds of timestamps and versions from dockerfile output (#32519)
* Strip more kinds of timestamps and versions from dockerfile output, rewrite office-ui-fabric dockerfile to use new lerna build system

* Add another filter for just output

* Update user baselines (#23)

* Update user baselines (#24)

* Strip only maybe-present timestamps

* More lenient timestamp filter

* Update user baselines (#25)

* Simplify and enhance vscode dockerfile to use nightly ts in ts extension, too

* Update user baselines (#26)

* Update user baselines (#27)
2019-07-23 17:14:50 -07:00
..
azure-sdk Add dockerfile based tests for azure-sdk-for-js and office-ui-fabric-react (#31948) 2019-06-20 12:47:57 -07:00
office-ui-fabric Strip more kinds of timestamps and versions from dockerfile output (#32519) 2019-07-23 17:14:50 -07:00
vscode Strip more kinds of timestamps and versions from dockerfile output (#32519) 2019-07-23 17:14:50 -07:00
xterm.js Add xterm test to docker suite (#32149) 2019-06-27 15:29:22 -07:00
README.md Add dockerfile based tests for azure-sdk-for-js and office-ui-fabric-react (#31948) 2019-06-20 12:47:57 -07:00

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.