Skip to content

Commit 142f127

Browse files
committed
Merge branch 'main' into python-docker-guide-v2
2 parents 83ea065 + cedf79b commit 142f127

File tree

247 files changed

+7543
-1935
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

247 files changed

+7543
-1935
lines changed

.github/CODEOWNERS

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@
2929

3030
/content/manuals/security/ @aevesdocker @sarahsanders-docker
3131

32-
/content/manuals/trusted-content/ @craig-osterhout
33-
34-
/content/manuals/docker-hub/official_images/ @craig-osterhout
35-
36-
/content/manuals/registry/ @craig-osterhout
37-
3832
/content/manuals/admin/ @sarahsanders-docker
3933

4034
/content/manuals/billing/ @sarahsanders-docker
@@ -44,3 +38,7 @@
4438
/content/manuals/ai/ @ArthurFlag
4539

4640
/_vendor @sarahsanders-docker @ArthurFlag
41+
42+
/content/manuals/cloud/ @craig-osterhout
43+
44+
/content/manuals/dhi/ @craig-osterhout

.github/labeler.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ area/build-cloud:
5050
- any-glob-to-any-file:
5151
- content/manuals/build-cloud/**
5252

53+
area/cloud:
54+
- changed-files:
55+
- any-glob-to-any-file:
56+
- content/manuals/cloud/**
57+
5358
area/compose:
5459
- changed-files:
5560
- any-glob-to-any-file:
@@ -62,6 +67,11 @@ area/desktop:
6267
- any-glob-to-any-file:
6368
- content/manuals/desktop/**
6469

70+
area/dhi:
71+
- changed-files:
72+
- any-glob-to-any-file:
73+
- content/manuals/dhi/**
74+
6575
area/engine:
6676
- changed-files:
6777
- any-glob-to-any-file:

.github/workflows/build.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ jobs:
3636
files: |
3737
docker-bake.hcl
3838
targets: releaser-build
39-
set: |
40-
*.cache-from=type=gha,scope=releaser
41-
*.cache-to=type=gha,scope=releaser,mode=max
4239

4340
build:
4441
runs-on: ubuntu-24.04
@@ -59,9 +56,6 @@ jobs:
5956
files: |
6057
docker-bake.hcl
6158
targets: release
62-
set: |
63-
*.cache-from=type=gha,scope=build
64-
*.cache-to=type=gha,scope=build,mode=max
6559
-
6660
name: Check Cloudfront config
6761
uses: docker/bake-action@v6
@@ -97,6 +91,7 @@ jobs:
9791
- test-go-redirects
9892
- dockerfile-lint
9993
- path-warnings
94+
- validate-vendor
10095
steps:
10196
-
10297
name: Set up Docker Buildx
@@ -110,6 +105,3 @@ jobs:
110105
targets: ${{ matrix.target }}
111106
set: |
112107
*.args.BUILDKIT_CONTEXT_KEEP_GIT_DIR=1
113-
*.cache-to=type=gha,scope=validate-${{ matrix.target }},mode=max
114-
*.cache-from=type=gha,scope=validate-${{ matrix.target }}
115-
*.cache-from=type=gha,scope=build

.github/workflows/deploy.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,6 @@ jobs:
9696
files: |
9797
docker-bake.hcl
9898
targets: release
99-
set: |
100-
*.cache-from=type=gha,scope=deploy-${{ env.BRANCH_NAME }}
101-
*.cache-to=type=gha,scope=deploy-${{ env.BRANCH_NAME }},mode=max
10299
provenance: false
103100
-
104101
name: Configure AWS Credentials
@@ -134,8 +131,6 @@ jobs:
134131
files: |
135132
docker-bake.hcl
136133
targets: aws-s3-update-config
137-
set: |
138-
*.cache-from=type=gha,scope=releaser
139134
env:
140135
AWS_REGION: ${{ env.DOCS_AWS_REGION }}
141136
AWS_S3_BUCKET: ${{ env.DOCS_S3_BUCKET }}

.github/workflows/validate-upstream.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,6 @@ jobs:
9797
docker-bake.hcl
9898
targets: validate-upstream
9999
provenance: false
100-
set: |
101-
*.cache-from=type=gha,scope=docs-upstream
102-
*.cache-to=type=gha,scope=docs-upstream
103100
env:
104101
UPSTREAM_MODULE_NAME: ${{ inputs.module-name }}
105102
UPSTREAM_REPO: ${{ github.repository }}

.markdownlint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"no-space-in-code": true,
1414
"no-space-in-links": true,
1515
"no-empty-links": true,
16-
"ol-prefix": {"style": "ordered"},
16+
"ol-prefix": {"style": "one_or_ordered"},
1717
"no-reversed-links": true,
1818
"reference-links-images": {
1919
"shortcut_syntax": false

.vale.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,10 @@ TokenIgnores = ({{[%<] .* [%>]}}.*?{{[%<] ?/.* [%>]}}), \
1515
# Exclude `{{< myshortcode `This is some <b>HTML</b>, ... >}}`
1616
BlockIgnores = (?sm)^({{[%<] \w+ [^{]*?\s[%>]}})\n$, \
1717
(?s) *({{< highlight [^>]* ?>}}.*?{{< ?/ ?highlight >}})
18+
19+
# Disable rules for genered content
20+
# Content is checked upstream
21+
[**/{model-cli/docs/reference,content/reference/cli/docker/model}/**.md]
22+
BasedOnStyles = Vale
23+
Vale.Spelling = NO
24+
Vale.Terms = NO

.vscode/docker.code-snippets

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,35 @@
2323
"prefix": ["admonition", "tabs"],
2424
"body": [
2525
"",
26-
"{{< tabs >}}",
27-
"{{< tab name=\"$1\">}}",
26+
"{{< tabs group=\"$1\" >}}",
27+
"{{< tab name=\"$2\">}}",
2828
"",
29-
"$2",
29+
"$3",
3030
"",
3131
"{{< /tab >}}",
32-
"{{< tab name=\"$3\">}}",
32+
"{{< tab name=\"$4\">}}",
3333
"",
34-
"$4",
34+
"$5",
3535
"",
3636
"{{< /tab >}}",
3737
"{{</tabs >}}",
3838
"",
3939
],
4040
"description": "Insert a Hugo tabs block with two tabs and snippet stops for names and content",
4141
},
42+
"Insert Hugo code block (no title)": {
43+
"prefix": ["codeblock", "block"],
44+
"body": ["```${1:json}", "$2", "```", ""],
45+
"description": "Insert a Hugo code block with an optional title",
46+
},
47+
"Insert Hugo code block (with title)": {
48+
"prefix": ["codeblock", "codettl", "block"],
49+
"body": ["```${1:json} {title=\"$2\"}", "$3", "```", ""],
50+
"description": "Insert a Hugo code block with an optional title",
51+
},
4252
"Insert a Button": {
4353
"prefix": ["button"],
4454
"body": ["{{< button url=\"$1\" text=\"$2\" >}}"],
4555
"description": "Insert a Hugo button",
4656
},
47-
}
57+
}

Dockerfile

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ RUN apk add --no-cache \
1414
git \
1515
nodejs \
1616
npm \
17-
gcompat
17+
gcompat \
18+
rsync
1819

1920
# npm downloads Node.js dependencies
2021
FROM base AS npm
@@ -87,6 +88,22 @@ FROM scratch AS vendor
8788
COPY --from=update-modules /project/_vendor /_vendor
8889
COPY --from=update-modules /project/go.* /
8990

91+
FROM base AS validate-vendor
92+
RUN --mount=target=/context \
93+
--mount=type=bind,from=vendor,target=/out \
94+
--mount=target=.,type=tmpfs <<EOT
95+
set -e
96+
rsync -a /context/. .
97+
git add -A
98+
rm -rf _vendor
99+
cp -rf /out/* .
100+
if [ -n "$(git status --porcelain -- go.mod go.sum _vendor)" ]; then
101+
echo >&2 'ERROR: Vendor result differs. Please vendor your package with "make vendor"'
102+
git status --porcelain -- go.mod go.sum _vendor
103+
exit 1
104+
fi
105+
EOT
106+
90107
# build-upstream builds an upstream project with a replacement module
91108
FROM build-base AS build-upstream
92109
# UPSTREAM_MODULE_NAME is the canonical upstream repository name and namespace (e.g. moby/buildkit)

_vale/.vale-config/0-Hugo.ini

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)