Skip to content

Commit 03588b3

Browse files
authored
Merge branch 'docker:main' into sssc-docker-concepts
2 parents 5bd5f41 + 1c61f93 commit 03588b3

File tree

47 files changed

+1870
-82
lines changed

Some content is hidden

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

47 files changed

+1870
-82
lines changed

.github/labeler.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ area/engine:
5959
- changed-files:
6060
- any-glob-to-any-file:
6161
- content/manuals/engine/**
62+
- content/reference/api/engine/**
6263

6364
area/install:
6465
- changed-files:

Dockerfile

Lines changed: 15 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -7,42 +7,27 @@ ARG ALPINE_VERSION=3.20
77
ARG GO_VERSION=1.23
88
# HTMLTEST_VERSION sets the wjdp/htmltest version for HTML testing
99
ARG HTMLTEST_VERSION=0.17.0
10+
# HUGO_VERSION sets the version of Hugo to build the site with
11+
ARG HUGO_VERSION=0.136.0
1012

11-
# base is the base stage with build dependencies
12-
FROM golang:${GO_VERSION}-alpine AS base
13-
WORKDIR /src
14-
RUN apk --update add nodejs npm git gcompat
15-
16-
# node installs Node.js dependencies
17-
FROM base AS node
18-
COPY package*.json .
19-
ENV NODE_ENV=production
20-
RUN npm install
21-
22-
# hugo downloads and extracts the Hugo binary
23-
FROM base AS hugo
24-
ARG HUGO_VERSION=0.134.3
25-
ARG TARGETARCH
26-
WORKDIR /tmp/hugo
27-
RUN wget -O "hugo.tar.gz" "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-${TARGETARCH}.tar.gz"
28-
RUN tar -xf "hugo.tar.gz" hugo
29-
30-
# build-base is the base stage for building the site
31-
FROM base AS build-base
32-
COPY --from=hugo /tmp/hugo/hugo /bin/hugo
33-
COPY --from=node /src/node_modules /src/node_modules
13+
# build-base is the base stage used for building the site
14+
FROM ghcr.io/gohugoio/hugo:v${HUGO_VERSION} AS build-base
15+
USER root
16+
ENV NODE_ENV="production"
17+
RUN --mount=source=package.json,target=package.json \
18+
--mount=source=package-lock.json,target=package-lock.json \
19+
--mount=type=cache,target=/root/.npm \
20+
npm ci
3421
COPY . .
3522

36-
# dev is for local development with Docker Compose
37-
FROM build-base AS dev
38-
3923
# build creates production builds with Hugo
4024
FROM build-base AS build
4125
# HUGO_ENV sets the hugo.Environment (production, development, preview)
42-
ARG HUGO_ENV
26+
ARG HUGO_ENV="development"
4327
# DOCS_URL sets the base URL for the site
44-
ARG DOCS_URL
45-
RUN hugo --gc --minify -d /out -e $HUGO_ENV -b $DOCS_URL
28+
ARG DOCS_URL="https://docs.docker.com"
29+
RUN --mount=type=cache,target=/cache \
30+
hugo --gc --minify -d /out -e $HUGO_ENV -b $DOCS_URL
4631

4732
# lint lints markdown files
4833
FROM davidanson/markdownlint-cli2:v0.14.0 AS lint
@@ -122,7 +107,7 @@ fi
122107
EOT
123108

124109
# pagefind installs the Pagefind runtime
125-
FROM base AS pagefind
110+
FROM node:alpine${ALPINE_VERSION} AS pagefind
126111
ARG PAGEFIND_VERSION=1.1.1
127112
COPY --from=build /out ./public
128113
RUN --mount=type=bind,src=pagefind.yml,target=pagefind.yml \

_vale/config/vocabularies/Docker/accept.txt

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,16 @@ Grafana
6565
Gravatar
6666
HTTP
6767
HyperKit
68+
IAM
6869
IPs?
6970
IPv[46]
7071
IPvlan
7172
Intel
73+
Intune
74+
Jamf
7275
JFrog
7376
JetBrains
77+
Kerberos
7478
Kitematic
7579
Kubernetes
7680
LTS
@@ -80,16 +84,20 @@ Logstash
8084
MAC
8185
Mac
8286
Mail(chimp|gun)
87+
MDM
8388
Microsoft
8489
MySQL
8590
NAT
8691
Netplan
8792
Nginx
93+
NTLM
8894
Nuxeo
95+
OAT
8996
OAuth
9097
OCI
9198
OTel
9299
Okta
100+
PAT
93101
Postgres
94102
PowerShell
95103
Python
@@ -138,8 +146,10 @@ Zsh
138146
[Ff]iletypes?
139147
[GgCc]oroutine
140148
[Hh]ostname
149+
[Ii]nfosec
141150
[Ll]oopback
142151
[Mm]oby
152+
[Oo]nboarding
143153
[Pp]aravirtualization
144154
[Pp]roxying
145155
[Rr]eal-time
@@ -149,10 +159,12 @@ Zsh
149159
[Ss]warm
150160
[Tt]oolchains?
151161
[Vv]irtualize
162+
[Vv]irtiofs
152163
[Ww]alkthrough
153164
cgroup
154165
config
155166
containerd
167+
deprovisioning
156168
deserialization
157169
deserialize
158170
displayName
@@ -187,4 +199,4 @@ ufw
187199
umask
188200
ungated
189201
vSphere
190-
virtiofs
202+
vpnkit

archetypes/guides.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: '{{ replace .File.ContentBaseName `-` ` ` | humanize }}'
3+
# linkTitle: A shorter, alternative title
4+
description: # Meta description for SEO.
5+
summary: | # A summary of what's in this guide
6+
In this guide, ...
7+
languages: [] # Programming languages used
8+
products: [] # Docker products involved
9+
levels: [] # Experience level(s) of the intended audience (beginner|intermediate|advanced)
10+
subjects: [] # What's it about?
11+
params:
12+
# time: 10 minutes
13+
---

assets/images/guides/bake.webp

235 KB
Loading
38.2 KB
Loading

compose.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ services:
22
server:
33
build:
44
context: .
5-
target: dev
5+
target: build-base
66
ports:
77
- "1313:1313"
88
entrypoint: ["hugo", "server", "--bind", "0.0.0.0"]
@@ -11,5 +11,3 @@ services:
1111
- action: sync
1212
path: .
1313
target: /src
14-
ignore:
15-
- node_modules/

0 commit comments

Comments
 (0)