Skip to content

Commit

Permalink
Merge pull request #818 from soltysh/bump_docker
Browse files Browse the repository at this point in the history
Merged by openshift-bot
  • Loading branch information
OpenShift Bot authored Nov 6, 2017
2 parents 9a1bd4d + 8e7b897 commit e3140d0
Show file tree
Hide file tree
Showing 687 changed files with 208,446 additions and 2,814 deletions.
163 changes: 129 additions & 34 deletions Godeps/Godeps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 49 additions & 0 deletions hack/godep-restore.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#!/bin/bash

# Sometimes godep needs 'other' remotes. So add those remotes
preload-remote() {
local orig_org="$1"
local orig_project="$2"
local alt_org="$3"
local alt_project="$4"

# Go get stinks, which is why we have the || true...
go get -d "${orig_org}/${orig_project}" &>/dev/null || true

repo_dir="${GOPATH}/src/${orig_org}/${orig_project}"
pushd "${repo_dir}" > /dev/null
git remote add "${alt_org}-remote" "https://${alt_org}/${alt_project}.git" > /dev/null || true
git remote update > /dev/null
popd > /dev/null
}

pin-godep() {
pushd "${GOPATH}/src/github.com/tools/godep" > /dev/null
git checkout "$1"
"${GODEP}" go install
popd > /dev/null
}

# build the godep tool
# Again go get stinks, hence || true
go get -u github.com/tools/godep 2>/dev/null || true
GODEP="${GOPATH}/bin/godep"

# Use to following if we ever need to pin godep to a specific version again
pin-godep 'v79'

# preload any odd-ball remotes
preload-remote "github.com/docker" "distribution" "github.com/openshift" "docker-distribution"

# fill out that nice clean place with the origin godeps
echo "Starting to download all godeps. This takes a while"

pushd "${GOPATH}/src/github.com/openshift/source-to-image" > /dev/null
"${GODEP}" restore "$@"
popd > /dev/null

echo "Download finished into ${GOPATH}"
echo "######## REMEMBER ########"
echo "You cannot just godep save ./..."
echo "You should use hack/godep-save.sh"
echo "hack/godep-save.sh forces the inclusion of packages that godep alone will not include"
29 changes: 29 additions & 0 deletions hack/godep-save.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash

pin-godep() {
pushd "${GOPATH}/src/github.com/tools/godep" > /dev/null
git checkout "$1"
"${GODEP}" go install
popd > /dev/null
}

# build the godep tool
# Again go get stinks, hence || true
go get -u github.com/tools/godep 2>/dev/null || true
GODEP="${GOPATH}/bin/godep"

# Use to following if we ever need to pin godep to a specific version again
pin-godep 'v79'

godep-save () {
echo "Deleting vendor/ and Godeps/"
rm -rf vendor/ Godeps/
echo "Running godep-save. This takes around 5 minutes."
"${GODEP}" save "$@"
}

missing-test-deps () {
go list -f $'{{range .Imports}}{{.}}\n{{end}}{{range .TestImports}}{{.}}\n{{end}}{{range .XTestImports}}{{.}}\n{{end}}' ./vendor/k8s.io/kubernetes/... | grep '\.' | grep -v github.com/openshift/origin | sort -u || true
}

godep-save -t ./...
4 changes: 2 additions & 2 deletions pkg/docker/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"strings"

"github.com/docker/distribution/reference"
"github.com/docker/docker/cliconfig"
cliconfig "github.com/docker/docker/cli/config"
"github.com/docker/engine-api/client"
"github.com/openshift/source-to-image/pkg/api"
s2ierr "github.com/openshift/source-to-image/pkg/errors"
Expand Down Expand Up @@ -394,7 +394,7 @@ func GetDefaultDockerConfig() *api.DockerConfig {

certPath := os.Getenv("DOCKER_CERT_PATH")
if certPath == "" {
certPath = cliconfig.ConfigDir()
certPath = cliconfig.Dir()
}

cfg.CertFile = filepath.Join(certPath, "cert.pem")
Expand Down
3 changes: 3 additions & 0 deletions vendor/github.com/Azure/go-ansiterm/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e3140d0

Please sign in to comment.