Skip to content

Commit

Permalink
feat: add new init container images
Browse files Browse the repository at this point in the history
Adds init-sh and init-bash which are minimalist images
These can be useful for small init containers

Signed-off-by: Tiago Castro <[email protected]>
  • Loading branch information
tiagolobocastro committed Jul 2, 2024
1 parent 5fddd7e commit 9bc69e5
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ifeq (${IMAGE_ORG}, )
endif

ifeq (${DIMAGES}, )
DIMAGES:=linux-utils
DIMAGES:=linux-utils alpine-sh alpine-bash
export DIMAGES
endif

Expand Down Expand Up @@ -77,6 +77,13 @@ test:
@sudo docker run --rm "$$IMAGE_ORG/linux-utils:ci" which mkdir
@sudo docker run --rm "$$IMAGE_ORG/linux-utils:ci" which rm
@sudo docker run --rm "$$IMAGE_ORG/linux-utils:ci" which wipefs
@sudo docker run --rm "$$IMAGE_ORG/alpine-sh:ci" which /bin/sh
@sudo docker run --rm "$$IMAGE_ORG/alpine-sh:ci" which nc
@sudo docker run --rm "$$IMAGE_ORG/alpine-sh:ci" which chown
@sudo docker run --rm "$$IMAGE_ORG/alpine-bash:ci" which /bin/sh
@sudo docker run --rm "$$IMAGE_ORG/alpine-bash:ci" which /bin/bash
@sudo docker run --rm "$$IMAGE_ORG/alpine-bash:ci" which nc
@sudo docker run --rm "$$IMAGE_ORG/alpine-bash:ci" which chown

.PHONY: clobber
clobber:
Expand Down
14 changes: 14 additions & 0 deletions dockerfiles/alpine-bash/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM alpine:3.20.1

RUN apk add --no-cache bash

ARG DBUILD_DATE
ARG DBUILD_REPO_URL="https://github.com/openebs/linux-utils"
ARG DBUILD_SITE_URL="https://www.openebs.io/"

LABEL org.label-schema.schema-version="1.0"
LABEL org.label-schema.name="linux-utils"
LABEL org.label-schema.description="Linux Container for OpenEBS Helper jobs"
LABEL org.label-schema.build-date=$DBUILD_DATE
LABEL org.label-schema.vcs-url=$DBUILD_REPO_URL
LABEL org.label-schema.url=$DBUILD_SITE_URL
12 changes: 12 additions & 0 deletions dockerfiles/alpine-sh/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM alpine:3.20.1

ARG DBUILD_DATE
ARG DBUILD_REPO_URL="https://github.com/openebs/linux-utils"
ARG DBUILD_SITE_URL="https://www.openebs.io/"

LABEL org.label-schema.schema-version="1.0"
LABEL org.label-schema.name="linux-utils"
LABEL org.label-schema.description="Linux Container for OpenEBS Helper jobs"
LABEL org.label-schema.build-date=$DBUILD_DATE
LABEL org.label-schema.vcs-url=$DBUILD_REPO_URL
LABEL org.label-schema.url=$DBUILD_SITE_URL

0 comments on commit 9bc69e5

Please sign in to comment.