mirror of https://github.com/grafana/grafana.git
docs: use selinux relabelling on docker containers (#27685)
This commit is contained in:
parent
f4e12c1c19
commit
cbe040b8c6
|
@ -7,18 +7,18 @@ PORT = 3002:3002
|
||||||
|
|
||||||
docs:
|
docs:
|
||||||
docker pull $(IMAGE)
|
docker pull $(IMAGE)
|
||||||
docker run -v $(shell pwd)/sources:$(CONTENT_PATH) -p $(PORT) --rm -it $(IMAGE)
|
docker run -v $(shell pwd)/sources:$(CONTENT_PATH):Z -p $(PORT) --rm -it $(IMAGE)
|
||||||
|
|
||||||
docs-no-pull:
|
docs-no-pull:
|
||||||
docker run -v $(shell pwd)/sources:$(CONTENT_PATH) -p $(PORT) --rm -it $(IMAGE)
|
docker run -v $(shell pwd)/sources:$(CONTENT_PATH):Z -p $(PORT) --rm -it $(IMAGE)
|
||||||
|
|
||||||
docs-test:
|
docs-test:
|
||||||
docker pull $(IMAGE)
|
docker pull $(IMAGE)
|
||||||
docker run -v $(shell pwd)/sources:$(CONTENT_PATH) --rm -it $(IMAGE) /bin/bash -c 'make prod'
|
docker run -v $(shell pwd)/sources:$(CONTENT_PATH):Z --rm -it $(IMAGE) /bin/bash -c 'make prod'
|
||||||
|
|
||||||
# expects that you have grafana/website checked out in same path as the grafana repo.
|
# expects that you have grafana/website checked out in same path as the grafana repo.
|
||||||
docs-local-static:
|
docs-local-static:
|
||||||
docker pull $(IMAGE)
|
docker pull $(IMAGE)
|
||||||
if [ ! -d "$(LOCAL_STATIC_PATH)" ]; then echo "local path (website project) $(LOCAL_STATIC_PATH) not found"]; exit 1; fi
|
if [ ! -d "$(LOCAL_STATIC_PATH)" ]; then echo "local path (website project) $(LOCAL_STATIC_PATH) not found"]; exit 1; fi
|
||||||
docker run -v $(shell pwd)/sources:$(CONTENT_PATH) \
|
docker run -v $(shell pwd)/sources:$(CONTENT_PATH):Z \
|
||||||
-v $(shell pwd)/$(LOCAL_STATIC_PATH):/hugo/static -p $(PORT) --rm -it $(IMAGE)
|
-v $(shell pwd)/$(LOCAL_STATIC_PATH):/hugo/static:Z -p $(PORT) --rm -it $(IMAGE)
|
||||||
|
|
Loading…
Reference in New Issue