Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ fi

# Use latest released Debian as our base image
export DEBIAN_BASE_IMAGE="gcr.io/google-appengine/debian8:latest"
export FULL_BASE_IMAGE="${DOCKER_NAMESPACE}/python:${TAG}"
echo "Using base image name ${FULL_BASE_IMAGE}"
export STAGING_IMAGE="${DOCKER_NAMESPACE}/python:${TAG}"
echo "Using base image name ${STAGING_IMAGE}"

# Generate Dockerfiles
for outfile in \
Expand All @@ -120,7 +120,7 @@ for outfile in \
tests/google-cloud-python-system/Dockerfile \
tests/integration/Dockerfile \
; do
envsubst <"${outfile}".in >"${outfile}" '$DEBIAN_BASE_IMAGE $FULL_BASE_IMAGE $GOOGLE_CLOUD_PROJECT_FOR_TESTS'
envsubst <"${outfile}".in >"${outfile}" '$DEBIAN_BASE_IMAGE $STAGING_IMAGE $GOOGLE_CLOUD_PROJECT_FOR_TESTS'
done

# Build images and push to GCR
Expand Down
2 changes: 1 addition & 1 deletion tests/benchmark/Dockerfile.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ${FULL_BASE_IMAGE}
FROM ${STAGING_IMAGE}

# Install performance
RUN pip install performance
Expand Down
8 changes: 4 additions & 4 deletions tests/benchmark/benchmark_between_releases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

# Build the benchmark image for release 1 from Dockerfile
echo "Building image for release 1"
export FULL_BASE_IMAGE="${DOCKER_NAMESPACE}/python:${TAG1}"
envsubst <"Dockerfile".in >"Dockerfile" '$FULL_BASE_IMAGE'
export STAGING_IMAGE="${DOCKER_NAMESPACE}/python:${TAG1}"
envsubst <"Dockerfile".in >"Dockerfile" '$STAGING_IMAGE'
docker build --no-cache -t benchmark_1 .
rm Dockerfile

# Build the benchmark image for release 2 from Dockerfile
echo "Building image for release 2"
export FULL_BASE_IMAGE="${DOCKER_NAMESPACE}/python:${TAG2}"
envsubst <"Dockerfile".in >"Dockerfile" '$FULL_BASE_IMAGE'
export STAGING_IMAGE="${DOCKER_NAMESPACE}/python:${TAG2}"
envsubst <"Dockerfile".in >"Dockerfile" '$STAGING_IMAGE'
docker build --no-cache -t benchmark_2 .
rm Dockerfile

Expand Down
2 changes: 1 addition & 1 deletion tests/google-cloud-python-system/Dockerfile.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ${FULL_BASE_IMAGE}
FROM ${STAGING_IMAGE}

# Get the source.
RUN git clone --depth 1 https://github.com/GoogleCloudPlatform/google-cloud-python.git
Expand Down
2 changes: 1 addition & 1 deletion tests/google-cloud-python/Dockerfile.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ${FULL_BASE_IMAGE}
FROM ${STAGING_IMAGE}

# Get the source.
RUN git clone --depth 1 https://github.com/GoogleCloudPlatform/google-cloud-python.git
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/Dockerfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM ${FULL_BASE_IMAGE}
FROM ${STAGING_IMAGE}

COPY . /app
WORKDIR /app
Expand Down