Skip to content

Commit

Permalink
Expand docker resource documentation (#3856)
Browse files Browse the repository at this point in the history
Links + casing

Signed-off-by: Tim Smith <[email protected]>
  • Loading branch information
tas50 authored Apr 25, 2024
1 parent bebf1d7 commit 15dcb2c
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
4 changes: 2 additions & 2 deletions providers/os/resources/os.lr
Original file line number Diff line number Diff line change
Expand Up @@ -790,15 +790,15 @@ docker.file.stage @defaults("from.name") {
expose []docker.file.expose
}

// Dockerfile expose instruction
// Dockerfile EXPOSE instruction
docker.file.expose @defaults("port protocol") {
// Port that is exposed
port int
// Protocol that is exposed (evaluates to `tcp` if not specified)
protocol string
}

// Dockerfile from instructions
// Dockerfile FROM instructions
docker.file.from @defaults("name image tag") {
platform string
image string
Expand Down
29 changes: 29 additions & 0 deletions providers/os/resources/os.lr.manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ resources:
containers: {}
images: {}
min_mondoo_version: 5.15.0
refs:
- title: Docker overview
url: https://docs.docker.com/get-started/overview/
docker.container:
docs:
desc: |
Expand All @@ -125,6 +128,9 @@ resources:
state: {}
status: {}
min_mondoo_version: 5.15.0
refs:
- title: What is a container?
url: https://docs.docker.com/guides/walkthroughs/what-is-a-container/
docker.file:
docs:
desc: |
Expand All @@ -145,18 +151,27 @@ resources:
dst: {}
src: {}
min_mondoo_version: 9.0.0
refs:
- title: Dockerfile ADD reference
url: https://docs.docker.com/reference/dockerfile/#add
docker.file.copy:
fields:
chmod: {}
chown: {}
dst: {}
src: {}
min_mondoo_version: 9.0.0
refs:
- title: Dockerfile COPY reference
url: https://docs.docker.com/reference/dockerfile/#copy
docker.file.expose:
fields:
port: {}
protocol: {}
min_mondoo_version: 9.0.0
refs:
- title: Dockerfile EXPOSE reference
url: https://docs.docker.com/reference/dockerfile/#expose
docker.file.from:
fields:
digest: {}
Expand All @@ -165,10 +180,16 @@ resources:
platform: {}
tag: {}
min_mondoo_version: 9.0.0
refs:
- title: Dockerfile FROM reference
url: https://docs.docker.com/reference/dockerfile/#from
docker.file.run:
fields:
script: {}
min_mondoo_version: 9.0.0
refs:
- title: Dockerfile RUN reference
url: https://docs.docker.com/reference/dockerfile/#run
docker.file.stage:
fields:
add: {}
Expand All @@ -181,6 +202,11 @@ resources:
from: {}
run: {}
min_mondoo_version: 9.0.0
refs:
- title: Dockerfile Reference
url: https://docs.docker.com/reference/dockerfile/
- title: Multi-stage builds
url: https://docs.docker.com/build/building/multi-stage/
docker.image:
fields:
id: {}
Expand All @@ -189,6 +215,9 @@ resources:
tags: {}
virtualsize: {}
min_mondoo_version: 5.15.0
refs:
- title: What is an image?
url: https://docs.docker.com/guides/docker-concepts/the-basics/what-is-an-image/
equinix.metal.device:
fields:
billingCycle: {}
Expand Down

0 comments on commit 15dcb2c

Please sign in to comment.