From f607ae5402c131623741c585454f38022a257366 Mon Sep 17 00:00:00 2001 From: Rolf Neugebauer Date: Wed, 29 Mar 2017 16:38:57 +0100 Subject: [PATCH] base: Remove mksh It does not seem to be used by anything here anymore. Signed-off-by: Rolf Neugebauer --- base/mksh/Dockerfile | 21 --------------------- base/mksh/Makefile | 29 ----------------------------- 2 files changed, 50 deletions(-) delete mode 100644 base/mksh/Dockerfile delete mode 100644 base/mksh/Makefile diff --git a/base/mksh/Dockerfile b/base/mksh/Dockerfile deleted file mode 100644 index de21db43e..000000000 --- a/base/mksh/Dockerfile +++ /dev/null @@ -1,21 +0,0 @@ -FROM alpine:3.5 -RUN \ - apk update && apk upgrade && \ - apk add \ - curl \ - gcc \ - groff \ - make \ - musl-dev \ - && true - -COPY . / - -ENV VERSION=mksh-R54 - -RUN curl -O -sSL https://github.com/MirBSD/mksh/archive/$VERSION.tar.gz -RUN zcat $VERSION.tar.gz | tar xvf - - -ENV LDFLAGS=-static - -RUN cd mksh-$VERSION && sh ./Build.sh && strip mksh && install -c -s -o root -g bin -m 555 mksh /bin/mksh diff --git a/base/mksh/Makefile b/base/mksh/Makefile deleted file mode 100644 index 5f8a0df18..000000000 --- a/base/mksh/Makefile +++ /dev/null @@ -1,29 +0,0 @@ -.PHONY: tag push - -BASE=alpine:3.5 -IMAGE=mksh - -default: push - -hash: Dockerfile - DOCKER_CONTENT_TRUST=1 docker pull $(BASE) - tar cf - $^ | docker build --no-cache -t $(IMAGE):build - - docker run --rm --entrypoint sh $(IMAGE):build -c 'cat /Dockerfile /lib/apk/db/installed | sha1sum' | sed 's/ .*//' > hash - -push: hash - docker pull mobylinux/$(IMAGE):$(shell cat hash) || \ - (docker tag $(IMAGE):build mobylinux/$(IMAGE):$(shell cat hash) && \ - docker push mobylinux/$(IMAGE):$(shell cat hash)) - docker rmi $(IMAGE):build - rm -f hash - -tag: hash - docker pull mobylinux/$(IMAGE):$(shell cat hash) || \ - docker tag $(IMAGE):build mobylinux/$(IMAGE):$(shell cat hash) - docker rmi $(IMAGE):build - rm -f hash - -clean: - rm -f hash - -.DELETE_ON_ERROR: