chore: Docker Build fixes (#1502)

Pass correct context to docker build for multiarch and dev build targets.

* fixed missing file errors; bumped boundary version
* downgraded alpine due to build issues
* fixing makefile
* bumping boundary and alpine versions
* fixed docker directory in makefile and dockerfile
* updating dev.dockerfile & makefile
jimlambrt-events-no-default-stderr-sink
Jacob Mammoliti 5 years ago committed by GitHub
parent 1c40100edd
commit 2f329c4e93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -200,13 +200,14 @@ docker-multiarch-build:
--tag hashicorp/boundary:latest \
--build-arg VERSION=$(VERSION) \
--platform linux/amd64,linux/arm64 \
--file $(DOCKER_DIR)/Release.dockerfile .
--file $(DOCKER_DIR)/Release.dockerfile docker/
# builds from locally generated binary in bin/
docker-build-dev: export XC_OSARCH=linux/amd64
docker-build-dev: dev
cp -r bin docker/
docker build -t $(IMAGE_TAG_DEV) \
-f $(DOCKER_DIR)/Dev.dockerfile .
-f $(DOCKER_DIR)/Dev.dockerfile docker/
# requires appropriate permissions in dockerhub
docker-publish:

@ -6,7 +6,7 @@ RUN addgroup boundary && \
ADD bin/boundary /bin/boundary
RUN mkdir /boundary/
ADD docker/config.hcl /boundary/config.hcl
ADD ./config.hcl /boundary/config.hcl
RUN chown -R boundary:boundary /boundary/
EXPOSE 9200 9201 9202

@ -1,4 +1,4 @@
FROM docker.mirror.hashicorp.services/alpine:3.13
FROM docker.mirror.hashicorp.services/alpine:3.13.6
ARG VERSION=0.6.1
@ -40,6 +40,6 @@ RUN chown -R boundary:boundary /boundary/
EXPOSE 9200 9201 9202
VOLUME /boundary/
COPY ./docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["server", "-config", "/boundary/config.hcl"]
CMD ["server", "-config", "/boundary/config.hcl"]

Loading…
Cancel
Save