6
6
# [Semantic versioning](https://semver.org/) is used to help the reader identify the significance of changes.
7
7
# Changes are relevant to this script and the support docs.mk GNU Make interface.
8
8
#
9
+ # ## 6.1.0 (2024-04-22)
10
+ #
11
+ # ### Changed
12
+ #
13
+ # - Mount volumes with SELinux labels.
14
+ #
15
+ # https://docs.docker.com/storage/bind-mounts/#configure-the-selinux-label
16
+ #
17
+ # ## 6.1.0 (2024-04-22)
18
+ #
19
+ # ### Added
20
+ #
21
+ # - Pseudo project for including only website resources and no website content.
22
+ #
23
+ # Facilitates testing shortcodes and layout changes with a small documentation set instead of Grafana Cloud or the entire website.
24
+ #
9
25
# ## 6.0.1 (2024-02-28)
10
26
#
11
27
# ### Added
@@ -300,6 +316,7 @@ SOURCES_helm_charts_tempo_distributed='tempo'
300
316
SOURCES_opentelemetry=' opentelemetry-docs'
301
317
SOURCES_plugins_grafana_datadog_datasource=' datadog-datasource'
302
318
SOURCES_plugins_grafana_oracle_datasource=' oracle-datasource'
319
+ SOURCES_resources=' website'
303
320
304
321
VERSIONS_as_code=' UNVERSIONED'
305
322
VERSIONS_grafana_cloud=' UNVERSIONED'
@@ -311,6 +328,7 @@ VERSIONS_grafana_cloud_frontend_observability_faro_web_sdk='UNVERSIONED'
311
328
VERSIONS_opentelemetry=' UNVERSIONED'
312
329
VERSIONS_plugins_grafana_datadog_datasource=' latest'
313
330
VERSIONS_plugins_grafana_oracle_datasource=' latest'
331
+ VERSIONS_resources=' UNVERSIONED'
314
332
VERSIONS_technical_documentation=' UNVERSIONED'
315
333
VERSIONS_website=' UNVERSIONED'
316
334
VERSIONS_writers_toolkit=' UNVERSIONED'
@@ -321,6 +339,7 @@ PATHS_helm_charts_tempo_distributed='docs/sources/helm-charts/tempo-distributed'
321
339
PATHS_mimir=' docs/sources/mimir'
322
340
PATHS_plugins_grafana_datadog_datasource=' docs/sources'
323
341
PATHS_plugins_grafana_oracle_datasource=' docs/sources'
342
+ PATHS_resources=' content'
324
343
PATHS_tempo=' docs/sources/tempo'
325
344
PATHS_website=' content'
326
345
@@ -584,6 +603,11 @@ POSIX_HERESTRING
584
603
proj_to_url_src_dst_ver " $( new_proj helm-charts/mimir-distributed " ${_version} " ) "
585
604
proj_to_url_src_dst_ver " $( new_proj enterprise-metrics " ${_version} " ) "
586
605
;;
606
+ resources)
607
+ _repo=" $( repo_path website) "
608
+ echo " arbitrary^${_repo} /config^/hugo/config" " arbitrary^${_repo} /layouts^/hugo/layouts" " arbitrary^${_repo} /scripts^/hugo/scripts"
609
+ unset _repo
610
+ ;;
587
611
traces)
588
612
proj_to_url_src_dst_ver " $( new_proj tempo " ${_version} " ) "
589
613
proj_to_url_src_dst_ver " $( new_proj enterprise-traces " ${_version} " ) "
617
641
POSIX_HERESTRING
618
642
619
643
if [ -n " ${url} " ]; then
620
- if [ " ${_url } " != " arbitrary" ]; then
644
+ if [ " ${url } " != arbitrary ]; then
621
645
printf ' \r %s\r\n' " ${url} "
622
646
fi
623
647
fi
@@ -670,9 +694,9 @@ POSIX_HERESTRING
670
694
fi
671
695
672
696
_repo=" $( repo_path website) "
673
- volumes=" --volume=${_repo} /config:/hugo/config"
674
- volumes=" ${volumes} --volume=${_repo} /layouts:/hugo/layouts"
675
- volumes=" ${volumes} --volume=${_repo} /scripts:/hugo/scripts"
697
+ volumes=" --volume=${_repo} /config:/hugo/config:z "
698
+ volumes=" ${volumes} --volume=${_repo} /layouts:/hugo/layouts:z "
699
+ volumes=" ${volumes} --volume=${_repo} /scripts:/hugo/scripts:z "
676
700
fi
677
701
unset _project _repo
678
702
done
@@ -682,7 +706,7 @@ for x in ${url_src_dst_vers}; do
682
706
$x
683
707
POSIX_HERESTRING
684
708
685
- if [ " ${_url} " != " arbitrary" ]; then
709
+ if [ " ${_url} " != arbitrary ]; then
686
710
if [ ! -f " ${_src} /_index.md" ]; then
687
711
errr " Index file '${_src} /_index.md' does not exist."
688
712
note " Is '${_src} ' the correct source directory?"
@@ -693,9 +717,9 @@ POSIX_HERESTRING
693
717
debg " Mounting '${_src} ' at container path '${_dst} '"
694
718
695
719
if [ -z " ${volumes} " ]; then
696
- volumes=" --volume=${_src} :${_dst} "
720
+ volumes=" --volume=${_src} :${_dst} :z "
697
721
else
698
- volumes=" ${volumes} --volume=${_src} :${_dst} "
722
+ volumes=" ${volumes} --volume=${_src} :${_dst} :z "
699
723
fi
700
724
701
725
if [ -n " ${_ver} " ] && [ " ${_ver} " != ' UNVERSIONED' ]; then
789
813
${WEBSITE_EXEC}
790
814
EOF
791
815
chmod +x " ${tempfile} "
792
- volumes=" ${volumes} --volume=${tempfile} :/entrypoint"
816
+ volumes=" ${volumes} --volume=${tempfile} :/entrypoint:z "
793
817
readonly volumes
794
818
795
819
IFS=' ' read -r cmd << EOF
0 commit comments