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