mirror of
https://github.com/bluenviron/mediamtx
synced 2025-01-23 15:34:28 +00:00
22 lines
590 B
Makefile
22 lines
590 B
Makefile
define DOCKERFILE_APIDOCS_LINT
|
|
FROM $(NODE_IMAGE)
|
|
RUN yarn global add @redocly/cli@1.0.0-beta.123
|
|
endef
|
|
export DOCKERFILE_APIDOCS_LINT
|
|
|
|
apidocs-lint:
|
|
echo "$$DOCKERFILE_APIDOCS_LINT" | docker build . -f - -t temp
|
|
docker run --rm -v $(PWD)/apidocs:/s -w /s temp \
|
|
sh -c "openapi lint openapi.yaml"
|
|
|
|
define DOCKERFILE_APIDOCS_GEN
|
|
FROM $(NODE_IMAGE)
|
|
RUN yarn global add redoc-cli@0.13.7
|
|
endef
|
|
export DOCKERFILE_APIDOCS_GEN
|
|
|
|
apidocs-gen:
|
|
echo "$$DOCKERFILE_APIDOCS_GEN" | docker build . -f - -t temp
|
|
docker run --rm -v $(PWD)/apidocs:/s -w /s temp \
|
|
sh -c "redoc-cli bundle openapi.yaml"
|