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.
20 lines
589 B
Docker
20 lines
589 B
Docker
FROM docker.mirror.hashicorp.services/alpine:3.13.6
|
|
|
|
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/
|
|
|
|
EXPOSE 9200 9201 9202
|
|
VOLUME /boundary/
|
|
|
|
COPY ./docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
|
|
ENTRYPOINT ["docker-entrypoint.sh"]
|
|
CMD ["server", "-config", "/boundary/config.hcl"]
|