Created
February 23, 2015 15:37
-
-
Save meatballhat/12997137db1a9394f39c to your computer and use it in GitHub Desktop.
Travis docker image usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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})" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
Were you able to successfully connect over ssh for any of the Travis Docker images?
Thanks,
Alex.