From 937c14adb399a9542ab15d884e172f7610da3b9e Mon Sep 17 00:00:00 2001 From: Prateek Pandey Date: Mon, 24 Feb 2020 11:13:35 +0530 Subject: [PATCH] chore(build): use alpine as base image for snapshot controller (#105) commits uses the alpine as a base image to build snapshot controller and snapshot provisioner images, due to unsupported and unscannable container image layer error in quay and other images repo while scanning Signed-off-by: prateekpandey14 --- snapshot/deploy/docker/controller/Dockerfile | 15 ++++++++++++--- snapshot/deploy/docker/provisioner/Dockerfile | 16 +++++++++++++--- 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/snapshot/deploy/docker/controller/Dockerfile b/snapshot/deploy/docker/controller/Dockerfile index a53f5ef4e86..11005ab46e8 100644 --- a/snapshot/deploy/docker/controller/Dockerfile +++ b/snapshot/deploy/docker/controller/Dockerfile @@ -12,9 +12,18 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM busybox:glibc -COPY snapshot-controller /bin/snapshot-controller +FROM alpine:3.6 + +RUN apk add --no-cache \ + bash \ + net-tools \ + mii-tool \ + procps \ + libc6-compat \ + ca-certificates + +COPY snapshot-controller / # Root CA certificates COPY etc /etc COPY usr /usr -ENTRYPOINT ["/bin/snapshot-controller"] +ENTRYPOINT ["/snapshot-controller"] diff --git a/snapshot/deploy/docker/provisioner/Dockerfile b/snapshot/deploy/docker/provisioner/Dockerfile index ec15fb5d260..25eb841f6c9 100644 --- a/snapshot/deploy/docker/provisioner/Dockerfile +++ b/snapshot/deploy/docker/provisioner/Dockerfile @@ -12,9 +12,19 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM busybox:glibc -COPY snapshot-provisioner /bin/snapshot-provisioner +FROM alpine:3.6 + +RUN apk add --no-cache \ + bash \ + net-tools \ + mii-tool \ + procps \ + libc6-compat \ + ca-certificates + + +COPY snapshot-provisioner / # Root CA certificates COPY etc /etc COPY usr /usr -ENTRYPOINT ["/bin/snapshot-provisioner"] +ENTRYPOINT ["/snapshot-provisioner"]