Skip to content
This repository was archived by the owner on Mar 22, 2018. It is now read-only.

Commit 326cb86

Browse files
committed
use local binary for k8s-keystone-auth image
1 parent 1f06f1a commit 326cb86

1 file changed

Lines changed: 18 additions & 12 deletions

File tree

cluster/images/webhook/Dockerfile

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
1-
FROM ubuntu:16.04
2-
MAINTAINER Saverio Proto <[email protected]>
3-
RUN apt-get update && \
4-
apt-get install -y software-properties-common
5-
RUN add-apt-repository -y ppa:masterminds/glide
6-
RUN apt-get update && \
7-
apt-get install -y glide git build-essential golang && \
8-
apt-get clean && \
9-
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
10-
RUN git clone https://github.com/dims/k8s-keystone-auth
11-
WORKDIR k8s-keystone-auth
12-
RUN make depend && make build
1+
# Licensed under the Apache License, Version 2.0 (the "License");
2+
# you may not use this file except in compliance with the License.
3+
# You may obtain a copy of the License at
4+
#
5+
# http://www.apache.org/licenses/LICENSE-2.0
6+
#
7+
# Unless required by applicable law or agreed to in writing, software
8+
# distributed under the License is distributed on an "AS IS" BASIS,
9+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
# See the License for the specific language governing permissions and
11+
# limitations under the License.
12+
13+
FROM alpine:3.7
14+
15+
RUN apk add --no-cache ca-certificates
16+
17+
ADD k8s-keystone-auth /bin/
18+
1319
EXPOSE 8443
1420
CMD ./bin/k8s-keystone-auth --tls-cert-file ${API_SERVER_CERT} --tls-private-key-file ${API_SERVER_KEY} --keystone-url ${OPENSTACK_KEYSTONE_URL}
1521

0 commit comments

Comments
 (0)