mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-23 02:26:52 +00:00
upgrading sample-apiserver to 1.10
This commit is contained in:
parent
c4b4025ca4
commit
54ba2ae877
@ -12,7 +12,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
FROM k8s.gcr.io/kube-cross:v1.10.4-1 as build_k8s_1_7_sample_apiserver
|
FROM k8s.gcr.io/kube-cross:v1.10.4-1 as build_k8s_1_10_sample_apiserver
|
||||||
|
|
||||||
ENV GOPATH /go
|
ENV GOPATH /go
|
||||||
RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin
|
RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin
|
||||||
@ -23,7 +23,7 @@ ENV PATH $GOPATH/bin:$PATH
|
|||||||
# API Server using the current Aggregator"
|
# API Server using the current Aggregator"
|
||||||
RUN go get -d k8s.io/sample-apiserver \
|
RUN go get -d k8s.io/sample-apiserver \
|
||||||
&& cd ${GOPATH}/src/k8s.io/sample-apiserver \
|
&& cd ${GOPATH}/src/k8s.io/sample-apiserver \
|
||||||
&& git checkout --track origin/release-1.7 \
|
&& git checkout --track origin/release-1.10 \
|
||||||
&& CGO_ENABLED=0 GOOS=linux GOARCH=BASEARCH go install .
|
&& CGO_ENABLED=0 GOOS=linux GOARCH=BASEARCH go install .
|
||||||
|
|
||||||
# for arm, go install uses go/bin/linux_arm, so just find the file and copy it to the root so
|
# for arm, go install uses go/bin/linux_arm, so just find the file and copy it to the root so
|
||||||
@ -31,6 +31,6 @@ RUN go get -d k8s.io/sample-apiserver \
|
|||||||
RUN find /go/bin -name sample-apiserver -exec cp {} / \;
|
RUN find /go/bin -name sample-apiserver -exec cp {} / \;
|
||||||
|
|
||||||
FROM BASEIMAGE
|
FROM BASEIMAGE
|
||||||
COPY --from=build_k8s_1_7_sample_apiserver /sample-apiserver /sample-apiserver
|
COPY --from=build_k8s_1_10_sample_apiserver /sample-apiserver /sample-apiserver
|
||||||
|
|
||||||
ENTRYPOINT ["/sample-apiserver"]
|
ENTRYPOINT ["/sample-apiserver"]
|
||||||
|
@ -1 +1 @@
|
|||||||
1.0
|
1.10
|
||||||
|
Loading…
Reference in New Issue
Block a user