fix: alpine fixes for Docker portability

This commit is contained in:
allanice001
2025-11-06 03:08:37 +00:00
parent da65481624
commit 334c7d59d6
2 changed files with 57 additions and 1 deletions

View File

@@ -101,7 +101,11 @@ SDK_PKG_CLEAN := $(call trim,$(SDK_PKG))
DOCS_JSON := docs/swagger.json
DOCS_YAML := docs/swagger.yaml
# Prefer git for speed; fall back to find. Exclude UI dir.
GO_SRCS := $(shell (git ls-files '*.go' ':!$(UI_DIR)/**' 2>/dev/null || find . -name '*.go' -not -path './$(UI_DIR)/*' -type f))
#GO_SRCS := $(shell (git ls-files '*.go' ':!$(UI_DIR)/**' 2>/dev/null || find . -name '*.go' -not -path './$(UI_DIR)/*' -type f))
GO_SRCS := $(shell ( \
git ls-files '*.go' ':!$(UI_DIR)/**' ':!docs/**' ':!sdk/**' 2>/dev/null \
|| find . -name '*.go' -not -path './$(UI_DIR)/*' -not -path './docs/*' -type f \
))
# Rebuild swagger when Go sources change
$(DOCS_JSON) $(DOCS_YAML): $(GO_SRCS)

View File

@@ -0,0 +1,52 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "{{ .ProviderName }} Provider"
description: |-x
{{ .ProviderDescription }}
---
# {{ .ProviderName }} Provider
${{ .ProviderDescription }}
## Quick Start
~~{hul}hcl
terraform {
required_providers {
{{ .ProviderName }} = {
source = "{{ .ProviderSource }}"
# version = ">= 0.0.1"
}
}
}
provider "{{ .ProviderName }}" {
# addr = "https://api.example.com/api/v1"
# api_key = "angykey"
# bearer = "accesstoken"
# org_id = "..."
# org_key = "---"
# org_secret = "---"
}
~~{hul}
## Resources
{{- if .Resources }}
{{- range .Resources }}
- [{+ .Name }](./resources/{{ .FileName }})
{{- end }}
{{- else }}
_No resources yet._
{{- end }}
## Data Sources
{{- if .DataSources }}
{{- range .DataSources }}
- [{+.Name }(./data-sources/{{ .FileName }})
{{- end }}
{{- else }}
_No data sources yet._
{{- end }}
<-- schema generated by tfplugindocs --=