qvs: move to single container
This commit is contained in:
parent
c44a75e26a
commit
2bd8b76fb7
|
@ -2,12 +2,12 @@
|
|||
|
||||
FROM scratch AS base
|
||||
|
||||
COPY quorum-key-management /quorum-key-management
|
||||
COPY quorum-vault-system /quorum-vault-system
|
||||
|
||||
FROM base AS build
|
||||
COPY --from=stagex/mdbook . /
|
||||
|
||||
WORKDIR /quorum-key-management
|
||||
WORKDIR /quorum-vault-system
|
||||
RUN ["/usr/bin/mdbook", "build"]
|
||||
|
||||
FROM stagex/filesystem AS install
|
||||
|
@ -17,7 +17,7 @@ COPY --from=stagex/musl . /
|
|||
COPY --from=stagex/zlib . /
|
||||
|
||||
ADD index.html /var/www/html/
|
||||
COPY --from=build /quorum-key-management/book /var/www/html/qkm
|
||||
COPY --from=build /quorum-vault-system/book /var/www/html
|
||||
|
||||
WORKDIR /var/www/html
|
||||
|
22
Makefile
22
Makefile
|
@ -1,22 +1,24 @@
|
|||
PORT := 8080
|
||||
default: build
|
||||
.PHONY: default
|
||||
default: build-qvs
|
||||
|
||||
out:
|
||||
mkdir -p out
|
||||
|
||||
.PHONY: build
|
||||
build: out/index.json
|
||||
out/index.json: out Containerfile
|
||||
.PHONY: build-qvs
|
||||
build-qvs: out/qvs/index.json
|
||||
out/qvs/index.json: out Containerfile
|
||||
mkdir -p out/qvs
|
||||
docker \
|
||||
build \
|
||||
-f Containerfile \
|
||||
--output type=oci,rewrite-timestamp=true,force-compression=true,name=distrust/docs,tar=true,dest=- \
|
||||
-f Containerfile.qvs \
|
||||
--output type=oci,rewrite-timestamp=true,force-compression=true,name=git.distrust.co/public/docs-qvs,tar=true,dest=- \
|
||||
. \
|
||||
| tar -C out/ -mx
|
||||
| tar -C out/qvs -mx
|
||||
|
||||
.PHONY: serve
|
||||
serve: build
|
||||
tar -C out/ -cf - . | docker load
|
||||
docker run -p $(PORT):8080 distrust/docs
|
||||
serve-qvs: build-qvs
|
||||
tar -C out/qvs -cf - . | docker load
|
||||
docker run -p $(PORT):8080 git.distrust.co/public/docs-qvs
|
||||
|
||||
|
||||
|
|
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 85 KiB |
Loading…
Reference in New Issue