Skip to content

Commit 0201cfb

Browse files
authored
Merge pull request kubernetes#242 from munnerz/add-alpine
Add alpine image
2 parents c7db9ab + 4047ff4 commit 0201cfb

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

Diff for: images/alpine/Dockerfile

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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

Diff for: images/alpine/Makefile

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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

0 commit comments

Comments
 (0)