File tree 4 files changed +25
-2
lines changed
4 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,12 @@ RUN curl -LO https://github.com/kubernetes-sigs/kustomize/releases/download/v${K
46
46
chmod +x kustomize_${KUSTOMIZE_VERSION}_linux_amd64 && \
47
47
mv kustomize_${KUSTOMIZE_VERSION}_linux_amd64 /usr/local/bin/kustomize
48
48
49
+ RUN echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list \
50
+ && curl https://bazel.build/bazel-release.pub.gpg | apt-key add -
51
+
52
+ RUN apt-get update \
53
+ && apt-get install -y bazel
54
+
49
55
ENV PATH /usr/local/go/bin:/go/bin:/google-cloud-sdk/bin:$PATH
50
56
51
57
FROM runtime_deps as builder
Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : Pod
3
+ metadata :
4
+ name : bazel
5
+ spec :
6
+ containers :
7
+ - name : bazel
8
+ image : gcr.io/k8s-skaffold/skaffold-bazel
Original file line number Diff line number Diff line change @@ -2,12 +2,11 @@ apiVersion: skaffold/v1alpha2
2
2
kind : Config
3
3
build :
4
4
artifacts :
5
- - imageName : gcr.io/k8s-skaffold/skaffold-example
5
+ - imageName : gcr.io/k8s-skaffold/skaffold-bazel
6
6
workspace : .
7
7
bazel :
8
8
target : //:skaffold_example.tar
9
9
local : {}
10
10
deploy :
11
11
kubectl :
12
12
manifests :
13
- - ../getting-started/k8s-*
Original file line number Diff line number Diff line change @@ -161,6 +161,16 @@ func TestRun(t *testing.T) {
161
161
},
162
162
dir : "../examples/kustomize" ,
163
163
},
164
+ {
165
+ description : "bazel example" ,
166
+ args : []string {"run" },
167
+ pods : []testObject {
168
+ {
169
+ name : "bazel" ,
170
+ },
171
+ },
172
+ dir : "../examples/bazel" ,
173
+ },
164
174
{
165
175
description : "kaniko example" ,
166
176
args : []string {"run" },
You can’t perform that action at this time.
0 commit comments