From e6a8704a60e1b084a1aae7ac6159d84b49d30b64 Mon Sep 17 00:00:00 2001 From: Timothy Messier Date: Wed, 17 Nov 2021 07:28:58 -0500 Subject: [PATCH] fix(docker): Add missing packages to dev docker image (#1713) Trying to run the docker image built with `make docker-build-dev` would result in an error at startup: standard_init_linux.go:228: exec user process caused: no such file or directory This was due to the dev docker image lacking `dumb-init` which is used by `docker-entrypoint.sh`. This commit updates the dev dockerfile to add dumb-init. It also adds additional packages so that the dev image aligns with the release image. --- docker/Dev.dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docker/Dev.dockerfile b/docker/Dev.dockerfile index fce88d135..e0e732053 100644 --- a/docker/Dev.dockerfile +++ b/docker/Dev.dockerfile @@ -1,13 +1,15 @@ -FROM docker.mirror.hashicorp.services/alpine:3.10 +FROM docker.mirror.hashicorp.services/alpine:3.13.6 -RUN addgroup boundary && \ - adduser -S -G boundary boundary +RUN set -eux && \ + addgroup boundary && \ + adduser -s /bin/sh -S -G boundary boundary && \ + apk add --no-cache wget ca-certificates dumb-init gnupg libcap openssl su-exec iputils libc6-compat iptables ADD bin/boundary /bin/boundary RUN mkdir /boundary/ ADD ./config.hcl /boundary/config.hcl -RUN chown -R boundary:boundary /boundary/ +RUN chown -R boundary:boundary /boundary/ EXPOSE 9200 9201 9202 VOLUME /boundary/