Sign inSign up

d97jro/stress-ng

By d97jro

•Updated about 4 years ago

scratch-based image that contains Alpine's stress-ng binary and the dynamic library it needs to run

Image
0

1.7K

d97jro/stress-ng repository overview

Dockerfile:

ARG ALPINE_VERSION=3.16.2
ARG EXPORT_DIR=/export

FROM alpine:$ALPINE_VERSION AS stager
ARG EXPORT_DIR
# hadolint ignore=DL3018
RUN apk --no-cache add stress-ng
WORKDIR "$EXPORT_DIR"
RUN cp "$(which stress-ng)" ./
# hadolint ignore=DL4006
RUN ldd ./stress-ng | while read -r path1 _ path2 _; do \
    for lib in "$path1" "$path2"; do \
        case $lib in \
            *) \
                tar -ch "$lib" 2>/dev/null | tar x \
            ;; \
        esac \
    done \
done

FROM scratch
ARG EXPORT_DIR
COPY --from=stager "$EXPORT_DIR" /
ENTRYPOINT ["/stress-ng"]

Tag summary

Content type

Image

Digest

sha256:1599c1f4d…

Size

3.1 MB

Last updated

about 4 years ago

docker pull d97jro/stress-ng