-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix Jenkins test * Update jenkins slave image version to 0.6
- Loading branch information
Showing
10 changed files
with
109 additions
and
42 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
PROJECT = endpoints-jenkins | ||
VERSION = 0.12 | ||
VERSION = 0.6 | ||
TOOLS_BUCKET = endpoints-tools | ||
|
||
# Note: The build directory is the root of the istio/test-infra repository, not ./ | ||
image: | ||
docker build -t debian-8 --build-arg TOOLS_BUCKET="${TOOLS_BUCKET}" -f debian-8.Dockerfile ../../ | ||
docker tag debian-8 gcr.io/$(PROJECT)/debian-8:$(VERSION) | ||
docker tag debian-8 gcr.io/$(PROJECT)/debian-8:latest | ||
docker build -t debian-9 --build-arg TOOLS_BUCKET="${TOOLS_BUCKET}" -f debian-9.Dockerfile ../../ | ||
docker tag debian-9 gcr.io/$(PROJECT)/debian-9:$(VERSION) | ||
docker tag debian-9 gcr.io/$(PROJECT)/debian-9:latest | ||
|
||
|
||
push: | ||
gcloud docker -- push gcr.io/$(PROJECT)/debian-8:$(VERSION) | ||
gcloud docker -- push gcr.io/$(PROJECT)/debian-8:latest | ||
push: image | ||
docker push gcr.io/$(PROJECT)/debian-9:$(VERSION) | ||
docker push gcr.io/$(PROJECT)/debian-9:latest | ||
|
||
|
||
.PHONY: image push |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#!/bin/bash | ||
# | ||
# Copyright (C) Extensible Service Proxy Authors | ||
# All rights reserved. | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions | ||
# are met: | ||
# 1. Redistributions of source code must retain the above copyright | ||
# notice, this list of conditions and the following disclaimer. | ||
# 2. Redistributions in binary form must reproduce the above copyright | ||
# notice, this list of conditions and the following disclaimer in the | ||
# documentation and/or other materials provided with the distribution. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND | ||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | ||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
# SUCH DAMAGE. | ||
# | ||
################################################################################ | ||
# | ||
# May require sudo login. | ||
|
||
if [[ "$(uname)" != "Linux" ]]; then | ||
echo "Run on Linux only." | ||
exit 1 | ||
fi | ||
|
||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" | ||
. ${DIR}/all-utilities || { echo "Cannot load Bash utilities" ; exit 1 ; } | ||
|
||
# asan tests only works for 4.9 | ||
GCC_VERSION='4.9' | ||
|
||
function install_gcc() { | ||
echo "Installing gcc-${GCC_VERSION}" | ||
clear_apt | ||
echo "deb http://ftp.us.debian.org/debian/ jessie main contrib non-free" >> /etc/apt/sources.list | ||
echo "deb-src http://ftp.us.debian.org/debian/ jessie main contrib non-free" >> /etc/apt/sources.list | ||
apt update | ||
apt -y install g++-${GCC_VERSION} | ||
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-${GCC_VERSION} 1000 | ||
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${GCC_VERSION} 1000 | ||
update-alternatives --config gcc | ||
update-alternatives --config g++ | ||
return 0 | ||
} | ||
|
||
|
This file contains 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
This file contains 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