Skip to content

Commit

Permalink
Pin dependency versions
Browse files Browse the repository at this point in the history
  • Loading branch information
sbreker committed Apr 25, 2024
1 parent a1cab66 commit 7346d34
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions 1.1.21.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ SHELL ["/bin/ash", "-euxo", "pipefail", "-c"]
RUN addgroup -S gearman && adduser -G gearman -S -D -H -s /bin/false -g "Gearman Server" gearman

RUN apk add --no-cache --virtual .build-deps \

Check failure on line 10 in 1.1.21.2/Dockerfile

View workflow job for this annotation

GitHub Actions / Lint Dockerfiles with Hadolint

DL3003 info: Use WORKDIR to switch to a directory

Check failure on line 10 in 1.1.21.2/Dockerfile

View workflow job for this annotation

GitHub Actions / Lint Dockerfiles with Hadolint

DL3018 warning: Pin versions in apk add. Instead of `apk add <package>` use `apk add <package>=<version>`

Check failure on line 10 in 1.1.21.2/Dockerfile

View workflow job for this annotation

GitHub Actions / Lint Dockerfiles with Hadolint

SC2086 info: Double quote to prevent globbing and word splitting.

Check failure on line 10 in 1.1.21.2/Dockerfile

View workflow job for this annotation

GitHub Actions / Lint Dockerfiles with Hadolint

DL3019 info: Use the `--no-cache` switch to avoid the need to use `--update` and remove `/var/cache/apk/*` when done installing packages

Check failure on line 10 in 1.1.21.2/Dockerfile

View workflow job for this annotation

GitHub Actions / Lint Dockerfiles with Hadolint

DL3047 info: Avoid use of wget without progress bar. Use `wget --progress=dot:giga <url>`. Or consider using `-q` or `-nv` (shorthands for `--quiet` or `--no-verbose`).
wget \
tar \
ca-certificates \
file \
alpine-sdk \
gperf \
libuuid \
boost-dev \
libevent-dev \
util-linux-dev \
hiredis-dev \
mariadb-dev \
libmemcached-dev \
wget=1.21.4-r0 \
tar=1.35-r2 \
ca-certificates=20240226-r0 \
file=5.45-r1 \
alpine-sdk=1.0-r1 \
gperf=3.1-r4 \
libuuid=2.39.3-r0 \
boost-dev=1.82.0-r3 \
libevent-dev=2.1.12-r7 \
util-linux-dev=2.39.3-r0 \
hiredis-dev=1.2.0-r0 \
mariadb-dev=10.11.6-r0 \
libmemcached-dev=1.1.4-r1 \
&& wget -O gearmand.tar.gz "https://github.com/gearman/gearmand/releases/download/$GEARMAND_VERSION/gearmand-$GEARMAND_VERSION.tar.gz" \
&& echo "$GEARMAND_SHA1 gearmand.tar.gz" | sha1sum -c - \
&& mkdir -p /usr/src/gearmand \
Expand Down Expand Up @@ -56,7 +56,7 @@ HEALTHCHECK --interval=5m --timeout=3s --retries=2 \
CMD test $(netstat -ltn | grep -c :$GEARMAND_LISTEN_PORT) -eq 1 || exit 1

COPY docker-entrypoint.sh /usr/local/bin/
RUN apk add --no-cache bash \
RUN apk add --no-cache bash=5.2.21-r0 \
&& touch /etc/gearmand.conf && chown gearman:gearman /etc/gearmand.conf \
&& ln -s usr/local/bin/docker-entrypoint.sh /entrypoint.sh # backwards compat
ENTRYPOINT ["docker-entrypoint.sh"]
Expand Down

0 comments on commit 7346d34

Please sign in to comment.