mirror of
https://github.com/bluenviron/mediamtx
synced 2025-03-11 06:47:58 +00:00
* fix: improve unsafe path handling Paths containing spaces or dashes were being interpreted as separate options, since the path handling lacked double quotes. This fixes all unsafe instances of "PWD" and "HOME", along with all other unsafe paths in the scripts. * readme: explicitly mount the configuration as read-only This clearly shows users that the MediaMTX container will not modify the configuration file.
22 lines
500 B
Makefile
22 lines
500 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
|
|
|
|
lint-golangci:
|
|
docker run --rm -v "$(PWD):/app" -w /app \
|
|
$(LINT_IMAGE) \
|
|
golangci-lint run -v
|
|
|
|
lint-mod-tidy:
|
|
go mod tidy
|
|
git diff --exit-code
|
|
|
|
lint-apidocs:
|
|
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"
|
|
|
|
lint: lint-golangci lint-mod-tidy lint-apidocs
|