Skip to content

Commit ecda46c

Browse files
authored
feat: add OCI labels to the dockerfiles (#79)
1 parent 642b669 commit ecda46c

File tree

9 files changed

+51
-6
lines changed

9 files changed

+51
-6
lines changed

.devcontainer/devcontainer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@
99
"ghcr.io/devcontainers-extra/features/shellcheck:1": {},
1010
"ghcr.io/devcontainers-extra/features/yamllint:2": {},
1111
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
12-
"ghcr.io/devcontainers/features/github-cli:1": {}
12+
"ghcr.io/devcontainers/features/github-cli:1": {},
13+
"ghcr.io/dhoeric/features/hadolint:1": {}
1314
},
1415
"customizations": {
1516
"vscode": {
1617
"extensions": [
1718
"DavidAnson.vscode-markdownlint",
1819
"editorconfig.editorconfig",
1920
"esbenp.prettier-vscode",
21+
"exiasr.hadolint",
2022
"github.vscode-github-actions",
2123
"GitHub.vscode-pull-request-github",
2224
"ms-azuretools.vscode-containers",

.github/workflows/action-prettier.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Prettier
22
on:
3+
workflow_dispatch:
34
push:
45
branches:
56
- "*"

.github/workflows/action-super-linter.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name: Super Linter
33

44
on:
5+
workflow_dispatch:
56
push:
67
branches:
78
- "*"

.hadolint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ignored:
2+
- DL3008 # Pin versions in apt-get install

.vscode/extensions.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
{
22
"recommendations": [
3+
"DavidAnson.vscode-markdownlint",
34
"editorconfig.editorconfig",
45
"esbenp.prettier-vscode",
5-
"github.vscode-github-actions"
6+
"exiasr.hadolint",
7+
"github.vscode-github-actions",
8+
"GitHub.vscode-pull-request-github",
9+
"ms-azuretools.vscode-containers",
10+
"redhat.vscode-yaml",
11+
"yzhang.markdown-all-in-one"
612
]
713
}

Dockerfile.ubuntu-2004

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
FROM ubuntu:20.04
22

3-
LABEL maintainer="LinuxGSM <me@danielgibbs.co.uk>"
43
ARG DEBIAN_FRONTEND=noninteractive
4+
ARG BUILD_DATE
5+
ARG VCS_REF
6+
7+
LABEL maintainer="LinuxGSM <me@danielgibbs.co.uk>" \
8+
org.opencontainers.image.title="SteamCMD" \
9+
org.opencontainers.image.description="SteamCMD headless image for acquiring dedicated server files" \
10+
org.opencontainers.image.url="https://github.com/GameServerManagers/docker-steamcmd" \
11+
org.opencontainers.image.source="https://github.com/GameServerManagers/docker-steamcmd" \
12+
org.opencontainers.image.vendor="GameServerManagers" \
13+
org.opencontainers.image.licenses="MIT" \
14+
org.opencontainers.image.created=$BUILD_DATE \
15+
org.opencontainers.image.revision=$VCS_REF
516

617
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
718

Dockerfile.ubuntu-2204

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
FROM ubuntu:22.04
22

3-
LABEL maintainer="LinuxGSM <me@danielgibbs.co.uk>"
43
ARG DEBIAN_FRONTEND=noninteractive
4+
ARG BUILD_DATE
5+
ARG VCS_REF
6+
7+
LABEL maintainer="LinuxGSM <me@danielgibbs.co.uk>" \
8+
org.opencontainers.image.title="SteamCMD" \
9+
org.opencontainers.image.description="SteamCMD headless image for acquiring dedicated server files" \
10+
org.opencontainers.image.url="https://github.com/GameServerManagers/docker-steamcmd" \
11+
org.opencontainers.image.source="https://github.com/GameServerManagers/docker-steamcmd" \
12+
org.opencontainers.image.vendor="GameServerManagers" \
13+
org.opencontainers.image.licenses="MIT" \
14+
org.opencontainers.image.created=$BUILD_DATE \
15+
org.opencontainers.image.revision=$VCS_REF
516

617
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
718

Dockerfile.ubuntu-2404

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
FROM ubuntu:24.04
22

3-
LABEL maintainer="LinuxGSM <me@danielgibbs.co.uk>"
43
ARG DEBIAN_FRONTEND=noninteractive
4+
ARG BUILD_DATE
5+
ARG VCS_REF
6+
7+
LABEL maintainer="LinuxGSM <me@danielgibbs.co.uk>" \
8+
org.opencontainers.image.title="SteamCMD" \
9+
org.opencontainers.image.description="SteamCMD headless image for acquiring dedicated server files" \
10+
org.opencontainers.image.url="https://github.com/GameServerManagers/docker-steamcmd" \
11+
org.opencontainers.image.source="https://github.com/GameServerManagers/docker-steamcmd" \
12+
org.opencontainers.image.vendor="GameServerManagers" \
13+
org.opencontainers.image.licenses="MIT" \
14+
org.opencontainers.image.created=$BUILD_DATE \
15+
org.opencontainers.image.revision=$VCS_REF
516

617
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
718

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ SteamCMD is a command-line version of the Steam client. It allows you to downloa
2222

2323
## Usage
2424

25-
docker cli
25+
Docker cli
2626

2727
```bash
2828
docker run -it gameservermanagers/steamcmd:latest

0 commit comments

Comments
 (0)