mirror of https://github.com/k3s-io/k3s
Port some more images
parent
9b70ab1379
commit
c8a08afc8c
|
@ -0,0 +1,4 @@
|
|||
amd64=alpine:3.6
|
||||
arm=arm32v6/alpine:3.6
|
||||
arm64=arm64v8/alpine:3.6
|
||||
ppc64le=ppc64le/alpine:3.6
|
|
@ -12,9 +12,8 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
FROM alpine:3.5
|
||||
FROM BASEIMAGE
|
||||
|
||||
ADD no-snat-test-proxy /usr/bin/no-snat-test-proxy
|
||||
RUN chmod +x /usr/bin/no-snat-test-proxy
|
||||
COPY no-snat-test-proxy /
|
||||
|
||||
ENTRYPOINT ["/usr/bin/no-snat-test-proxy"]
|
||||
ENTRYPOINT ["/no-snat-test-proxy"]
|
||||
|
|
|
@ -12,18 +12,16 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
REGISTRY?=gcr.io/google_containers
|
||||
REGISTRY_TAG?=1.0.1
|
||||
ARCH?=amd64
|
||||
NAME?=no-snat-test-proxy
|
||||
BIN=no-snat-test-proxy
|
||||
ARCH ?= amd64
|
||||
TARGET ?= $(CURDIR)
|
||||
GOLANG_VERSION ?= latest
|
||||
|
||||
build:
|
||||
go build --ldflags '-linkmode external -extldflags "-static"' -o $(NAME) main.go
|
||||
docker build -t $(REGISTRY)/$(NAME)-$(ARCH):$(REGISTRY_TAG) .
|
||||
rm $(NAME)
|
||||
bin:
|
||||
docker run --rm -it -v $(TARGET):$(TARGET):Z -v `pwd`/../../../:/go/src/k8s.io/kubernetes:Z \
|
||||
golang:$(GOLANG_VERSION) \
|
||||
/bin/bash -c "\
|
||||
cd /go/src/k8s.io/kubernetes/test/images/no-snat-test-proxy && \
|
||||
CGO_ENABLED=0 GOARM=$(GOARM) GOARCH=$(ARCH) go build -a -installsuffix cgo --ldflags '-w' -o $(TARGET)/$(BIN)"
|
||||
|
||||
push: build
|
||||
gcloud docker -- push $(REGISTRY)/$(NAME)-$(ARCH):$(REGISTRY_TAG)
|
||||
|
||||
all: build
|
||||
.PHONY: build push
|
||||
.PHONY: bin
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
no-snat-test-proxy
|
|
@ -0,0 +1 @@
|
|||
1.0.2
|
|
@ -0,0 +1,4 @@
|
|||
amd64=alpine:3.6
|
||||
arm=arm32v6/alpine:3.6
|
||||
arm64=arm64v8/alpine:3.6
|
||||
ppc64le=ppc64le/alpine:3.6
|
|
@ -12,9 +12,8 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
FROM alpine:3.5
|
||||
FROM BASEIMAGE
|
||||
|
||||
ADD no-snat-test /usr/bin/no-snat-test
|
||||
RUN chmod +x /usr/bin/no-snat-test
|
||||
COPY no-snat-test /
|
||||
|
||||
ENTRYPOINT ["/usr/bin/no-snat-test"]
|
||||
ENTRYPOINT ["/no-snat-test"]
|
||||
|
|
|
@ -12,18 +12,16 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
REGISTRY?=gcr.io/google_containers
|
||||
REGISTRY_TAG?=1.0.1
|
||||
ARCH?=amd64
|
||||
NAME?=no-snat-test
|
||||
BIN=no-snat-test
|
||||
ARCH ?= amd64
|
||||
TARGET ?= $(CURDIR)
|
||||
GOLANG_VERSION ?= latest
|
||||
|
||||
build:
|
||||
go build --ldflags '-linkmode external -extldflags "-static"' -o $(NAME) main.go
|
||||
docker build -t $(REGISTRY)/$(NAME)-$(ARCH):$(REGISTRY_TAG) .
|
||||
rm $(NAME)
|
||||
bin:
|
||||
docker run --rm -it -v $(TARGET):$(TARGET):Z -v `pwd`/../../../:/go/src/k8s.io/kubernetes:Z \
|
||||
golang:$(GOLANG_VERSION) \
|
||||
/bin/bash -c "\
|
||||
cd /go/src/k8s.io/kubernetes/test/images/no-snat-test && \
|
||||
CGO_ENABLED=0 GOARM=$(GOARM) GOARCH=$(ARCH) go build -a -installsuffix cgo --ldflags '-w' -o $(TARGET)/$(BIN)"
|
||||
|
||||
push: build
|
||||
gcloud docker -- push $(REGISTRY)/$(NAME)-$(ARCH):$(REGISTRY_TAG)
|
||||
|
||||
all: build
|
||||
.PHONY: build push
|
||||
.PHONY: bin
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
no-snat-test
|
|
@ -0,0 +1 @@
|
|||
1.0.2
|
|
@ -0,0 +1,2 @@
|
|||
amd64=nvidia/cuda:8.0-devel-ubuntu16.04
|
||||
ppc64le=nvidia/cuda-ppc64le:8.0-devel-ubuntu16.04
|
|
@ -12,7 +12,9 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
FROM nvidia/cuda:8.0-devel-ubuntu16.04
|
||||
FROM BASEIMAGE
|
||||
|
||||
CROSS_BUILD_COPY qemu-QEMUARCH-static /usr/bin/
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
cuda-samples-$CUDA_PKG_VERSION && \
|
||||
|
@ -21,4 +23,4 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||
WORKDIR /usr/local/cuda/samples/0_Simple/vectorAdd
|
||||
RUN make
|
||||
|
||||
CMD ./vectorAdd
|
||||
CMD ./vectorAdd
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
# Copyright 2017 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.
|
||||
|
||||
.PHONY: all push build
|
||||
|
||||
TAG ?= v0.1
|
||||
|
||||
REGISTRY ?= gcr.io/google-containers
|
||||
IMAGE = $(REGISTRY)/cuda-vector-add
|
||||
|
||||
build:
|
||||
docker build --pull -t $(IMAGE):$(TAG) .
|
||||
|
||||
push:
|
||||
gcloud docker -- push $(IMAGE):$(TAG)
|
||||
|
||||
all: build
|
|
@ -0,0 +1 @@
|
|||
cuda-vector-add
|
|
@ -0,0 +1 @@
|
|||
v0.2
|
|
@ -0,0 +1,4 @@
|
|||
amd64=alpine:3.6
|
||||
arm=arm32v6/alpine:3.6
|
||||
arm64=arm64v8/alpine:3.6
|
||||
ppc64le=ppc64le/alpine:3.6
|
|
@ -12,7 +12,9 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
FROM alpine:3.5
|
||||
FROM BASEIMAGE
|
||||
|
||||
CROSS_BUILD_COPY qemu-QEMUARCH-static /usr/bin/
|
||||
|
||||
RUN apk add --no-cache redis
|
||||
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
# Copyright 2017 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.
|
||||
|
||||
TAG ?= e2e
|
||||
PREFIX ?= gcr.io/k8s-testimages
|
||||
|
||||
all: push
|
||||
|
||||
image:
|
||||
docker build --pull -t $(PREFIX)/redis:$(TAG) .
|
||||
|
||||
push: image
|
||||
gcloud docker -- push $(PREFIX)/redis:$(TAG)
|
||||
|
||||
clean:
|
|
@ -0,0 +1 @@
|
|||
redis
|
|
@ -0,0 +1 @@
|
|||
0.1
|
Loading…
Reference in New Issue