Skip to content

Commit 5e70880

Browse files
committed
WIP Docker troubleshooting
1 parent 1f51e49 commit 5e70880

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

user/common-build-problems.md

+21
Original file line numberDiff line numberDiff line change
@@ -297,3 +297,24 @@ If you have a command that doesn't produce output for more than 10 minutes, you
297297
`travis_wait` writes a short line to the build log every minute for 20 minutes, extending the amount of time your command has to finish.
298298

299299
We recommend careful use of `travis_wait`, as overusing it can extend your build time when there could be a deeper underlying issue. When in doubt, [file a ticket](https://github.com/travis-ci/travis-ci/issues/new) or [email us](mailto:[email protected]) first to see if something could be improved about this particular command first.
300+
301+
## Troubleshooting Locally in a Docker Image
302+
303+
If you're having trouble tracking down the exact problem in a build it often helps to run the build locally. To do this you need to be using our container based infrastructure, and to download the same Docker image you are using on Travis CI.
304+
305+
### Running a Container Based Docker Image Locally
306+
307+
1. Download and install the Docker Engine:
308+
* [Windows](https://docs.docker.com/installation/windows)
309+
* [OS X](https://docs.docker.com/installation/mac)
310+
* [Ubuntu Linux](https://docs.docker.com/installation/ubuntulinux/)
311+
2. Select an image from [Quay.io](https://quay.io/organization/travisci). If you're not using a language specific image pick `travis-ruby`. Open a terminal and run an interactive Docker session using the image URL:
312+
313+
```bash
314+
docker run -it quay.io/travisci/travis-ruby /bin/bash
315+
su - travis
316+
```
317+
318+
3. Clone your git repository into the `/` folder of the image.
319+
4. Manually install any dependencies such as `rake` and your gems.
320+
5. Manually run your Travis CI build command.

0 commit comments

Comments
 (0)