File tree 2 files changed +47
-0
lines changed
2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Copyright 2018 The Jetstack cert-manager contributors.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ FROM alpine:3.7
16
+
17
+ RUN apk add --no-cache ca-certificates && \
18
+ addgroup -S user && adduser -S -G user user
19
+
20
+ USER user
Original file line number Diff line number Diff line change
1
+ # Copyright 2016 The Kubernetes Authors.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ IMG = gcr.io/jetstack-build-infra/bazelbuild
16
+
17
+ # TODO(bentheelder): retire some of these as they become unnecessary
18
+ ALPINE_VERSION =3.7
19
+ TAG := ${ALPINE_VERSION}-$(shell date +v% Y% m% d) -$(shell git describe --tags --always --dirty)
20
+
21
+ image :
22
+ docker build --build-arg ALPINE_VERSION=$(ALPINE_VERSION ) -t " gcr.io/jetstack-build-infra/alpine:$( TAG) " .
23
+
24
+ push : image
25
+ gcloud docker -- push " gcr.io/jetstack-build-infra/alpine:$( TAG) "
26
+
27
+ .PHONY : image push
You can’t perform that action at this time.
0 commit comments