Browse Source

feat: add OCI labels to the dockerfiles (#79)

pull/80/head
Daniel Gibbs 2 days ago
committed by GitHub
parent
commit
ecda46cb11
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      .devcontainer/devcontainer.json
  2. 1
      .github/workflows/action-prettier.yml
  3. 1
      .github/workflows/action-super-linter.yml
  4. 2
      .hadolint.yml
  5. 8
      .vscode/extensions.json
  6. 13
      Dockerfile.ubuntu-2004
  7. 13
      Dockerfile.ubuntu-2204
  8. 13
      Dockerfile.ubuntu-2404
  9. 2
      README.md

4
.devcontainer/devcontainer.json

@ -9,7 +9,8 @@
"ghcr.io/devcontainers-extra/features/shellcheck:1": {}, "ghcr.io/devcontainers-extra/features/shellcheck:1": {},
"ghcr.io/devcontainers-extra/features/yamllint:2": {}, "ghcr.io/devcontainers-extra/features/yamllint:2": {},
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}, "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {} "ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/dhoeric/features/hadolint:1": {}
}, },
"customizations": { "customizations": {
"vscode": { "vscode": {
@ -17,6 +18,7 @@
"DavidAnson.vscode-markdownlint", "DavidAnson.vscode-markdownlint",
"editorconfig.editorconfig", "editorconfig.editorconfig",
"esbenp.prettier-vscode", "esbenp.prettier-vscode",
"exiasr.hadolint",
"github.vscode-github-actions", "github.vscode-github-actions",
"GitHub.vscode-pull-request-github", "GitHub.vscode-pull-request-github",
"ms-azuretools.vscode-containers", "ms-azuretools.vscode-containers",

1
.github/workflows/action-prettier.yml

@ -1,5 +1,6 @@
name: Prettier name: Prettier
on: on:
workflow_dispatch:
push: push:
branches: branches:
- "*" - "*"

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

@ -2,6 +2,7 @@
name: Super Linter name: Super Linter
on: on:
workflow_dispatch:
push: push:
branches: branches:
- "*" - "*"

2
.hadolint.yml

@ -0,0 +1,2 @@
ignored:
- DL3008 # Pin versions in apt-get install

8
.vscode/extensions.json

@ -1,7 +1,13 @@
{ {
"recommendations": [ "recommendations": [
"DavidAnson.vscode-markdownlint",
"editorconfig.editorconfig", "editorconfig.editorconfig",
"esbenp.prettier-vscode", "esbenp.prettier-vscode",
"github.vscode-github-actions" "exiasr.hadolint",
"github.vscode-github-actions",
"GitHub.vscode-pull-request-github",
"ms-azuretools.vscode-containers",
"redhat.vscode-yaml",
"yzhang.markdown-all-in-one"
] ]
} }

13
Dockerfile.ubuntu-2004

@ -1,7 +1,18 @@
FROM ubuntu:20.04 FROM ubuntu:20.04
LABEL maintainer="LinuxGSM <me@danielgibbs.co.uk>"
ARG DEBIAN_FRONTEND=noninteractive ARG DEBIAN_FRONTEND=noninteractive
ARG BUILD_DATE
ARG VCS_REF
LABEL maintainer="LinuxGSM <me@danielgibbs.co.uk>" \
org.opencontainers.image.title="SteamCMD" \
org.opencontainers.image.description="SteamCMD headless image for acquiring dedicated server files" \
org.opencontainers.image.url="https://github.com/GameServerManagers/docker-steamcmd" \
org.opencontainers.image.source="https://github.com/GameServerManagers/docker-steamcmd" \
org.opencontainers.image.vendor="GameServerManagers" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.created=$BUILD_DATE \
org.opencontainers.image.revision=$VCS_REF
SHELL ["/bin/bash", "-o", "pipefail", "-c"] SHELL ["/bin/bash", "-o", "pipefail", "-c"]

13
Dockerfile.ubuntu-2204

@ -1,7 +1,18 @@
FROM ubuntu:22.04 FROM ubuntu:22.04
LABEL maintainer="LinuxGSM <me@danielgibbs.co.uk>"
ARG DEBIAN_FRONTEND=noninteractive ARG DEBIAN_FRONTEND=noninteractive
ARG BUILD_DATE
ARG VCS_REF
LABEL maintainer="LinuxGSM <me@danielgibbs.co.uk>" \
org.opencontainers.image.title="SteamCMD" \
org.opencontainers.image.description="SteamCMD headless image for acquiring dedicated server files" \
org.opencontainers.image.url="https://github.com/GameServerManagers/docker-steamcmd" \
org.opencontainers.image.source="https://github.com/GameServerManagers/docker-steamcmd" \
org.opencontainers.image.vendor="GameServerManagers" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.created=$BUILD_DATE \
org.opencontainers.image.revision=$VCS_REF
SHELL ["/bin/bash", "-o", "pipefail", "-c"] SHELL ["/bin/bash", "-o", "pipefail", "-c"]

13
Dockerfile.ubuntu-2404

@ -1,7 +1,18 @@
FROM ubuntu:24.04 FROM ubuntu:24.04
LABEL maintainer="LinuxGSM <me@danielgibbs.co.uk>"
ARG DEBIAN_FRONTEND=noninteractive ARG DEBIAN_FRONTEND=noninteractive
ARG BUILD_DATE
ARG VCS_REF
LABEL maintainer="LinuxGSM <me@danielgibbs.co.uk>" \
org.opencontainers.image.title="SteamCMD" \
org.opencontainers.image.description="SteamCMD headless image for acquiring dedicated server files" \
org.opencontainers.image.url="https://github.com/GameServerManagers/docker-steamcmd" \
org.opencontainers.image.source="https://github.com/GameServerManagers/docker-steamcmd" \
org.opencontainers.image.vendor="GameServerManagers" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.created=$BUILD_DATE \
org.opencontainers.image.revision=$VCS_REF
SHELL ["/bin/bash", "-o", "pipefail", "-c"] SHELL ["/bin/bash", "-o", "pipefail", "-c"]

2
README.md

@ -22,7 +22,7 @@ SteamCMD is a command-line version of the Steam client. It allows you to downloa
## Usage ## Usage
docker cli Docker cli
```bash ```bash
docker run -it gameservermanagers/steamcmd:latest docker run -it gameservermanagers/steamcmd:latest

Loading…
Cancel
Save