From 79eda6779f7bdb6de62f957f5925114ce2a22a24 Mon Sep 17 00:00:00 2001 From: Vishnu Kannan Date: Thu, 20 Oct 2016 12:10:22 -0700 Subject: [PATCH] Adding a new docker container for performing mounts on GCI Signed-off-by: Vishnu Kannan --- cluster/gce/gci/mounter/Changelog | 3 +++ cluster/gce/gci/mounter/Dockerfile | 20 ++++++++++++++++++++ cluster/gce/gci/mounter/Makefile | 27 +++++++++++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 cluster/gce/gci/mounter/Changelog create mode 100644 cluster/gce/gci/mounter/Dockerfile create mode 100644 cluster/gce/gci/mounter/Makefile diff --git a/cluster/gce/gci/mounter/Changelog b/cluster/gce/gci/mounter/Changelog new file mode 100644 index 00000000000..6c3a6a637dc --- /dev/null +++ b/cluster/gce/gci/mounter/Changelog @@ -0,0 +1,3 @@ +## v1 (Thu Oct 20 2016 Vishnu Kannan ) + - Creating a container with mount tools pre-installed + - Digest: sha256:e3dad2a7e6e79f8fad8a513f85d7e1489456c829f966908617de21a084270d7f diff --git a/cluster/gce/gci/mounter/Dockerfile b/cluster/gce/gci/mounter/Dockerfile new file mode 100644 index 00000000000..77e0fcb983e --- /dev/null +++ b/cluster/gce/gci/mounter/Dockerfile @@ -0,0 +1,20 @@ +# Copyright 2016 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. + +FROM debian:jessie +MAINTAINER vishh@google.com + +RUN apt-get update && apt-get install -y nfs-common glusterfs-client + +ENTRYPOINT ["/bin/mount"] diff --git a/cluster/gce/gci/mounter/Makefile b/cluster/gce/gci/mounter/Makefile new file mode 100644 index 00000000000..4581cb35f63 --- /dev/null +++ b/cluster/gce/gci/mounter/Makefile @@ -0,0 +1,27 @@ +# Copyright 2016 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=v1 +REGISTRY=gcr.io/google_containers +IMAGE=gci-mounter + +all: container + +container: + docker build --pull -t ${REGISTRY}/${IMAGE}:${TAG} . + +push: + gcloud docker -- push ${REGISTRY}/${IMAGE}:${TAG} + +.PHONY: all container push