Skip to content
This repository was archived by the owner on Feb 9, 2026. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
148 commits
Select commit Hold shift + click to select a range
9639cb7
Refactor CertUtils. Support ECDSA and PrivateKey.
KostyaSha Mar 27, 2016
37afc15
[maven-release-plugin] prepare for next development iteration
Jun 3, 2016
2f3d90c
Update CHANGELOG.md
marcuslinke Jun 3, 2016
9a59b10
Update README.md
marcuslinke Jun 3, 2016
0a1b34c
Update README.md
marcuslinke Jun 3, 2016
3a33182
Reorganize image build tests
Jun 5, 2016
4280ee7
Use expectExceptions in test annotation
Jun 7, 2016
84cf070
Fix test for v.1.23
Jun 7, 2016
4f11537
Merge branch 'refactorKeys' of https://github.com/KostyaSha/docker-ja…
Jun 7, 2016
63f276a
Fix load certs from file system
Jun 7, 2016
4f1de7b
Merge branch 'KostyaSha-refactorKeys't push origin master
Jun 7, 2016
fefd160
Update CHANGELOG.md
marcuslinke Jun 7, 2016
6058156
Update CHANGELOG.md
marcuslinke Jun 7, 2016
3a2dcc4
Implemented Device parser (#593)
KostyaSha Jun 8, 2016
72597d7
Complement logging tests
Jun 9, 2016
9ae14cb
Refactor configuration of SSL to allow override with custom config (#…
marcuslinke Jun 13, 2016
006fd9b
Update CHANGELOG.md
marcuslinke Jun 13, 2016
2f8d317
Update CHANGELOG.md
KostyaSha Jun 13, 2016
efb4245
Allow null value. boolean <-> Boolean error
KostyaSha Jun 15, 2016
019770c
Fix tests
KostyaSha Jun 16, 2016
92e32a6
Merge pull request #605 from KostyaSha/FBAnnotations
KostyaSha Jun 17, 2016
2116ae0
Docker travis for ITs (#606)
KostyaSha Jun 17, 2016
2bd837f
Coverity (#613)
KostyaSha Jun 20, 2016
197e72c
Versioneye references.
KostyaSha Jun 29, 2016
2e79af9
Update README.md
KostyaSha Jul 4, 2016
4b2ffe2
Typo
KostyaSha Jul 4, 2016
04fa7e8
Fix it2 (#621)
KostyaSha Jul 4, 2016
0890ec3
[CID-125822] Fix resource leak
KostyaSha Jul 4, 2016
f74fc3d
Don't upload coverity for PRs
KostyaSha Jul 4, 2016
ada726b
Update badges
KostyaSha Jul 4, 2016
199e27d
Move scripts to dir. Fix coverity skip.
KostyaSha Jul 4, 2016
df4466a
Merge pull request #623 from KostyaSha/fixCoverity
KostyaSha Jul 4, 2016
a4d5d85
Fix file perm.
KostyaSha Jul 5, 2016
51e923b
Merge pull request #626 from KostyaSha/fixCoverity
KostyaSha Jul 5, 2016
898d6fa
require bash?
KostyaSha Jul 5, 2016
e5a1cd8
Merge pull request #622 from docker-java/fixIT3
KostyaSha Jul 7, 2016
fba9639
Update deps. Fix IT.
KostyaSha Jun 20, 2016
52ff6d8
revert dep and test
KostyaSha Jul 7, 2016
19d5f84
Fix version
KostyaSha Jul 7, 2016
1a148f2
Skip auth tests
KostyaSha Jul 7, 2016
3a782a9
Enable cache
KostyaSha Jul 7, 2016
31d5627
Disable experimental/testing
KostyaSha Jul 7, 2016
007f668
run codecov only on one run
KostyaSha Jul 7, 2016
3854e2e
revert typo
KostyaSha Jul 7, 2016
24d3a15
tune timeout
KostyaSha Jul 7, 2016
d53eef0
Merge pull request #631 from KostyaSha/fixIT-rebase
KostyaSha Jul 8, 2016
8837ac3
Fix shell scripting
KostyaSha Jul 8, 2016
1c14bc3
Fix for #625 (#630)
tejksat Jul 9, 2016
1923e7e
Update CHANGELOG.md
marcuslinke Jul 9, 2016
5f9e2bf
Change serial until we didn't ship release
KostyaSha Jul 12, 2016
2f50240
Test also on 1.10
KostyaSha Jul 12, 2016
d803c46
Implement POST /images/load endpoint (#627)
leonsabr Jul 14, 2016
8be5180
Update CHANGELOG.md
KostyaSha Jul 14, 2016
369a12e
Try cache coverity (#636)
KostyaSha Jul 15, 2016
a87b789
Update travisci_build_coverity_scan.sh
KostyaSha Jul 15, 2016
7bcf6fb
Update travisci_build_coverity_scan.sh
KostyaSha Jul 15, 2016
a57fec6
Add second run that should be successfull
KostyaSha Jul 15, 2016
236e1be
Try debug bad travis download
KostyaSha Jul 21, 2016
5dbde94
Fix IT run when it shouldn't
KostyaSha Jul 21, 2016
4db9bee
fix concurrency issue
KostyaSha Jul 21, 2016
582331a
Verify coverity before not downloading it
KostyaSha Jul 21, 2016
eacea85
Don't spam with warnings
KostyaSha Jul 22, 2016
59db6da
Try limit threadCount
KostyaSha Jul 22, 2016
51fe92d
Update travisci_build_coverity_scan.sh
KostyaSha Jul 22, 2016
9578981
Update netty
KostyaSha Jul 22, 2016
22fe7a6
Update travisci_build_coverity_scan.sh
KostyaSha Jul 22, 2016
71cc337
Merge pull request #640 from docker-java/issues/632
KostyaSha Jul 22, 2016
83ac192
Name classes normally (#639)
KostyaSha Jul 22, 2016
e8b8519
[tests] Added integration tests for pause / unpause commands (#647)
Jul 29, 2016
d78a1cf
Add 1.12.0 for tests
KostyaSha Jul 29, 2016
4c663e1
Fix test for different API behaviour. (#642)
KostyaSha Aug 1, 2016
6195eb8
[tests] use expectedExceptions (#649)
Aug 1, 2016
b1ed66b
Fix for #643 (#648)
tejksat Aug 1, 2016
5cf12cf
Update CHANGELOG.md
KostyaSha Aug 1, 2016
1221edd
Relax checkstyle
KostyaSha Aug 1, 2016
6d8476e
Document debug case (#641)
KostyaSha Aug 1, 2016
227ca79
Disable java8 doc lint
KostyaSha Aug 1, 2016
0d9c3c3
[maven-release-plugin] prepare release 3.0.1
KostyaSha Aug 1, 2016
4bd03a7
[maven-release-plugin] prepare for next development iteration
KostyaSha Aug 1, 2016
fa3310d
Update for release
KostyaSha Aug 1, 2016
c2e4f2c
Include integration tests (#652)
KostyaSha Aug 1, 2016
da6b013
Fix checkstyle of GoLangFileMatch
tejksat Aug 2, 2016
b87e0d6
Fixed a bad implimentation reference
monksy Aug 2, 2016
f55603c
Merge pull request #655 from monksy/patch-1
KostyaSha Aug 2, 2016
32647b9
Merge pull request #653 from tejksat/fixCheckstyleOfGoLangFileMatch
KostyaSha Aug 2, 2016
fd421d8
Update README.md
KostyaSha Aug 3, 2016
f355e6e
Ability to set container shm size (#659)
selslack Aug 10, 2016
5893681
[maven-release-plugin] prepare release 3.0.2
KostyaSha Aug 11, 2016
701aa0b
[maven-release-plugin] prepare for next development iteration
KostyaSha Aug 11, 2016
ee76c14
Update CHANGELOG.md
KostyaSha Aug 11, 2016
e8f82e8
Update .travis.yml (#654)
KostyaSha Aug 14, 2016
7af8f8f
Fix body request for jersey.
KostyaSha Aug 14, 2016
8a3108f
Fix integration tests
KostyaSha Aug 14, 2016
6990804
Fix network test.
KostyaSha Aug 14, 2016
a68cf85
Fix create with alias tests.
KostyaSha Aug 14, 2016
af891e2
Fix test for 1.24
KostyaSha Aug 14, 2016
78a2a00
Fix typo
KostyaSha Aug 14, 2016
a520aaa
Fix test again?
KostyaSha Aug 14, 2016
0eb7bd6
Merge pull request #663 from KostyaSha/fix24
KostyaSha Aug 14, 2016
03b1c72
Update CHANGELOG.md
KostyaSha Aug 15, 2016
ec124ae
[maven-release-plugin] prepare release 3.0.3
KostyaSha Aug 15, 2016
76bfdc9
[maven-release-plugin] prepare for next development iteration
KostyaSha Aug 15, 2016
03b8bb0
Don't fail build because of coverity
KostyaSha Aug 15, 2016
26c0e27
Adjust developers
KostyaSha Aug 15, 2016
b93aa61
Merge pull request #665 from KostyaSha/conditionCoverity
KostyaSha Aug 15, 2016
f282617
Update README.md
KostyaSha Aug 15, 2016
b93d063
Don't hide utils
KostyaSha Aug 15, 2016
d68ea35
Merge pull request #666 from KostyaSha/publicUtils
KostyaSha Aug 15, 2016
203fa39
Update CHANGELOG.md
KostyaSha Aug 15, 2016
d2b511f
[maven-release-plugin] prepare release 3.0.4
KostyaSha Aug 15, 2016
f751dc2
[maven-release-plugin] prepare for next development iteration
KostyaSha Aug 15, 2016
36d17ca
Update devel.adoc
KostyaSha Aug 16, 2016
e95f786
Update Events to 1.24 model (#669)
KostyaSha Aug 17, 2016
bb83b03
Update CHANGELOG.md
KostyaSha Aug 17, 2016
af8374f
[maven-release-plugin] prepare release 3.0.5
KostyaSha Aug 17, 2016
8c456c2
[maven-release-plugin] prepare for next development iteration
KostyaSha Aug 17, 2016
96d7ddb
Make all models serializable
KostyaSha Aug 16, 2016
b480281
Merge pull request #667 from KostyaSha/serializable
KostyaSha Aug 18, 2016
0183bd6
Update CHANGELOG.md
KostyaSha Aug 18, 2016
e7c5f27
Typo
KostyaSha Aug 18, 2016
75309ff
Add maven-central link
KostyaSha Aug 18, 2016
c8ab23f
Fix for #670 (#680)
tejksat Aug 28, 2016
f44616f
Fix #682 - Add LogPath to docker inspect response (#683)
jkubrynski Aug 28, 2016
bcb2ab9
Update CHANGELOG.md
KostyaSha Aug 28, 2016
d9f6969
Wait more for this test
KostyaSha Aug 28, 2016
eaef1ac
Merge pull request #685 from docker-java/test/stdin
KostyaSha Aug 28, 2016
615c89f
Fix for #687
tejksat Aug 30, 2016
5a0c696
Merge pull request #689 from tejksat/fixHelloWorldHeisentest
KostyaSha Aug 30, 2016
74d506d
Fix http response input stream resource leak (#633)
tejksat Sep 5, 2016
d07e2f6
Bugfix:donot throw RuntimeException when a error occured in awaitComp…
iGabon Sep 9, 2016
95e5075
Update CHANGELOG.md
KostyaSha Sep 9, 2016
d39d7f2
Fix issue with jersey and unix domain sockets (#697)
marcuslinke Sep 10, 2016
1bfe308
Allow to configure connection pool timeout (#703)
martiner Sep 12, 2016
c317163
Update CHANGELOG.md
KostyaSha Sep 13, 2016
03181fe
[maven-release-plugin] prepare release 3.0.6
KostyaSha Sep 13, 2016
c3e03be
[maven-release-plugin] prepare for next development iteration
KostyaSha Sep 13, 2016
450a516
Update .travis.yml
KostyaSha Sep 13, 2016
419900d
Merge pull request #704 from docker-java/tests/1.12.1
KostyaSha Sep 14, 2016
305b73a
Label image during build #681 (#684)
cberes Sep 29, 2016
1ec83d6
Update CHANGELOG.md
KostyaSha Sep 29, 2016
0699878
Expose 'User' property on ExecCreateCmd (#707) (#708)
cdancy Sep 30, 2016
b3be4fb
Update CHANGELOG.md
KostyaSha Sep 30, 2016
5736b4b
Support volumes propagation flags (Issue 554) (#705)
Hendrik-H Oct 7, 2016
75e9a2c
Expose netty connect timeout (#725)
marcuslinke Oct 27, 2016
3c04924
Fixed Docker Remote API link (#747)
ooxi Nov 25, 2016
15aa30e
Fix Maven package version (#748)
ooxi Nov 25, 2016
2008c99
Merge pull request #1 from docker-java/master
labkey-matthewb Jan 4, 2017
6744a27
Merge branch 'withSecurityOpt' into master
labkey-matthewb Jan 4, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ target
*.log

#Ignore Test Output
test-output
test-output
/.checkstyle
49 changes: 47 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,52 @@
sudo: required
dist: trusty
language: java

services:
- docker

jdk:
- oraclejdk7

install: true

env:
global:
- DOCKER_TLS_VERIFY=""
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "GonzmzvnXsTNQV+6sKtBSSPiwbpMZjxumNt5LFp1g77/afLxw9kl2EQOXbUe308vFOwRVqeY7drBvNJa8aJkTUClfMaGRjfZ9DUwm6doMKMUYrdEkYoQTcH7yDX5K5w9MT6m+Izj+BK2gB7nK3yFlYG6COeXCdFbQ4/cf3/xfRc="
- COVERITY_SCAN_PROJECT_NAME="docker-java/docker-java"
- COVERITY_SCAN_BRANCH_PATTERN="master"
- COVERITY_SCAN_NOTIFICATION_EMAIL="kanstantsin.sha@gmail.com"

matrix:
- repo="main" DOCKER_HOST="tcp://127.0.0.1:2375" DOCKER_VERSION="1.12.1-0~trusty" CODECOV=true
- repo="main" DOCKER_HOST="unix:///var/run/docker.sock" DOCKER_VERSION="1.12.1-0~trusty" CODECOV=true
- repo="main" DOCKER_HOST="tcp://127.0.0.1:2375" DOCKER_VERSION="1.11.2-0~trusty" DEPLOY=true COVERITY=true CODECOV=true
- repo="main" DOCKER_HOST="unix:///var/run/docker.sock" DOCKER_VERSION="1.11.2-0~trusty" CODECOV=true
- repo="main" DOCKER_HOST="tcp://127.0.0.1:2375" DOCKER_VERSION="1.10.3-0~trusty" CODECOV=true
- repo="main" DOCKER_HOST="unix:///var/run/docker.sock" DOCKER_VERSION="1.10.3-0~trusty" CODECOV=true
# - repo="testing" DOCKER_HOST="tcp://127.0.0.1:2375"
# - repo="testing" DOCKER_HOST="unix:///var/run/docker.sock"
# - repo="experimental" DOCKER_HOST="tcp://127.0.0.1:2375"
# - repo="experimental" DOCKER_HOST="unix:///var/run/docker.sock"

cache:
directories:
- $HOME/.travis_cache
- /tmp/coverity-cache
- $HOME/.m2 # install will pollute it

before_install:
- pip install --user codecov
- pip install --user codecov
- ./.travis/travis-before-install.sh

script:
- ./.travis/travis-script.sh

after_success:
- ./travis-after-success.sh
- ./.travis/travis-after-success.sh

after_script:
- sudo cat /var/log/upstart/docker.log
313 changes: 313 additions & 0 deletions .travis/get-docker-com.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,313 @@
#!/bin/sh
set -e
#
# This script is meant for quick & easy install via:
# 'curl -sSL https://get.docker.com/ | sh'
# or:
# 'wget -qO- https://get.docker.com/ | sh'
#
# For test builds (ie. release candidates):
# 'curl -fsSL https://test.docker.com/ | sh'
# or:
# 'wget -qO- https://test.docker.com/ | sh'
#
# For experimental builds:
# 'curl -fsSL https://experimental.docker.com/ | sh'
# or:
# 'wget -qO- https://experimental.docker.com/ | sh'
#
# Docker Maintainers:
# To update this script on https://get.docker.com,
# use hack/release.sh during a normal release,
# or the following one-liner for script hotfixes:
# aws s3 cp --acl public-read hack/install.sh s3://get.docker.com/index
#

url="https://get.docker.com/"
apt_url="https://apt.dockerproject.org"
yum_url="https://yum.dockerproject.org"
gpg_fingerprint="58118E89F3A912897C070ADBF76221572C52609D"

key_servers="
ha.pool.sks-keyservers.net
pgp.mit.edu
keyserver.ubuntu.com
"

command_exists() {
command -v "$@" > /dev/null 2>&1
}

semverParse() {
major="${1%%.*}"
minor="${1#$major.}"
minor="${minor%%.*}"
patch="${1#$major.$minor.}"
patch="${patch%%[-.]*}"
}

do_install() {
case "$(uname -m)" in
*64)
;;
*)
cat >&2 <<-'EOF'
Error: you are not using a 64bit platform.
Docker currently only supports 64bit platforms.
EOF
exit 1
;;
esac

user="$(id -un 2>/dev/null || true)"

sh_c='sh -c'
if [ "$user" != 'root' ]; then
if command_exists sudo; then
sh_c='sudo -E sh -c'
elif command_exists su; then
sh_c='su -c'
else
cat >&2 <<-'EOF'
Error: this installer needs the ability to run commands as root.
We are unable to find either "sudo" or "su" available to make this happen.
EOF
exit 1
fi
fi

curl=''
if command_exists curl; then
curl='curl -sSL'
elif command_exists wget; then
curl='wget -qO-'
elif command_exists busybox && busybox --list-modules | grep -q wget; then
curl='busybox wget -qO-'
fi

# check to see which repo they are trying to install from
if [ -z "$repo" ]; then
repo='main'
if [ "https://test.docker.com/" = "$url" ]; then
repo='testing'
elif [ "https://experimental.docker.com/" = "$url" ]; then
repo='experimental'
fi
fi

# perform some very rudimentary platform detection
lsb_dist=''
dist_version=''
if command_exists lsb_release; then
lsb_dist="$(lsb_release -si)"
fi
if [ -z "$lsb_dist" ] && [ -r /etc/lsb-release ]; then
lsb_dist="$(. /etc/lsb-release && echo "$DISTRIB_ID")"
fi
if [ -z "$lsb_dist" ] && [ -r /etc/debian_version ]; then
lsb_dist='debian'
fi
if [ -z "$lsb_dist" ] && [ -r /etc/fedora-release ]; then
lsb_dist='fedora'
fi
if [ -z "$lsb_dist" ] && [ -r /etc/oracle-release ]; then
lsb_dist='oracleserver'
fi
if [ -z "$lsb_dist" ]; then
if [ -r /etc/centos-release ] || [ -r /etc/redhat-release ]; then
lsb_dist='centos'
fi
fi
if [ -z "$lsb_dist" ] && [ -r /etc/os-release ]; then
lsb_dist="$(. /etc/os-release && echo "$ID")"
fi

lsb_dist="$(echo "$lsb_dist" | tr '[:upper:]' '[:lower:]')"

case "$lsb_dist" in

ubuntu)
if command_exists lsb_release; then
dist_version="$(lsb_release --codename | cut -f2)"
fi
if [ -z "$dist_version" ] && [ -r /etc/lsb-release ]; then
dist_version="$(. /etc/lsb-release && echo "$DISTRIB_CODENAME")"
fi
;;

debian)
dist_version="$(cat /etc/debian_version | sed 's/\/.*//' | sed 's/\..*//')"
case "$dist_version" in
8)
dist_version="jessie"
;;
7)
dist_version="wheezy"
;;
esac
;;

oracleserver)
# need to switch lsb_dist to match yum repo URL
lsb_dist="oraclelinux"
dist_version="$(rpm -q --whatprovides redhat-release --queryformat "%{VERSION}\n" | sed 's/\/.*//' | sed 's/\..*//' | sed 's/Server*//')"
;;

fedora|centos)
dist_version="$(rpm -q --whatprovides redhat-release --queryformat "%{VERSION}\n" | sed 's/\/.*//' | sed 's/\..*//' | sed 's/Server*//')"
;;

*)
if command_exists lsb_release; then
dist_version="$(lsb_release --codename | cut -f2)"
fi
if [ -z "$dist_version" ] && [ -r /etc/os-release ]; then
dist_version="$(. /etc/os-release && echo "$VERSION_ID")"
fi
;;


esac


# Run setup for each distro accordingly
case "$lsb_dist" in
ubuntu|debian)
export DEBIAN_FRONTEND=noninteractive

did_apt_get_update=
apt_get_update() {
if [ -z "$did_apt_get_update" ]; then
( set -x; $sh_c 'sleep 3; apt-get update' )
did_apt_get_update=1
fi
}

# aufs is preferred over devicemapper; try to ensure the driver is available.
if ! grep -q aufs /proc/filesystems && ! $sh_c 'modprobe aufs'; then
if uname -r | grep -q -- '-generic' && dpkg -l 'linux-image-*-generic' | grep -qE '^ii|^hi' 2>/dev/null; then
kern_extras="linux-image-extra-$(uname -r) linux-image-extra-virtual"

apt_get_update
( set -x; $sh_c 'sleep 3; apt-get install -y -q '"$kern_extras" ) || true

if ! grep -q aufs /proc/filesystems && ! $sh_c 'modprobe aufs'; then
echo >&2 'Warning: tried to install '"$kern_extras"' (for AUFS)'
echo >&2 ' but we still have no AUFS. Docker may not work. Proceeding anyways!'
( set -x; sleep 10 )
fi
else
echo >&2 'Warning: current kernel is not supported by the linux-image-extra-virtual'
echo >&2 ' package. We have no AUFS support. Consider installing the packages'
echo >&2 ' linux-image-virtual kernel and linux-image-extra-virtual for AUFS support.'
( set -x; sleep 10 )
fi
fi

# install apparmor utils if they're missing and apparmor is enabled in the kernel
# otherwise Docker will fail to start
if [ "$(cat /sys/module/apparmor/parameters/enabled 2>/dev/null)" = 'Y' ]; then
if command -v apparmor_parser >/dev/null 2>&1; then
echo 'apparmor is enabled in the kernel and apparmor utils were already installed'
else
echo 'apparmor is enabled in the kernel, but apparmor_parser missing'
apt_get_update
( set -x; $sh_c 'sleep 3; apt-get install -y -q apparmor' )
fi
fi

if [ ! -e /usr/lib/apt/methods/https ]; then
apt_get_update
( set -x; $sh_c 'sleep 3; apt-get install -y -q apt-transport-https ca-certificates' )
fi
if [ -z "$curl" ]; then
apt_get_update
( set -x; $sh_c 'sleep 3; apt-get install -y -q curl ca-certificates' )
curl='curl -sSL'
fi
(
set -x
for key_server in $key_servers ; do
$sh_c "apt-key adv --keyserver hkp://${key_server}:80 --recv-keys ${gpg_fingerprint}" && break
done
$sh_c "apt-key adv -k ${gpg_fingerprint} >/dev/null"
$sh_c "mkdir -p /etc/apt/sources.list.d"
$sh_c "echo deb [arch=$(dpkg --print-architecture)] ${apt_url}/repo ${lsb_dist}-${dist_version} ${repo} > /etc/apt/sources.list.d/docker.list"
$sh_c 'sleep 3; apt-get update'
if [ -z "$DOCKER_VERSION" ]; then
$sh_c 'apt-get -o Dpkg::Options::="--force-confnew" install -y -q docker-engine'
else
$sh_c "apt-get -o Dpkg::Options::=\"--force-confnew\" install -y -q docker-engine=$DOCKER_VERSION"
fi
)
exit 0
;;

fedora|centos|oraclelinux)
$sh_c "cat >/etc/yum.repos.d/docker-${repo}.repo" <<-EOF
[docker-${repo}-repo]
name=Docker ${repo} Repository
baseurl=${yum_url}/repo/${repo}/${lsb_dist}/${dist_version}
enabled=1
gpgcheck=1
gpgkey=${yum_url}/gpg
EOF
if [ "$lsb_dist" = "fedora" ] && [ "$dist_version" -ge "22" ]; then
(
set -x
$sh_c 'sleep 3; dnf -y -q install docker-engine'
)
else
(
set -x
$sh_c 'sleep 3; yum -y -q install docker-engine'
)
fi
exit 0
;;
gentoo)
if [ "$url" = "https://test.docker.com/" ]; then
# intentionally mixed spaces and tabs here -- tabs are stripped by "<<-'EOF'", spaces are kept in the output
cat >&2 <<-'EOF'

You appear to be trying to install the latest nightly build in Gentoo.'
The portage tree should contain the latest stable release of Docker, but'
if you want something more recent, you can always use the live ebuild'
provided in the "docker" overlay available via layman. For more'
instructions, please see the following URL:'

https://github.com/tianon/docker-overlay#using-this-overlay'

After adding the "docker" overlay, you should be able to:'

emerge -av =app-emulation/docker-9999'

EOF
exit 1
fi

(
set -x
$sh_c 'sleep 3; emerge app-emulation/docker'
)
exit 0
;;
esac

# intentionally mixed spaces and tabs here -- tabs are stripped by "<<-'EOF'", spaces are kept in the output
cat >&2 <<-'EOF'

Either your platform is not easily detectable, is not supported by this
installer script (yet - PRs welcome! [hack/install.sh]), or does not yet have
a package for Docker. Please visit the following URL for more detailed
installation instructions:

https://docs.docker.com/engine/installation/

EOF
exit 1
}

# wrapped up in a function so that we have some protection against only getting
# half the file during "curl | sh"
do_install
9 changes: 6 additions & 3 deletions travis-after-success.sh → .travis/travis-after-success.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#!/usr/bin/env bash

codecov
if [[ $TRAVIS_BRANCH == "master" ]] && [[ $TRAVIS_PULL_REQUEST == "false" ]];
if [[ $CODECOV == "true" ]]; then
codecov
fi

if [[ $TRAVIS_BRANCH == "master" ]] && [[ $TRAVIS_PULL_REQUEST == "false" ]] && [[ $DEPLOY == "true" ]];
then
cat << EOF >> ~/settings.xml
cat <<EOF >> ~/settings.xml
<settings>
<servers>
<server>
Expand Down
Loading
Loading