File tree Expand file tree Collapse file tree 6 files changed +11
-11
lines changed
google-cloud-python-system Expand file tree Collapse file tree 6 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 108108
109109# Use latest released Debian as our base image
110110export DEBIAN_BASE_IMAGE=" gcr.io/google-appengine/debian8:latest"
111- export FULL_BASE_IMAGE =" ${DOCKER_NAMESPACE} /python:${TAG} "
112- echo " Using base image name ${FULL_BASE_IMAGE } "
111+ export STAGING_IMAGE =" ${DOCKER_NAMESPACE} /python:${TAG} "
112+ echo " Using base image name ${STAGING_IMAGE } "
113113
114114# Generate Dockerfiles
115115for outfile in \
@@ -120,7 +120,7 @@ for outfile in \
120120 tests/google-cloud-python-system/Dockerfile \
121121 tests/integration/Dockerfile \
122122 ; do
123- envsubst < " ${outfile} " .in > " ${outfile} " ' $DEBIAN_BASE_IMAGE $FULL_BASE_IMAGE $GOOGLE_CLOUD_PROJECT_FOR_TESTS'
123+ envsubst < " ${outfile} " .in > " ${outfile} " ' $DEBIAN_BASE_IMAGE $STAGING_IMAGE $GOOGLE_CLOUD_PROJECT_FOR_TESTS'
124124done
125125
126126# Build images and push to GCR
Original file line number Diff line number Diff line change 1- FROM ${FULL_BASE_IMAGE }
1+ FROM ${STAGING_IMAGE }
22
33# Install performance
44RUN pip install performance
Original file line number Diff line number Diff line change 22
33# Build the benchmark image for release 1 from Dockerfile
44echo " Building image for release 1"
5- export FULL_BASE_IMAGE =" ${DOCKER_NAMESPACE} /python:${TAG1} "
6- envsubst < " Dockerfile" .in > " Dockerfile" ' $FULL_BASE_IMAGE '
5+ export STAGING_IMAGE =" ${DOCKER_NAMESPACE} /python:${TAG1} "
6+ envsubst < " Dockerfile" .in > " Dockerfile" ' $STAGING_IMAGE '
77docker build --no-cache -t benchmark_1 .
88rm Dockerfile
99
1010# Build the benchmark image for release 2 from Dockerfile
1111echo " Building image for release 2"
12- export FULL_BASE_IMAGE =" ${DOCKER_NAMESPACE} /python:${TAG2} "
13- envsubst < " Dockerfile" .in > " Dockerfile" ' $FULL_BASE_IMAGE '
12+ export STAGING_IMAGE =" ${DOCKER_NAMESPACE} /python:${TAG2} "
13+ envsubst < " Dockerfile" .in > " Dockerfile" ' $STAGING_IMAGE '
1414docker build --no-cache -t benchmark_2 .
1515rm Dockerfile
1616
Original file line number Diff line number Diff line change 1- FROM ${FULL_BASE_IMAGE }
1+ FROM ${STAGING_IMAGE }
22
33# Get the source.
44RUN git clone --depth 1 https://github.com/GoogleCloudPlatform/google-cloud-python.git
Original file line number Diff line number Diff line change 1- FROM ${FULL_BASE_IMAGE }
1+ FROM ${STAGING_IMAGE }
22
33# Get the source.
44RUN git clone --depth 1 https://github.com/GoogleCloudPlatform/google-cloud-python.git
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- FROM ${FULL_BASE_IMAGE }
15+ FROM ${STAGING_IMAGE }
1616
1717COPY . /app
1818WORKDIR /app
You can’t perform that action at this time.
0 commit comments