generated from pre-cursor/github-template-repository-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
35 lines (27 loc) · 927 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM alpine:3.11
ARG VERSION
LABEL \
"name"="tooldockers/iops" \
"maintainer"="tool-dockers" \
"version"="${VERSION}" \
"release"="3.16" \
"vendor"="tool-dockers" \
"summary"="I/O performance statistics" \
"description"="Alpine-based Docker containing fio, and ioping, a filesystem benchmarking tool."
# Create a iops user and group first so the IDs get set the same way, even as
# the rest of this may change over time.
RUN addgroup iops \
&& adduser -S -G iops iops
RUN set -eux \
&& apk add --no-cache ca-certificates curl dumb-init su-exec fio ioping \
&& ioping -v \
&& fio -v \
&& /bin/rm -rf /tmp/* /var/tmp/* /var/cache/apk/*
RUN mkdir -p /iops/config \
&& mkdir -p /iops/data \
&& chown -R iops:iops /iops
VOLUME /iops/data
WORKDIR /iops/
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
ENTRYPOINT ["docker-entrypoint.sh"]
CMD [ "--help" ]