Skip to content

Commit 4f069b8

Browse files
authored
docs (hacking-tips): more details on docker travis
1 parent 6d862b0 commit 4f069b8

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

docs/hacking-tips.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,21 @@ You can do a local docker image install of Travis to better inspect a travis bui
5454
* [Common Build Problems - Travis CI](https://docs.travis-ci.com/user/common-build-problems/#Troubleshooting-Locally-in-a-Docker-Image)
5555

5656
```sh
57-
docker run -it quay.io/travisci/travis-node-js /bin/bash
57+
docker run --name travis-debug -dit travisci/ci-garnet:packer-1496954857 /sbin/init
58+
docker exec -it travis-debug bash -l
59+
60+
# once inside, change to travis user, rather than root
61+
su - travis
62+
63+
# once on the travis user, make a clone of lighthouse and play around
5864
```
5965

60-
FWIW, the non-quay images mentioned in the official docs may be more recent. YMMV!
66+
```sh
67+
# you may also want to mount a local folder into your docker instance.
68+
# This will mount your local machines's ~/temp/trav folder into the container's /home/travis/mountpoint folder
69+
docker run -v $HOME/temp/trav:/home/travis/mountpoint --name travis-debug -dit travisci/ci-garnet:packer-1496954857 /sbin/init
70+
71+
```
6172

6273
You can then run the travis commands (e.g. `travis compile`) to install an environment and run the build script:
6374

0 commit comments

Comments
 (0)