forked from kubernetes/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request kubernetes#30424 from fejta/e2e2
Automatic merge from submit-queue Create a kubekins-e2e image with runner and dependencies Update dockerized-e2e-runner.sh to just run an image with the appropriate e2e environment variables set. e2e-runner.sh, upload-to-gcs.sh and e2e.go now live inside the container.
- Loading branch information
Showing
6 changed files
with
145 additions
and
30 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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Copyright 2016 The Kubernetes Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# This file creates a build environment for building and running kubernetes | ||
# unit and integration tests | ||
|
||
FROM gcr.io/google-containers/kubekins-test:v20160810 | ||
MAINTAINER Erick Fejta <fejta@google.com> | ||
|
||
# Defaults of all e2e runs | ||
ENV E2E_UP=true \ | ||
E2E_TEST=true \ | ||
E2E_DOWN=true | ||
|
||
# Customize these as appropriate | ||
ENV E2E_PUBLISH_GREEN_VERSION=false \ | ||
GINKGO_PARALLEL_NODES=25 \ | ||
GINKGO_TEST_ARGS="--ginkgo.focus=\[Conformance\]" \ | ||
INSTANCE_PREFIX=jenkins-e2e \ | ||
KUBERNETES_PROVIDER=gce | ||
|
||
# Variables specific to GCP | ||
ENV FAIL_ON_GCP_RESOURCE_LEAK=true \ | ||
JOB_NAME=kubernetes-e2e-gce-conformance \ | ||
KUBE_GCE_INSTANCE_PREFIX=jenkins-e2e \ | ||
KUBE_GCE_NETWORK=jenkins-e2e \ | ||
KUBE_GCE_ZONE=us-central1-f | ||
|
||
# Variable specific to the machine: | ||
# KUBEKINS_SERVICE_ACCOUNT_FILE | ||
# JENKINS_GCE_SSH_PRIVATE_KEY_FILE | ||
# JENKINS_GCE_SSH_PUBLIC_KEY_FILE | ||
# JENKINS_AWS_SSH_PRIVATE_KEY_FILE | ||
# JENKINS_AWS_SSH_PUBLIC_KEY_FILE | ||
# JENKINS_AWS_CREDENTIALS_FILE | ||
|
||
ADD ["sh2ju.sh", "e2e-runner.sh", "e2e.go", "upload-to-gcs.sh", "${WORKSPACE}/"] | ||
|
||
ENTRYPOINT ["bash", "-c", "${WORKSPACE}/e2e-runner.sh"] |
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,43 @@ | ||
# Copyright 2016 The Kubernetes Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
IMG = gcr.io/google-containers/kubekins-e2e | ||
TAG = $(shell date +v%Y%m%d) | ||
|
||
e2e: | ||
cp ../../e2e.go . | ||
|
||
e2e-runner: | ||
cp ../e2e-runner.sh . | ||
|
||
sh2ju: | ||
cp ../../../third_party/forked/shell2junit/sh2ju.sh . | ||
|
||
upload-to-gcs.sh: | ||
cp ../upload-to-gcs.sh . | ||
|
||
clean: | ||
rm -rf e2e.go e2e-runner.sh sh2ju.sh upload-to-gcs.sh | ||
|
||
all: push | ||
|
||
build: e2e e2e-runner sh2ju upload-to-gcs | ||
docker build -t $(IMG):$(TAG) . | ||
docker tag -f $(IMG):$(TAG) $(IMG):latest | ||
@echo Built $(IMG):$(TAG) and tagged with latest | ||
|
||
push: build | ||
gcloud docker push $(IMG):$(TAG) | ||
gcloud docker push $(IMG):latest | ||
@echo Pushed $(IMG) with :latest and :$(TAG) tags |
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