Skip to content

Instantly share code, notes, and snippets.

@meatballhat
Created February 23, 2015 15:37
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meatballhat/12997137db1a9394f39c to your computer and use it in GitHub Desktop.
Save meatballhat/12997137db1a9394f39c to your computer and use it in GitHub Desktop.
Travis docker image usage
#!/usr/bin/env bash
set -o errexit
set -o xtrace
# Provide the "language" as $TRAVIS_LANGUAGE or first positional argument. Available languages
# at the time of this writing are:
#
# android
# erlang
# go
# haskell
# jvm
# node-js
# perl
# php
# python
# ruby
#
: ${TRAVIS_LANGUAGE:=$1}
docker pull quay.io/travisci/travis-${TRAVIS_LANGUAGE}:latest
docker run --name travis_${TRAVIS_LANGUAGE} -d quay.io/travisci/travis-${TRAVIS_LANGUAGE}:latest
# The container is a "mini VM" style :-O, and as such has sshd running.
echo "Connect to the ${TRAVIS_LANGUAGE} VM with password 'travis':"
echo "ssh travis@$(docker inspect --format="{{.NetworkSettings.IPAddress}}" travis_${TRAVIS_LANGUAGE})"
@alza-bitz
Copy link

Hi there,

I'm trying to follow these instructions, but with the Travis Docker images I tried (python, ruby, latest versions), the container starts ok but I cannot connect over ssh. I get the following error:

packet_write_wait: Connection to <docker-ip> port 22: Broken pipe

Were you able to successfully connect over ssh for any of the Travis Docker images?

Thanks,

Alex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment