Skip to content

Commit c23980b

Browse files
feat: add new tiny container images
Adds alpine-sh and alpine-bash which are minimalist images These can be useful for small init containers Signed-off-by: Tiago Castro <[email protected]>
1 parent 1e47c5d commit c23980b

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ ifeq (${IMAGE_ORG}, )
2727
endif
2828

2929
ifeq (${DIMAGES}, )
30-
DIMAGES:=linux-utils
30+
DIMAGES:=linux-utils alpine-sh alpine-bash
3131
export DIMAGES
3232
endif
3333

@@ -77,6 +77,13 @@ test:
7777
@sudo docker run --rm "$$IMAGE_ORG/linux-utils:ci" which mkdir
7878
@sudo docker run --rm "$$IMAGE_ORG/linux-utils:ci" which rm
7979
@sudo docker run --rm "$$IMAGE_ORG/linux-utils:ci" which wipefs
80+
@sudo docker run --rm "$$IMAGE_ORG/alpine-sh:ci" which /bin/sh
81+
@sudo docker run --rm "$$IMAGE_ORG/alpine-sh:ci" which nc
82+
@sudo docker run --rm "$$IMAGE_ORG/alpine-sh:ci" which chown
83+
@sudo docker run --rm "$$IMAGE_ORG/alpine-bash:ci" which /bin/sh
84+
@sudo docker run --rm "$$IMAGE_ORG/alpine-bash:ci" which /bin/bash
85+
@sudo docker run --rm "$$IMAGE_ORG/alpine-bash:ci" which nc
86+
@sudo docker run --rm "$$IMAGE_ORG/alpine-bash:ci" which chown
8087

8188
.PHONY: clobber
8289
clobber:

dockerfiles/alpine-bash/Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM alpine:3.20.1
2+
3+
RUN apk add --no-cache bash
4+
5+
ARG DBUILD_DATE
6+
ARG DBUILD_REPO_URL="https://github.com/openebs/linux-utils"
7+
ARG DBUILD_SITE_URL="https://www.openebs.io/"
8+
9+
LABEL org.label-schema.schema-version="1.0"
10+
LABEL org.label-schema.name="linux-utils"
11+
LABEL org.label-schema.description="Linux Container for OpenEBS Helper jobs"
12+
LABEL org.label-schema.build-date=$DBUILD_DATE
13+
LABEL org.label-schema.vcs-url=$DBUILD_REPO_URL
14+
LABEL org.label-schema.url=$DBUILD_SITE_URL

dockerfiles/alpine-sh/Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM alpine:3.20.1
2+
3+
ARG DBUILD_DATE
4+
ARG DBUILD_REPO_URL="https://github.com/openebs/linux-utils"
5+
ARG DBUILD_SITE_URL="https://www.openebs.io/"
6+
7+
LABEL org.label-schema.schema-version="1.0"
8+
LABEL org.label-schema.name="linux-utils"
9+
LABEL org.label-schema.description="Linux Container for OpenEBS Helper jobs"
10+
LABEL org.label-schema.build-date=$DBUILD_DATE
11+
LABEL org.label-schema.vcs-url=$DBUILD_REPO_URL
12+
LABEL org.label-schema.url=$DBUILD_SITE_URL

0 commit comments

Comments
 (0)