forked from kubernetes/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UPSTREAM: <carry>: Enable build test and verify
- Loading branch information
Showing
16 changed files
with
222 additions
and
118 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
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,21 @@ | ||
#!/usr/bin/env bash | ||
|
||
STARTTIME=$(date +%s) | ||
|
||
# shellcheck source=openshift-hack/lib/init.sh | ||
source "$(dirname "${BASH_SOURCE[0]}")/lib/init.sh" | ||
|
||
pushd "${OS_ROOT}" > /dev/null || exit 1 | ||
make all WHAT='cmd/kube-apiserver cmd/kube-controller-manager cmd/kube-scheduler cmd/kubelet' | ||
popd > /dev/null || exit 1 | ||
|
||
os::build::version::git_vars | ||
|
||
if [[ "${OS_GIT_TREE_STATE:-dirty}" == "clean" ]]; then | ||
# only when we are building from a clean state can we claim to | ||
# have created a valid set of binaries that can resemble a release | ||
mkdir -p "${OS_OUTPUT_RELEASEPATH}" | ||
echo "${OS_GIT_COMMIT}" > "${OS_OUTPUT_RELEASEPATH}/.commit" | ||
fi | ||
|
||
ret=$?; ENDTIME=$(date +%s); echo "$0 took $((ENDTIME - STARTTIME)) seconds"; exit "$ret" |
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 |
---|---|---|
@@ -1,16 +1,15 @@ | ||
FROM registry.svc.ci.openshift.org/ocp/builder:golang-1.12 AS builder | ||
WORKDIR /go/src/github.com/openshift/origin | ||
FROM registry.svc.ci.openshift.org/ocp/builder:golang-1.13 AS builder | ||
WORKDIR /go/src/github.com/openshift/kubernetes | ||
COPY . . | ||
RUN make build WHAT=cmd/openshift-tests; \ | ||
RUN make WHAT=test/e2e/e2e.test; \ | ||
mkdir -p /tmp/build; \ | ||
cp /go/src/github.com/openshift/origin/_output/local/bin/linux/$(go env GOARCH)/openshift-tests /tmp/build/openshift-tests | ||
cp /go/src/github.com/openshift/kubernetes/_output/local/bin/linux/$(go env GOARCH)/e2e.test /tmp/build/k8s-e2e-tests | ||
|
||
FROM registry.svc.ci.openshift.org/ocp/4.2:cli | ||
COPY --from=builder /tmp/build/openshift-tests /usr/bin/ | ||
COPY --from=builder /tmp/build/k8s-e2e-tests /usr/bin/ | ||
RUN yum install --setopt=tsflags=nodocs -y git gzip util-linux && yum clean all && rm -rf /var/cache/yum/* && \ | ||
git config --system user.name test && \ | ||
git config --system user.email test@test.com && \ | ||
chmod g+w /etc/passwd | ||
LABEL io.k8s.display-name="OpenShift End-to-End Tests" \ | ||
io.k8s.description="OpenShift is a platform for developing, building, and deploying containerized applications." \ | ||
io.openshift.tags="openshift,tests,e2e" | ||
LABEL io.k8s.display-name="Kubernetes End-to-End Tests" \ | ||
io.openshift.tags="k8s,tests,e2e" |
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
Oops, something went wrong.